effect 3.14.3 → 3.14.4
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/dist/cjs/HashSet.js +111 -87
- package/dist/cjs/HashSet.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/HashSet.d.ts +149 -106
- package/dist/dts/HashSet.d.ts.map +1 -1
- package/dist/dts/index.d.ts +40 -40
- package/dist/esm/HashSet.js +111 -87
- package/dist/esm/HashSet.js.map +1 -1
- package/dist/esm/index.js +40 -40
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/HashSet.ts +149 -106
- package/src/index.ts +40 -40
- package/src/internal/version.ts +1 -1
package/dist/cjs/HashSet.js
CHANGED
|
@@ -42,14 +42,14 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
42
42
|
*
|
|
43
43
|
* ## Performance Characteristics
|
|
44
44
|
*
|
|
45
|
-
* - **Lookup** operations ({@
|
|
45
|
+
* - **Lookup** operations ({@link module:HashSet.has}): **`O(1)`** average time
|
|
46
46
|
* complexity
|
|
47
|
-
* - **Insertion** operations ({@
|
|
47
|
+
* - **Insertion** operations ({@link module:HashSet.add}): **`O(1)`** average time
|
|
48
48
|
* complexity
|
|
49
|
-
* - **Removal** operations ({@
|
|
50
|
-
* complexity
|
|
51
|
-
* - **Set** operations ({@
|
|
52
|
-
* {@
|
|
49
|
+
* - **Removal** operations ({@link module:HashSet.remove}): **`O(1)`** average
|
|
50
|
+
* time complexity
|
|
51
|
+
* - **Set** operations ({@link module:HashSet.union},
|
|
52
|
+
* {@link module:HashSet.intersection}): **`O(n)`** where n is the size of the
|
|
53
53
|
* smaller set
|
|
54
54
|
* - **Iteration**: **`O(n)`** where n is the size of the set
|
|
55
55
|
*
|
|
@@ -62,40 +62,40 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
62
62
|
*
|
|
63
63
|
* ## Operations Reference
|
|
64
64
|
*
|
|
65
|
-
* | Category | Operation
|
|
66
|
-
* | ------------ |
|
|
67
|
-
* | constructors | {@
|
|
68
|
-
* | constructors | {@
|
|
69
|
-
* | constructors | {@
|
|
70
|
-
* | |
|
|
71
|
-
* | elements | {@
|
|
72
|
-
* | elements | {@
|
|
73
|
-
* | elements | {@
|
|
74
|
-
* | elements | {@
|
|
75
|
-
* | |
|
|
76
|
-
* | getters | {@
|
|
77
|
-
* | getters | {@
|
|
78
|
-
* | getters | {@
|
|
79
|
-
* | |
|
|
80
|
-
* | mutations | {@
|
|
81
|
-
* | mutations | {@
|
|
82
|
-
* | mutations | {@
|
|
83
|
-
* | |
|
|
84
|
-
* | operations | {@
|
|
85
|
-
* | operations | {@
|
|
86
|
-
* | operations | {@
|
|
87
|
-
* | |
|
|
88
|
-
* | mapping | {@
|
|
89
|
-
* | |
|
|
90
|
-
* | sequencing | {@
|
|
91
|
-
* | |
|
|
92
|
-
* | traversing | {@
|
|
93
|
-
* | |
|
|
94
|
-
* | folding | {@
|
|
95
|
-
* | |
|
|
96
|
-
* | filtering | {@
|
|
97
|
-
* | |
|
|
98
|
-
* | partitioning | {@
|
|
65
|
+
* | Category | Operation | Description | Complexity |
|
|
66
|
+
* | ------------ | ----------------------------------- | ------------------------------------------- | ---------- |
|
|
67
|
+
* | constructors | {@link module:HashSet.empty} | Creates an empty HashSet | O(1) |
|
|
68
|
+
* | constructors | {@link module:HashSet.fromIterable} | Creates a HashSet from an iterable | O(n) |
|
|
69
|
+
* | constructors | {@link module:HashSet.make} | Creates a HashSet from multiple values | O(n) |
|
|
70
|
+
* | | | | |
|
|
71
|
+
* | elements | {@link module:HashSet.has} | Checks if a value exists in the set | O(1) avg |
|
|
72
|
+
* | elements | {@link module:HashSet.some} | Checks if any element satisfies a predicate | O(n) |
|
|
73
|
+
* | elements | {@link module:HashSet.every} | Checks if all elements satisfy a predicate | O(n) |
|
|
74
|
+
* | elements | {@link module:HashSet.isSubset} | Checks if a set is a subset of another | O(n) |
|
|
75
|
+
* | | | | |
|
|
76
|
+
* | getters | {@link module:HashSet.values} | Gets an iterator of all values | O(1) |
|
|
77
|
+
* | getters | {@link module:HashSet.toValues} | Gets an array of all values | O(n) |
|
|
78
|
+
* | getters | {@link module:HashSet.size} | Gets the number of elements | O(1) |
|
|
79
|
+
* | | | | |
|
|
80
|
+
* | mutations | {@link module:HashSet.add} | Adds a value to the set | O(1) avg |
|
|
81
|
+
* | mutations | {@link module:HashSet.remove} | Removes a value from the set | O(1) avg |
|
|
82
|
+
* | mutations | {@link module:HashSet.toggle} | Toggles a value's presence | O(1) avg |
|
|
83
|
+
* | | | | |
|
|
84
|
+
* | operations | {@link module:HashSet.difference} | Computes set difference (A - B) | O(n) |
|
|
85
|
+
* | operations | {@link module:HashSet.intersection} | Computes set intersection (A ∩ B) | O(n) |
|
|
86
|
+
* | operations | {@link module:HashSet.union} | Computes set union (A ∪ B) | O(n) |
|
|
87
|
+
* | | | | |
|
|
88
|
+
* | mapping | {@link module:HashSet.map} | Transforms each element | O(n) |
|
|
89
|
+
* | | | | |
|
|
90
|
+
* | sequencing | {@link module:HashSet.flatMap} | Transforms and flattens elements | O(n) |
|
|
91
|
+
* | | | | |
|
|
92
|
+
* | traversing | {@link module:HashSet.forEach} | Applies a function to each element | O(n) |
|
|
93
|
+
* | | | | |
|
|
94
|
+
* | folding | {@link module:HashSet.reduce} | Reduces the set to a single value | O(n) |
|
|
95
|
+
* | | | | |
|
|
96
|
+
* | filtering | {@link module:HashSet.filter} | Keeps elements that satisfy a predicate | O(n) |
|
|
97
|
+
* | | | | |
|
|
98
|
+
* | partitioning | {@link module:HashSet.partition} | Splits into two sets by a predicate | O(n) |
|
|
99
99
|
*
|
|
100
100
|
* ## Notes
|
|
101
101
|
*
|
|
@@ -293,7 +293,7 @@ const isHashSet = exports.isHashSet = HS.isHashSet;
|
|
|
293
293
|
* ) // Output: [1, 2]
|
|
294
294
|
* ```
|
|
295
295
|
*
|
|
296
|
-
* @see Other `HashSet` constructors are {@link make} {@link fromIterable}
|
|
296
|
+
* @see Other `HashSet` constructors are {@link module:HashSet.make} {@link module:HashSet.fromIterable}
|
|
297
297
|
*/
|
|
298
298
|
const empty = exports.empty = HS.empty;
|
|
299
299
|
/**
|
|
@@ -304,9 +304,10 @@ const empty = exports.empty = HS.empty;
|
|
|
304
304
|
* @memberof HashSet
|
|
305
305
|
* @since 2.0.0
|
|
306
306
|
* @category constructors
|
|
307
|
-
* @example
|
|
307
|
+
* @example
|
|
308
308
|
*
|
|
309
309
|
* ```ts
|
|
310
|
+
* // Creating a HashSet from an Array
|
|
310
311
|
* import { HashSet, pipe } from "effect"
|
|
311
312
|
*
|
|
312
313
|
* console.log(
|
|
@@ -318,9 +319,10 @@ const empty = exports.empty = HS.empty;
|
|
|
318
319
|
* ) // Output: [1, 2, 3, 4, 5]
|
|
319
320
|
* ```
|
|
320
321
|
*
|
|
321
|
-
* @example
|
|
322
|
+
* @example
|
|
322
323
|
*
|
|
323
324
|
* ```ts
|
|
325
|
+
* // Creating a HashSet from a Set
|
|
324
326
|
* import { HashSet, pipe } from "effect"
|
|
325
327
|
*
|
|
326
328
|
* console.log(
|
|
@@ -332,9 +334,10 @@ const empty = exports.empty = HS.empty;
|
|
|
332
334
|
* ) // Output: ["apple", "banana", "orange"]
|
|
333
335
|
* ```
|
|
334
336
|
*
|
|
335
|
-
* @example
|
|
337
|
+
* @example
|
|
336
338
|
*
|
|
337
339
|
* ```ts
|
|
340
|
+
* // Creating a HashSet from a Generator
|
|
338
341
|
* import { HashSet } from "effect"
|
|
339
342
|
*
|
|
340
343
|
* // Generator functions return iterables
|
|
@@ -353,9 +356,10 @@ const empty = exports.empty = HS.empty;
|
|
|
353
356
|
* // Outputs: [0, 1, 2, 3, 5, 8, 13, 21, 34] but in unsorted order
|
|
354
357
|
* ```
|
|
355
358
|
*
|
|
356
|
-
* @example
|
|
359
|
+
* @example
|
|
357
360
|
*
|
|
358
361
|
* ```ts
|
|
362
|
+
* // Creating a HashSet from another HashSet
|
|
359
363
|
* import { HashSet, pipe } from "effect"
|
|
360
364
|
*
|
|
361
365
|
* console.log(
|
|
@@ -368,10 +372,10 @@ const empty = exports.empty = HS.empty;
|
|
|
368
372
|
* ) // Output: [1, 2, 3, 4]
|
|
369
373
|
* ```
|
|
370
374
|
*
|
|
371
|
-
* @example
|
|
372
|
-
* {@link Chunk}
|
|
375
|
+
* @example
|
|
373
376
|
*
|
|
374
377
|
* ```ts
|
|
378
|
+
* // Creating a HashSet from other Effect's data structures like Chunk
|
|
375
379
|
* import { Chunk, HashSet, pipe } from "effect"
|
|
376
380
|
*
|
|
377
381
|
* console.log(
|
|
@@ -383,7 +387,7 @@ const empty = exports.empty = HS.empty;
|
|
|
383
387
|
* ) // Outputs: [1, 2, 3, 4]
|
|
384
388
|
* ```
|
|
385
389
|
*
|
|
386
|
-
* @see Other `HashSet` constructors are {@link empty} {@link make}
|
|
390
|
+
* @see Other `HashSet` constructors are {@link module:HashSet.empty} {@link module:HashSet.make}
|
|
387
391
|
*/
|
|
388
392
|
const fromIterable = exports.fromIterable = HS.fromIterable;
|
|
389
393
|
/**
|
|
@@ -471,7 +475,7 @@ const fromIterable = exports.fromIterable = HS.fromIterable;
|
|
|
471
475
|
* )
|
|
472
476
|
* ```
|
|
473
477
|
*
|
|
474
|
-
* @see Other `HashSet` constructors are {@
|
|
478
|
+
* @see Other `HashSet` constructors are {@link module:HashSet.fromIterable} {@link module:HashSet.empty}
|
|
475
479
|
*/
|
|
476
480
|
const make = exports.make = HS.make;
|
|
477
481
|
/**
|
|
@@ -482,9 +486,10 @@ const make = exports.make = HS.make;
|
|
|
482
486
|
* @memberof HashSet
|
|
483
487
|
* @since 2.0.0
|
|
484
488
|
* @category elements
|
|
485
|
-
* @example
|
|
489
|
+
* @example
|
|
486
490
|
*
|
|
487
491
|
* ```ts
|
|
492
|
+
* // Syntax
|
|
488
493
|
* import { HashSet, pipe } from "effect"
|
|
489
494
|
*
|
|
490
495
|
* // with `data-last`, a.k.a. `pipeable` API
|
|
@@ -498,7 +503,7 @@ const make = exports.make = HS.make;
|
|
|
498
503
|
* ```
|
|
499
504
|
*
|
|
500
505
|
* @returns A `boolean` signaling the presence of the value in the HashSet
|
|
501
|
-
* @see Other `HashSet` elements are {@link some} {@link every} {@link isSubset}
|
|
506
|
+
* @see Other `HashSet` elements are {@link module:HashSet.some} {@link module:HashSet.every} {@link module:HashSet.isSubset}
|
|
502
507
|
*/
|
|
503
508
|
const has = exports.has = HS.has;
|
|
504
509
|
/**
|
|
@@ -509,9 +514,10 @@ const has = exports.has = HS.has;
|
|
|
509
514
|
* @memberof HashSet
|
|
510
515
|
* @since 2.0.0
|
|
511
516
|
* @category elements
|
|
512
|
-
* @example
|
|
517
|
+
* @example
|
|
513
518
|
*
|
|
514
519
|
* ```ts
|
|
520
|
+
* // Syntax
|
|
515
521
|
* import { HashSet, pipe } from "effect"
|
|
516
522
|
*
|
|
517
523
|
* const set: HashSet.HashSet<number> = HashSet.make(0, 1, 2)
|
|
@@ -529,7 +535,7 @@ const has = exports.has = HS.has;
|
|
|
529
535
|
* HashSet.some(set, (n) => n > 0) // true
|
|
530
536
|
* ```
|
|
531
537
|
*
|
|
532
|
-
* @see Other `HashSet` elements are {@link has} {@link every} {@link isSubset}
|
|
538
|
+
* @see Other `HashSet` elements are {@link module:HashSet.has} {@link module:HashSet.every} {@link module:HashSet.isSubset}
|
|
533
539
|
*/
|
|
534
540
|
const some = exports.some = HS.some;
|
|
535
541
|
/**
|
|
@@ -541,9 +547,10 @@ const some = exports.some = HS.some;
|
|
|
541
547
|
* @memberof HashSet
|
|
542
548
|
* @since 2.0.0
|
|
543
549
|
* @category elements
|
|
544
|
-
* @example
|
|
550
|
+
* @example
|
|
545
551
|
*
|
|
546
552
|
* ```ts
|
|
553
|
+
* // Syntax with Refinement
|
|
547
554
|
* import { HashSet, pipe, Predicate } from "effect"
|
|
548
555
|
*
|
|
549
556
|
* const numberOrString = HashSet.make(1, "1", "one", "uno")
|
|
@@ -565,9 +572,10 @@ const some = exports.some = HS.some;
|
|
|
565
572
|
* ) // HashSet.HashSet<string>
|
|
566
573
|
* ```
|
|
567
574
|
*
|
|
568
|
-
* @example
|
|
575
|
+
* @example
|
|
569
576
|
*
|
|
570
577
|
* ```ts
|
|
578
|
+
* // Syntax with Predicate
|
|
571
579
|
* import { HashSet, pipe } from "effect"
|
|
572
580
|
*
|
|
573
581
|
* const set = HashSet.make(1, 2, 3)
|
|
@@ -587,7 +595,7 @@ const some = exports.some = HS.some;
|
|
|
587
595
|
*
|
|
588
596
|
* @returns A boolean once it has evaluated that whole collection fulfill the
|
|
589
597
|
* Predicate function
|
|
590
|
-
* @see Other `HashSet` elements are {@link has} {@link some} {@link isSubset}
|
|
598
|
+
* @see Other `HashSet` elements are {@link module:HashSet.has} {@link module:HashSet.some} {@link module:HashSet.isSubset}
|
|
591
599
|
*/
|
|
592
600
|
const every = exports.every = HS.every;
|
|
593
601
|
/**
|
|
@@ -601,9 +609,10 @@ const every = exports.every = HS.every;
|
|
|
601
609
|
* @memberof HashSet
|
|
602
610
|
* @since 2.0.0
|
|
603
611
|
* @category elements
|
|
604
|
-
* @example
|
|
612
|
+
* @example
|
|
605
613
|
*
|
|
606
614
|
* ```ts
|
|
615
|
+
* // Syntax
|
|
607
616
|
* import { HashSet, pipe } from "effect"
|
|
608
617
|
*
|
|
609
618
|
* const set1 = HashSet.make(0, 1)
|
|
@@ -623,7 +632,7 @@ const every = exports.every = HS.every;
|
|
|
623
632
|
* HashSet.isSubset(set1, set3) // true)
|
|
624
633
|
* ```
|
|
625
634
|
*
|
|
626
|
-
* @see Other `HashSet` elements are {@link has} {@link some} {@link every}
|
|
635
|
+
* @see Other `HashSet` elements are {@link module:HashSet.has} {@link module:HashSet.some} {@link module:HashSet.every}
|
|
627
636
|
*/
|
|
628
637
|
const isSubset = exports.isSubset = HS.isSubset;
|
|
629
638
|
/**
|
|
@@ -649,7 +658,7 @@ const isSubset = exports.isSubset = HS.isSubset;
|
|
|
649
658
|
* }
|
|
650
659
|
* ```
|
|
651
660
|
*
|
|
652
|
-
* @see Other `HashSet` getters are {@link toValues} {@link size}
|
|
661
|
+
* @see Other `HashSet` getters are {@link module:HashSet.toValues} {@link module:HashSet.size}
|
|
653
662
|
*/
|
|
654
663
|
const values = exports.values = HS.values;
|
|
655
664
|
/**
|
|
@@ -675,7 +684,7 @@ const values = exports.values = HS.values;
|
|
|
675
684
|
* )
|
|
676
685
|
* ```
|
|
677
686
|
*
|
|
678
|
-
* @see Other `HashSet` getters are {@link values} {@link size}
|
|
687
|
+
* @see Other `HashSet` getters are {@link module:HashSet.values} {@link module:HashSet.size}
|
|
679
688
|
*/
|
|
680
689
|
const toValues = self => Array.from(values(self));
|
|
681
690
|
/**
|
|
@@ -700,7 +709,7 @@ const toValues = self => Array.from(values(self));
|
|
|
700
709
|
* )
|
|
701
710
|
* ```
|
|
702
711
|
*
|
|
703
|
-
* @see Other `HashSet` getters are {@link values} {@link toValues}
|
|
712
|
+
* @see Other `HashSet` getters are {@link module:HashSet.values} {@link module:HashSet.toValues}
|
|
704
713
|
*/
|
|
705
714
|
exports.toValues = toValues;
|
|
706
715
|
const size = exports.size = HS.size;
|
|
@@ -748,7 +757,7 @@ const size = exports.size = HS.size;
|
|
|
748
757
|
* console.log(HashSet.toValues(mutableSet).sort((a, b) => a - b)) // [0, 1, 2, 3, ...rest]
|
|
749
758
|
* ```
|
|
750
759
|
*
|
|
751
|
-
* @see Other `HashSet` mutations are {@link add} {@link remove} {@link toggle} {@link endMutation} {@link mutate}
|
|
760
|
+
* @see Other `HashSet` mutations are {@link module:HashSet.add} {@link module:HashSet.remove} {@link module:HashSet.toggle} {@link module:HashSet.endMutation} {@link module:HashSet.mutate}
|
|
752
761
|
*/
|
|
753
762
|
const beginMutation = exports.beginMutation = HS.beginMutation;
|
|
754
763
|
/**
|
|
@@ -795,21 +804,22 @@ const beginMutation = exports.beginMutation = HS.beginMutation;
|
|
|
795
804
|
* assert.deepStrictEqual(HashSet.toValues(newSet).sort(), [1, 2, 3, 4])
|
|
796
805
|
* ```
|
|
797
806
|
*
|
|
798
|
-
* @see Other `HashSet` mutations are {@
|
|
807
|
+
* @see Other `HashSet` mutations are {@link module:HashSet.add} {@link module:HashSet.remove} {@link module:HashSet.toggle} {@link module:HashSet.beginMutation} {@link module:HashSet.mutate}
|
|
799
808
|
*/
|
|
800
809
|
const endMutation = exports.endMutation = HS.endMutation;
|
|
801
810
|
/**
|
|
802
811
|
* Mutates the `HashSet` within the context of the provided function.
|
|
803
812
|
*
|
|
804
813
|
* You can consider it a functional abstraction on top of the lower-level
|
|
805
|
-
* mutation primitives of {@
|
|
806
|
-
* context` `->` {@
|
|
814
|
+
* mutation primitives of {@link module:HashSet.beginMutation} `->` `mutable
|
|
815
|
+
* context` `->` {@link HashSet.endMutation}.
|
|
807
816
|
*
|
|
808
817
|
* @memberof HashSet
|
|
809
818
|
* @since 2.0.0
|
|
810
|
-
* @example
|
|
819
|
+
* @example
|
|
811
820
|
*
|
|
812
821
|
* ```ts
|
|
822
|
+
* // Syntax
|
|
813
823
|
* import { HashSet, pipe } from "effect"
|
|
814
824
|
*
|
|
815
825
|
* // with data-last, a.k.a. pipeable API
|
|
@@ -836,7 +846,7 @@ const endMutation = exports.endMutation = HS.endMutation;
|
|
|
836
846
|
* })
|
|
837
847
|
* ```
|
|
838
848
|
*
|
|
839
|
-
* @see Other `HashSet` mutations are {@
|
|
849
|
+
* @see Other `HashSet` mutations are {@link module:HashSet.add} {@link module:HashSet.remove} {@link module:HashSet.toggle} {@link module:HashSet.beginMutation} {@link module:HashSet.endMutation}
|
|
840
850
|
*/
|
|
841
851
|
const mutate = exports.mutate = HS.mutate;
|
|
842
852
|
/**
|
|
@@ -853,9 +863,10 @@ const mutate = exports.mutate = HS.mutate;
|
|
|
853
863
|
* with the added value.
|
|
854
864
|
* @memberof HashSet
|
|
855
865
|
* @since 2.0.0
|
|
856
|
-
* @example
|
|
866
|
+
* @example
|
|
857
867
|
*
|
|
858
868
|
* ```ts
|
|
869
|
+
* // Syntax
|
|
859
870
|
* import { HashSet, pipe } from "effect"
|
|
860
871
|
*
|
|
861
872
|
* // with data-last, a.k.a. pipeable API
|
|
@@ -868,7 +879,7 @@ const mutate = exports.mutate = HS.mutate;
|
|
|
868
879
|
* HashSet.add(HashSet.empty(), 0)
|
|
869
880
|
* ```
|
|
870
881
|
*
|
|
871
|
-
* @see Other `HashSet` mutations are {@link remove} {@link toggle} {@link beginMutation} {@link endMutation} {@link mutate}
|
|
882
|
+
* @see Other `HashSet` mutations are {@link module:HashSet.remove} {@link module:HashSet.toggle} {@link module:HashSet.beginMutation} {@link module:HashSet.endMutation} {@link module:HashSet.mutate}
|
|
872
883
|
*/
|
|
873
884
|
const add = exports.add = HS.add;
|
|
874
885
|
/**
|
|
@@ -878,9 +889,10 @@ const add = exports.add = HS.add;
|
|
|
878
889
|
*
|
|
879
890
|
* @memberof HashSet
|
|
880
891
|
* @since 2.0.0
|
|
881
|
-
* @example
|
|
892
|
+
* @example
|
|
882
893
|
*
|
|
883
894
|
* ```ts
|
|
895
|
+
* // Syntax
|
|
884
896
|
* import { HashSet, pipe } from "effect"
|
|
885
897
|
*
|
|
886
898
|
* // with `data-last`, a.k.a. `pipeable` API
|
|
@@ -893,7 +905,7 @@ const add = exports.add = HS.add;
|
|
|
893
905
|
* HashSet.remove(HashSet.make(0, 1, 2), 0)
|
|
894
906
|
* ```
|
|
895
907
|
*
|
|
896
|
-
* @see Other `HashSet` mutations are {@link add} {@link toggle} {@link beginMutation} {@link endMutation} {@link mutate}
|
|
908
|
+
* @see Other `HashSet` mutations are {@link module:HashSet.add} {@link module:HashSet.toggle} {@link module:HashSet.beginMutation} {@link module:HashSet.endMutation} {@link module:HashSet.mutate}
|
|
897
909
|
*/
|
|
898
910
|
const remove = exports.remove = HS.remove;
|
|
899
911
|
/**
|
|
@@ -909,9 +921,10 @@ const remove = exports.remove = HS.remove;
|
|
|
909
921
|
*
|
|
910
922
|
* @memberof HashSet
|
|
911
923
|
* @since 2.0.0
|
|
912
|
-
* @example
|
|
924
|
+
* @example
|
|
913
925
|
*
|
|
914
926
|
* ```ts
|
|
927
|
+
* // Syntax
|
|
915
928
|
* import { HashSet, pipe } from "effect"
|
|
916
929
|
*
|
|
917
930
|
* // with data-last, a.k.a. pipeable API
|
|
@@ -924,7 +937,7 @@ const remove = exports.remove = HS.remove;
|
|
|
924
937
|
* HashSet.difference(HashSet.make(1, 2, 3), HashSet.make(3, 4, 5))
|
|
925
938
|
* ```
|
|
926
939
|
*
|
|
927
|
-
* @see Other `HashSet` operations are {@link intersection} {@link union}
|
|
940
|
+
* @see Other `HashSet` operations are {@link module:HashSet.intersection} {@link module:HashSet.union}
|
|
928
941
|
*/
|
|
929
942
|
const difference = exports.difference = HS.difference;
|
|
930
943
|
/**
|
|
@@ -939,9 +952,10 @@ const difference = exports.difference = HS.difference;
|
|
|
939
952
|
*
|
|
940
953
|
* @memberof HashSet
|
|
941
954
|
* @since 2.0.0
|
|
942
|
-
* @example
|
|
955
|
+
* @example
|
|
943
956
|
*
|
|
944
957
|
* ```ts
|
|
958
|
+
* // Syntax
|
|
945
959
|
* import { HashSet, pipe } from "effect"
|
|
946
960
|
*
|
|
947
961
|
* // with data-last, a.k.a. pipeable API
|
|
@@ -954,7 +968,7 @@ const difference = exports.difference = HS.difference;
|
|
|
954
968
|
* HashSet.intersection(HashSet.make(1, 2, 3), HashSet.make(2, 3, 4))
|
|
955
969
|
* ```
|
|
956
970
|
*
|
|
957
|
-
* @see Other `HashSet` operations are {@link difference} {@link union}
|
|
971
|
+
* @see Other `HashSet` operations are {@link module:HashSet.difference} {@link module:HashSet.union}
|
|
958
972
|
*/
|
|
959
973
|
const intersection = exports.intersection = HS.intersection;
|
|
960
974
|
/**
|
|
@@ -968,9 +982,10 @@ const intersection = exports.intersection = HS.intersection;
|
|
|
968
982
|
*
|
|
969
983
|
* @memberof HashSet
|
|
970
984
|
* @since 2.0.0
|
|
971
|
-
* @example
|
|
985
|
+
* @example
|
|
972
986
|
*
|
|
973
987
|
* ```ts
|
|
988
|
+
* // Syntax
|
|
974
989
|
* import { HashSet, pipe } from "effect"
|
|
975
990
|
*
|
|
976
991
|
* // with data-last, a.k.a. pipeable API
|
|
@@ -983,7 +998,7 @@ const intersection = exports.intersection = HS.intersection;
|
|
|
983
998
|
* HashSet.union(HashSet.make(1, 2, 3), HashSet.make(3, 4, 5))
|
|
984
999
|
* ```
|
|
985
1000
|
*
|
|
986
|
-
* @see Other `HashSet` operations are {@link difference} {@link intersection}
|
|
1001
|
+
* @see Other `HashSet` operations are {@link module:HashSet.difference} {@link module:HashSet.intersection}
|
|
987
1002
|
*/
|
|
988
1003
|
const union = exports.union = HS.union;
|
|
989
1004
|
/**
|
|
@@ -995,9 +1010,10 @@ const union = exports.union = HS.union;
|
|
|
995
1010
|
*
|
|
996
1011
|
* @memberof HashSet
|
|
997
1012
|
* @since 2.0.0
|
|
998
|
-
* @example
|
|
1013
|
+
* @example
|
|
999
1014
|
*
|
|
1000
1015
|
* ```ts
|
|
1016
|
+
* // Syntax
|
|
1001
1017
|
* import { HashSet, pipe } from "effect"
|
|
1002
1018
|
*
|
|
1003
1019
|
* // with `data-last`, a.k.a. `pipeable` API
|
|
@@ -1012,7 +1028,7 @@ const union = exports.union = HS.union;
|
|
|
1012
1028
|
*
|
|
1013
1029
|
* @returns A new `HashSet` where the toggled value is being either added or
|
|
1014
1030
|
* removed based on the initial `HashSet` state.
|
|
1015
|
-
* @see Other `HashSet` mutations are {@link add} {@link remove} {@link beginMutation} {@link endMutation} {@link mutate}
|
|
1031
|
+
* @see Other `HashSet` mutations are {@link module:HashSet.add} {@link module:HashSet.remove} {@link module:HashSet.beginMutation} {@link module:HashSet.endMutation} {@link module:HashSet.mutate}
|
|
1016
1032
|
*/
|
|
1017
1033
|
const toggle = exports.toggle = HS.toggle;
|
|
1018
1034
|
/**
|
|
@@ -1023,9 +1039,10 @@ const toggle = exports.toggle = HS.toggle;
|
|
|
1023
1039
|
* @memberof HashSet
|
|
1024
1040
|
* @since 2.0.0
|
|
1025
1041
|
* @category mapping
|
|
1026
|
-
* @example
|
|
1042
|
+
* @example
|
|
1027
1043
|
*
|
|
1028
1044
|
* ```ts
|
|
1045
|
+
* // Syntax
|
|
1029
1046
|
* import { HashSet, pipe } from "effect"
|
|
1030
1047
|
*
|
|
1031
1048
|
* // with `data-last`, a.k.a. `pipeable` API
|
|
@@ -1050,9 +1067,10 @@ const map = exports.map = HS.map;
|
|
|
1050
1067
|
* @memberof HashSet
|
|
1051
1068
|
* @since 2.0.0
|
|
1052
1069
|
* @category sequencing
|
|
1053
|
-
* @example
|
|
1070
|
+
* @example
|
|
1054
1071
|
*
|
|
1055
1072
|
* ```ts
|
|
1073
|
+
* // Syntax
|
|
1056
1074
|
* import { HashSet, pipe } from "effect"
|
|
1057
1075
|
*
|
|
1058
1076
|
* // with `data-last`, a.k.a. `pipeable` API
|
|
@@ -1080,9 +1098,10 @@ const flatMap = exports.flatMap = HS.flatMap;
|
|
|
1080
1098
|
* @memberof HashSet
|
|
1081
1099
|
* @since 2.0.0
|
|
1082
1100
|
* @category traversing
|
|
1083
|
-
* @example
|
|
1101
|
+
* @example
|
|
1084
1102
|
*
|
|
1085
1103
|
* ```ts
|
|
1104
|
+
* // Syntax
|
|
1086
1105
|
* import { HashSet, pipe } from "effect"
|
|
1087
1106
|
*
|
|
1088
1107
|
* // with `data-last`, a.k.a. `pipeable` API
|
|
@@ -1104,9 +1123,10 @@ const forEach = exports.forEach = HS.forEach;
|
|
|
1104
1123
|
* @memberof HashSet
|
|
1105
1124
|
* @since 2.0.0
|
|
1106
1125
|
* @category folding
|
|
1107
|
-
* @example
|
|
1126
|
+
* @example
|
|
1108
1127
|
*
|
|
1109
1128
|
* ```ts
|
|
1129
|
+
* // Syntax
|
|
1110
1130
|
* import { HashSet, pipe } from "effect"
|
|
1111
1131
|
*
|
|
1112
1132
|
* const sum = (a: number, b: number): number => a + b
|
|
@@ -1130,9 +1150,10 @@ const reduce = exports.reduce = HS.reduce;
|
|
|
1130
1150
|
* @memberof HashSet
|
|
1131
1151
|
* @since 2.0.0
|
|
1132
1152
|
* @category filtering
|
|
1133
|
-
* @example
|
|
1153
|
+
* @example
|
|
1134
1154
|
*
|
|
1135
1155
|
* ```ts
|
|
1156
|
+
* // Syntax with Predicate
|
|
1136
1157
|
* import { HashSet, type Predicate, pipe } from "effect"
|
|
1137
1158
|
*
|
|
1138
1159
|
* const filterPositiveNumbers: Predicate.Predicate<number> = (n) => n > 0
|
|
@@ -1150,9 +1171,10 @@ const reduce = exports.reduce = HS.reduce;
|
|
|
1150
1171
|
* HashSet.filter(HashSet.make(-2, -1, 0, 1, 2), filterPositiveNumbers)
|
|
1151
1172
|
* ```
|
|
1152
1173
|
*
|
|
1153
|
-
* @example
|
|
1174
|
+
* @example
|
|
1154
1175
|
*
|
|
1155
1176
|
* ```ts
|
|
1177
|
+
* /// Syntax with Refinement
|
|
1156
1178
|
* import { HashSet, pipe } from "effect"
|
|
1157
1179
|
*
|
|
1158
1180
|
* const stringRefinement = (value: unknown): value is string =>
|
|
@@ -1188,9 +1210,10 @@ const filter = exports.filter = HS.filter;
|
|
|
1188
1210
|
* @memberof HashSet
|
|
1189
1211
|
* @since 2.0.0
|
|
1190
1212
|
* @category partitioning
|
|
1191
|
-
* @example
|
|
1213
|
+
* @example
|
|
1192
1214
|
*
|
|
1193
1215
|
* ```ts
|
|
1216
|
+
* // Syntax with Predicate
|
|
1194
1217
|
* import { HashSet, pipe, Predicate } from "effect"
|
|
1195
1218
|
*
|
|
1196
1219
|
* // with `data-last`, a.k.a. `pipeable` API
|
|
@@ -1208,9 +1231,10 @@ const filter = exports.filter = HS.filter;
|
|
|
1208
1231
|
* HashSet.partition(HashSet.make(0, 1, 2, 3, 4, 5), (n) => n % 2 === 0)
|
|
1209
1232
|
* ```
|
|
1210
1233
|
*
|
|
1211
|
-
* @example
|
|
1234
|
+
* @example
|
|
1212
1235
|
*
|
|
1213
1236
|
* ```ts
|
|
1237
|
+
* // Syntax with Refinement
|
|
1214
1238
|
* import { HashSet, pipe, Predicate } from "effect"
|
|
1215
1239
|
*
|
|
1216
1240
|
* const stringRefinement: Predicate.Refinement<string | number, string> = (
|
package/dist/cjs/HashSet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HashSet.js","names":["HS","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","TypeId","HashSetTypeId","isHashSet","exports","empty","fromIterable","make","some","every","isSubset","values","toValues","self","Array","from","size","beginMutation","endMutation","mutate","add","remove","difference","intersection","union","toggle","map","flatMap","forEach","reduce","filter","partition"],"sources":["../../src/HashSet.ts"],"sourcesContent":[null],"mappings":";;;;;;AAgQA,IAAAA,EAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA2C,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAhQ3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqQA,MAAMW,MAAM,GAAkBvB,EAAE,CAACwB,aAAuB;
|
|
1
|
+
{"version":3,"file":"HashSet.js","names":["HS","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","TypeId","HashSetTypeId","isHashSet","exports","empty","fromIterable","make","some","every","isSubset","values","toValues","self","Array","from","size","beginMutation","endMutation","mutate","add","remove","difference","intersection","union","toggle","map","flatMap","forEach","reduce","filter","partition"],"sources":["../../src/HashSet.ts"],"sourcesContent":[null],"mappings":";;;;;;AAgQA,IAAAA,EAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA2C,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAA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
|
|
7
|
-
let moduleVersion = "3.14.
|
|
7
|
+
let moduleVersion = "3.14.4";
|
|
8
8
|
const getCurrentVersion = () => moduleVersion;
|
|
9
9
|
exports.getCurrentVersion = getCurrentVersion;
|
|
10
10
|
const setCurrentVersion = version => {
|