@slimlib/refine-partition 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Refine Partition
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A simple partition refinement implementation.
|
|
4
4
|
|
|
5
5
|
https://en.wikipedia.org/wiki/Partition_refinement
|
|
6
6
|
|
|
@@ -14,18 +14,18 @@ https://en.wikipedia.org/wiki/Partition_refinement
|
|
|
14
14
|
|
|
15
15
|
Creates a refiner function.
|
|
16
16
|
|
|
17
|
-
Pass
|
|
17
|
+
Pass new candidates for refinement to it.
|
|
18
18
|
|
|
19
|
-
Returns refined partition.
|
|
19
|
+
Returns the refined partition.
|
|
20
20
|
|
|
21
21
|
### Example
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
-
import refiner from
|
|
24
|
+
import refiner from "../src";
|
|
25
25
|
|
|
26
26
|
const refineNext = refiner();
|
|
27
|
-
refineNext([
|
|
28
|
-
refineNext([
|
|
27
|
+
refineNext(["a", "b", "c"]);
|
|
28
|
+
refineNext(["b", "c", "e"]);
|
|
29
29
|
console.log(refineNext()); // Iterable of Iterables: ((a), (b, c), (e))
|
|
30
30
|
```
|
|
31
31
|
|