You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Utility library for calculations when applying the [Laser Focus](https://dev.to/
9
9
10
10
This library calculates the overall priority for a given graph of categorized actionable items, such as features or tasks. It supports any number of actionable item levels, e.g. you can provide an entire range of levels like "Epic", "Story", "Feature", "Task", "Sub-Task", "Step" as input. The main method takes just the top level ("Epic" in this case) and walks through the other children levels automatically.
11
11
12
-
For example, imagine you have the features "A", "B", and "C". Some of them have 3 tasks "1", "2", and "3". And some of the tasks have subtasks, "x", "y", and "z". So the input is this top level array:
12
+
For example, imagine you have the features "A", "B", and "C". Some of them have 3 tasks "1", "2", and "3". And some of the tasks have subtasks, "x", "y", and "z". So the input is this top level array with its children:
13
13
14
14
```swift
15
15
let inputs: [ActionableInput] = [
@@ -44,7 +44,7 @@ let inputs: [ActionableInput] = [
44
44
45
45
```
46
46
47
-
What we want to know in the Laser Focus strategy, is the global category for each "leaf" element in the graph, or the elements without children, the "atomic" elements, so to say because they are not further split(table). Just calling the `LaserFocus.prioritizedAtoms(inputs:)` gives us exactly these elements:
47
+
What we want to know in the Laser Focus strategy, is the global category for each "leaf" element in the graph, or the elements without children, the "atomic" elements, so to say. These elements are not further split(table) and can directly be worked on. Just calling the `LaserFocus.prioritizedAtoms(inputs:)` gives us exactly these elements:
48
48
49
49
```swift
50
50
let outputs: [ActionableOutput] = LaserFocus.prioritizedAtoms(inputs: inputs)
@@ -56,9 +56,9 @@ Each element in `ActionableOutput` has a `globalCategory` which includes the ove
56
56
The simplest way to get the list of tasks in the correct priority order is to just call `sorted()` on the outputs as `ActionableOutput` is `Comparable`:
0 commit comments