@fncts/base 0.0.20 → 0.0.21
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/_cjs/collection/Iterable/api/traverseConc.cjs +8 -8
- package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
- package/_cjs/collection/Iterable/api.cjs +497 -444
- package/_cjs/collection/Iterable/api.cjs.map +1 -1
- package/_cjs/collection/Iterable/constructors.cjs +7 -7
- package/_cjs/collection/Iterable/constructors.cjs.map +1 -1
- package/_cjs/collection/compat/Array/api.cjs +16 -12
- package/_cjs/collection/compat/Array/api.cjs.map +1 -1
- package/_cjs/collection/compat/Array/derivations.cjs +41 -19
- package/_cjs/collection/compat/Array/derivations.cjs.map +1 -1
- package/_cjs/collection/compat/ArrayLike/api.cjs +1 -1
- package/_cjs/collection/compat/ArrayLike/api.cjs.map +1 -1
- package/_cjs/collection/compat/Record/instances.cjs +39 -3
- package/_cjs/collection/compat/Record/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs +1 -1
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api.cjs +866 -765
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/definition.cjs +55 -53
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/derivations.cjs +13 -2
- package/_cjs/collection/immutable/Conc/derivations.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/api.cjs +57 -44
- package/_cjs/collection/immutable/Dictionary/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/api.cjs +351 -258
- package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/internal.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/api.cjs +230 -192
- package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/definition.cjs +1 -1
- package/_cjs/collection/immutable/HashSet/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs +6 -4
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs +6 -4
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs +6 -4
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs +15 -13
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api.cjs +943 -749
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs +12 -1
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs +33 -33
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +338 -273
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs +15 -4
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs +2 -2
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +12 -12
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api/foldLeft.cjs +12 -10
- package/_cjs/collection/immutable/List/api/foldLeft.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api.cjs +164 -141
- package/_cjs/collection/immutable/List/api.cjs.map +1 -1
- package/_cjs/collection/immutable/List.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/api.cjs +64 -48
- package/_cjs/collection/immutable/Queue/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/definition.cjs +1 -1
- package/_cjs/collection/immutable/Queue/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/api.cjs +50 -36
- package/_cjs/collection/immutable/RoseTree/api.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/api.cjs +408 -368
- package/_cjs/collection/immutable/SortedMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/api.cjs +723 -608
- package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/definition.cjs +18 -16
- package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/internal.cjs +40 -39
- package/_cjs/collection/immutable/Vector/internal.cjs.map +1 -1
- package/_cjs/collection/mutable/HashMap.cjs +3 -5
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/mutable/HashSet.cjs.map +1 -1
- package/_cjs/collection/mutable/ListBuffer.cjs +2 -2
- package/_cjs/collection/mutable/ListBuffer.cjs.map +1 -1
- package/_cjs/collection/mutable/internal.cjs +0 -2
- package/_cjs/collection/mutable/internal.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakMap.cjs +7 -7
- package/_cjs/collection/weak/IterableWeakMap.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakSet.cjs +7 -7
- package/_cjs/collection/weak/IterableWeakSet.cjs.map +1 -1
- package/_cjs/control/Eval/api.cjs +55 -43
- package/_cjs/control/Eval/api.cjs.map +1 -1
- package/_cjs/control/Eval/instance.cjs +4 -4
- package/_cjs/control/Eval/instance.cjs.map +1 -1
- package/_cjs/control/Eval/run.cjs +1 -1
- package/_cjs/control/Eval/run.cjs.map +1 -1
- package/_cjs/control/Z/api.cjs +241 -172
- package/_cjs/control/Z/api.cjs.map +1 -1
- package/_cjs/control/Z/instances.cjs +3 -3
- package/_cjs/control/Z/instances.cjs.map +1 -1
- package/_cjs/control/Z/runtime.cjs +250 -241
- package/_cjs/control/Z/runtime.cjs.map +1 -1
- package/_cjs/data/Branded/definition.cjs.map +1 -1
- package/_cjs/data/Branded/derivations.cjs +3 -3
- package/_cjs/data/Branded/derivations.cjs.map +1 -1
- package/_cjs/data/CaseClass.cjs.map +1 -1
- package/_cjs/data/Cause/api/fold.cjs +20 -18
- package/_cjs/data/Cause/api/fold.cjs.map +1 -1
- package/_cjs/data/Cause/api/isEmpty.cjs +1 -1
- package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
- package/_cjs/data/Cause/api/linearize.cjs +8 -8
- package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
- package/_cjs/data/Cause/api/prettyPrint.cjs +1 -1
- package/_cjs/data/Cause/api/prettyPrint.cjs.map +1 -1
- package/_cjs/data/Cause/api.cjs +160 -140
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Cause/definition.cjs +18 -18
- package/_cjs/data/Cause/definition.cjs.map +1 -1
- package/_cjs/data/Cause.cjs.map +1 -1
- package/_cjs/data/Const/api.cjs +8 -6
- package/_cjs/data/Const/api.cjs.map +1 -1
- package/_cjs/data/Const/instances.cjs +4 -4
- package/_cjs/data/Const/instances.cjs.map +1 -1
- package/_cjs/data/Datum/api.cjs +219 -176
- package/_cjs/data/Datum/api.cjs.map +1 -1
- package/_cjs/data/Datum/definition.cjs.map +1 -1
- package/_cjs/data/DatumEither/api.cjs +165 -133
- package/_cjs/data/DatumEither/api.cjs.map +1 -1
- package/_cjs/data/DecodeError/definition.cjs +14 -14
- package/_cjs/data/DecodeError/definition.cjs.map +1 -1
- package/_cjs/data/Decoder/api.cjs +9 -7
- package/_cjs/data/Decoder/api.cjs.map +1 -1
- package/_cjs/data/Duration/api.cjs +18 -12
- package/_cjs/data/Duration/api.cjs.map +1 -1
- package/_cjs/data/Either/api/align.cjs +8 -3
- package/_cjs/data/Either/api/align.cjs.map +1 -1
- package/_cjs/data/Either/api/alignWith.cjs +14 -12
- package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
- package/_cjs/data/Either/api.cjs +206 -169
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/constructors.cjs +11 -9
- package/_cjs/data/Either/constructors.cjs.map +1 -1
- package/_cjs/data/Either/destructors.cjs +16 -14
- package/_cjs/data/Either/destructors.cjs.map +1 -1
- package/_cjs/data/Either/instances.cjs +8 -8
- package/_cjs/data/Either/instances.cjs.map +1 -1
- package/_cjs/data/EitherT/api.cjs +8 -8
- package/_cjs/data/EitherT/api.cjs.map +1 -1
- package/_cjs/data/Encoder/api.cjs +134 -0
- package/_cjs/data/Encoder/api.cjs.map +1 -0
- package/_cjs/data/Encoder/definition.cjs +25 -0
- package/_cjs/data/Encoder/definition.cjs.map +1 -0
- package/_cjs/data/Encoder.cjs +32 -0
- package/_cjs/data/Encoder.cjs.map +1 -0
- package/_cjs/data/Environment/api.cjs +45 -33
- package/_cjs/data/Environment/api.cjs.map +1 -1
- package/_cjs/data/EnvironmentPatch.cjs +17 -13
- package/_cjs/data/EnvironmentPatch.cjs.map +1 -1
- package/_cjs/data/ExecutionStrategy.cjs +21 -29
- package/_cjs/data/ExecutionStrategy.cjs.map +1 -1
- package/_cjs/data/Exit/api.cjs +159 -127
- package/_cjs/data/Exit/api.cjs.map +1 -1
- package/_cjs/data/Exit/constructors.cjs +4 -4
- package/_cjs/data/Exit/constructors.cjs.map +1 -1
- package/_cjs/data/FiberId/api.cjs +23 -21
- package/_cjs/data/FiberId/api.cjs.map +1 -1
- package/_cjs/data/FiberId/constructors.cjs.map +1 -1
- package/_cjs/data/Identity/api.cjs +26 -18
- package/_cjs/data/Identity/api.cjs.map +1 -1
- package/_cjs/data/Identity/instances.cjs +3 -3
- package/_cjs/data/Identity/instances.cjs.map +1 -1
- package/_cjs/data/Interval.cjs +43 -33
- package/_cjs/data/Interval.cjs.map +1 -1
- package/_cjs/data/Intervals.cjs +35 -27
- package/_cjs/data/Intervals.cjs.map +1 -1
- package/_cjs/data/Maybe/api.cjs +160 -125
- package/_cjs/data/Maybe/api.cjs.map +1 -1
- package/_cjs/data/Maybe/constructors.cjs +2 -2
- package/_cjs/data/Maybe/constructors.cjs.map +1 -1
- package/_cjs/data/Maybe/definition.cjs.map +1 -1
- package/_cjs/data/Maybe/destructors.cjs +9 -7
- package/_cjs/data/Maybe/destructors.cjs.map +1 -1
- package/_cjs/data/Maybe/instances.cjs +11 -11
- package/_cjs/data/Maybe/instances.cjs.map +1 -1
- package/_cjs/data/Predicate/api.cjs +10 -8
- package/_cjs/data/Predicate/api.cjs.map +1 -1
- package/_cjs/data/Refinement/api.cjs +15 -9
- package/_cjs/data/Refinement/api.cjs.map +1 -1
- package/_cjs/data/Struct/api.cjs +62 -50
- package/_cjs/data/Struct/api.cjs.map +1 -1
- package/_cjs/data/Tag/constructors.cjs +3 -2
- package/_cjs/data/Tag/constructors.cjs.map +1 -1
- package/_cjs/data/Tag/definition.cjs +0 -3
- package/_cjs/data/Tag/definition.cjs.map +1 -1
- package/_cjs/data/These/api.cjs +188 -170
- package/_cjs/data/These/api.cjs.map +1 -1
- package/_cjs/data/These/constructors.cjs +1 -1
- package/_cjs/data/These/constructors.cjs.map +1 -1
- package/_cjs/data/These/destructors.cjs +39 -35
- package/_cjs/data/These/destructors.cjs.map +1 -1
- package/_cjs/data/These/instances.cjs +1 -1
- package/_cjs/data/These/instances.cjs.map +1 -1
- package/_cjs/data/Trace/api.cjs +7 -5
- package/_cjs/data/Trace/api.cjs.map +1 -1
- package/_cjs/data/Zipped.cjs.map +1 -1
- package/_cjs/data/function/api.cjs +6 -4
- package/_cjs/data/function/api.cjs.map +1 -1
- package/_cjs/data/function/pipe.cjs +9 -0
- package/_cjs/data/function/pipe.cjs.map +1 -1
- package/_cjs/data/string/api.cjs +53 -96
- package/_cjs/data/string/api.cjs.map +1 -1
- package/_cjs/global/api.cjs +4 -2
- package/_cjs/global/api.cjs.map +1 -1
- package/_cjs/internal/AtomicBoolean.cjs.map +1 -1
- package/_cjs/internal/AtomicNumber.cjs.map +1 -1
- package/_cjs/internal/AtomicReference.cjs.map +1 -1
- package/_cjs/internal/Stack.cjs +2 -2
- package/_cjs/internal/Stack.cjs.map +1 -1
- package/_cjs/optics/At/api.cjs +1 -1
- package/_cjs/optics/At/api.cjs.map +1 -1
- package/_cjs/optics/At/definition.cjs +2 -2
- package/_cjs/optics/At/definition.cjs.map +1 -1
- package/_cjs/optics/Fold/definition.cjs +3 -4
- package/_cjs/optics/Fold/definition.cjs.map +1 -1
- package/_cjs/optics/Getter/definition.cjs +2 -3
- package/_cjs/optics/Getter/definition.cjs.map +1 -1
- package/_cjs/optics/Index/api.cjs +4 -4
- package/_cjs/optics/Index/api.cjs.map +1 -1
- package/_cjs/optics/Index/definition.cjs +2 -2
- package/_cjs/optics/Index/definition.cjs.map +1 -1
- package/_cjs/optics/Iso/api.cjs +9 -7
- package/_cjs/optics/Iso/api.cjs.map +1 -1
- package/_cjs/optics/Iso/definition.cjs +12 -12
- package/_cjs/optics/Iso/definition.cjs.map +1 -1
- package/_cjs/optics/Lens/api.cjs +54 -44
- package/_cjs/optics/Lens/api.cjs.map +1 -1
- package/_cjs/optics/Lens/definition.cjs +10 -10
- package/_cjs/optics/Lens/definition.cjs.map +1 -1
- package/_cjs/optics/Optional/api/compose.cjs +9 -7
- package/_cjs/optics/Optional/api/compose.cjs.map +1 -1
- package/_cjs/optics/Optional/definition.cjs +12 -13
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Optional.cjs.map +1 -1
- package/_cjs/optics/Prism/api/compose.cjs +9 -7
- package/_cjs/optics/Prism/api/compose.cjs.map +1 -1
- package/_cjs/optics/Prism/api/fromNullable.cjs +2 -2
- package/_cjs/optics/Prism/api/fromNullable.cjs.map +1 -1
- package/_cjs/optics/Prism/api/just.cjs +2 -2
- package/_cjs/optics/Prism/api/just.cjs.map +1 -1
- package/_cjs/optics/Prism/definition.cjs +9 -9
- package/_cjs/optics/Prism/definition.cjs.map +1 -1
- package/_cjs/optics/Prism.cjs.map +1 -1
- package/_cjs/optics/Setter/definition.cjs +8 -13
- package/_cjs/optics/Setter/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/compose.cjs +8 -6
- package/_cjs/optics/Traversal/api/compose.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/fromTraversable.cjs +2 -2
- package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
- package/_cjs/optics/Traversal/definition.cjs +12 -12
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal.cjs.map +1 -1
- package/_cjs/typeclass/Align.cjs.map +1 -1
- package/_cjs/typeclass/Alt.cjs.map +1 -1
- package/_cjs/typeclass/Applicative.cjs.map +1 -1
- package/_cjs/typeclass/ApplicativeExcept.cjs +5 -10
- package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
- package/_cjs/typeclass/Apply.cjs +8 -8
- package/_cjs/typeclass/Apply.cjs.map +1 -1
- package/_cjs/typeclass/Chain.cjs +4 -4
- package/_cjs/typeclass/Chain.cjs.map +1 -1
- package/_cjs/typeclass/Eq/definition.cjs.map +1 -1
- package/_cjs/typeclass/Eq/derivations.cjs.map +1 -1
- package/_cjs/typeclass/Equatable/api.cjs.map +1 -1
- package/_cjs/typeclass/Equatable/definition.cjs.map +1 -1
- package/_cjs/typeclass/Equatable/fast-equals.cjs.map +1 -1
- package/_cjs/typeclass/Filterable.cjs.map +1 -1
- package/_cjs/typeclass/FilterableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Foldable.cjs +1 -1
- package/_cjs/typeclass/Foldable.cjs.map +1 -1
- package/_cjs/typeclass/FoldableWithIndex.cjs +1 -1
- package/_cjs/typeclass/FoldableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Functor.cjs.map +1 -1
- package/_cjs/typeclass/FunctorWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Guard/api.cjs +18 -10
- package/_cjs/typeclass/Guard/api.cjs.map +1 -1
- package/_cjs/typeclass/Guard/definition.cjs.map +1 -1
- package/_cjs/typeclass/Guard/derivations.cjs.map +1 -1
- package/_cjs/typeclass/Has.cjs +7 -5
- package/_cjs/typeclass/Has.cjs.map +1 -1
- package/_cjs/typeclass/HashEq.cjs.map +1 -1
- package/_cjs/typeclass/Hashable/definition.cjs.map +1 -1
- package/_cjs/typeclass/Hashable/hash.cjs.map +1 -1
- package/_cjs/typeclass/MonadExcept.cjs +1 -1
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
- package/_cjs/typeclass/Ord/api/contramap.cjs +7 -5
- package/_cjs/typeclass/Ord/api/contramap.cjs.map +1 -1
- package/_cjs/typeclass/Ord/api/max.cjs.map +1 -1
- package/_cjs/typeclass/Ord/api/min.cjs.map +1 -1
- package/_cjs/typeclass/Ord/definition.cjs.map +1 -1
- package/_cjs/typeclass/Ord/instances.cjs.map +1 -1
- package/_cjs/typeclass/Ordering.cjs.map +1 -1
- package/_cjs/typeclass/Semialign.cjs +7 -7
- package/_cjs/typeclass/Semialign.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/api.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/definition.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/derivations.cjs.map +1 -1
- package/_cjs/typeclass/Semimonoidal.cjs.map +1 -1
- package/_cjs/typeclass/Showable/definition.cjs.map +1 -1
- package/_cjs/typeclass/Showable/show.cjs +107 -107
- package/_cjs/typeclass/Showable/show.cjs.map +1 -1
- package/_cjs/typeclass/Showable/styles.cjs.map +1 -1
- package/_cjs/typeclass/Showable/util.cjs +1 -1
- package/_cjs/typeclass/Showable/util.cjs.map +1 -1
- package/_cjs/typeclass/Traversable.cjs +1 -2
- package/_cjs/typeclass/Traversable.cjs.map +1 -1
- package/_cjs/typeclass/TraversableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Witherable.cjs +3 -1
- package/_cjs/typeclass/Witherable.cjs.map +1 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs +3 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
- package/_cjs/util/AnsiFormat.cjs +11 -11
- package/_cjs/util/AnsiFormat.cjs.map +1 -1
- package/_cjs/util/PCGRandom.cjs.map +1 -1
- package/_cjs/util/assert.cjs.map +1 -1
- package/_cjs/util/pattern.cjs.map +1 -1
- package/_cjs/util/predicates.cjs.map +1 -1
- package/_cjs/util/rand/Random.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformArrayIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformBigIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/ArrayInt.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/UniformIntDistributionInternal.cjs.map +1 -1
- package/_cjs/util/rand/generator/MersenneTwister.cjs.map +1 -1
- package/_cjs/util/rand/generator/RandomGenerator.cjs.map +1 -1
- package/_cjs/util/rand.cjs.map +1 -1
- package/_mjs/collection/Iterable/api/traverseConc.mjs +5 -5
- package/_mjs/collection/Iterable/api/traverseConc.mjs.map +1 -1
- package/_mjs/collection/Iterable/api.mjs +465 -411
- package/_mjs/collection/Iterable/api.mjs.map +1 -1
- package/_mjs/collection/Iterable/constructors.mjs +5 -5
- package/_mjs/collection/Iterable/constructors.mjs.map +1 -1
- package/_mjs/collection/compat/Array/api.mjs +16 -12
- package/_mjs/collection/compat/Array/api.mjs.map +1 -1
- package/_mjs/collection/compat/Array/derivations.mjs +35 -19
- package/_mjs/collection/compat/Array/derivations.mjs.map +1 -1
- package/_mjs/collection/compat/ArrayLike/api.mjs +1 -1
- package/_mjs/collection/compat/ArrayLike/api.mjs.map +1 -1
- package/_mjs/collection/compat/Record/instances.mjs +34 -3
- package/_mjs/collection/compat/Record/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs +1 -1
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api.mjs +795 -697
- package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs +53 -51
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/derivations.mjs +10 -2
- package/_mjs/collection/immutable/Conc/derivations.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary/api.mjs +47 -35
- package/_mjs/collection/immutable/Dictionary/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/api.mjs +295 -217
- package/_mjs/collection/immutable/HashMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/definition.mjs +1 -1
- package/_mjs/collection/immutable/HashMap/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/internal.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/api.mjs +206 -168
- package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/definition.mjs +1 -1
- package/_mjs/collection/immutable/HashSet/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs +5 -3
- package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs +5 -3
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs +5 -3
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs +13 -11
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +816 -629
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs +9 -1
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs +34 -34
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +301 -239
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs +12 -4
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs +2 -2
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +13 -13
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api/foldLeft.mjs +11 -9
- package/_mjs/collection/immutable/List/api/foldLeft.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api.mjs +157 -133
- package/_mjs/collection/immutable/List/api.mjs.map +1 -1
- package/_mjs/collection/immutable/List.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/api.mjs +55 -39
- package/_mjs/collection/immutable/Queue/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/definition.mjs +1 -1
- package/_mjs/collection/immutable/Queue/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/api.mjs +50 -36
- package/_mjs/collection/immutable/RoseTree/api.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/api.mjs +398 -358
- package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/api.mjs +650 -538
- package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/definition.mjs +16 -14
- package/_mjs/collection/immutable/Vector/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/internal.mjs +40 -39
- package/_mjs/collection/immutable/Vector/internal.mjs.map +1 -1
- package/_mjs/collection/mutable/HashMap.mjs +3 -5
- package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/mutable/HashSet.mjs.map +1 -1
- package/_mjs/collection/mutable/ListBuffer.mjs +2 -2
- package/_mjs/collection/mutable/ListBuffer.mjs.map +1 -1
- package/_mjs/collection/mutable/internal.mjs +0 -2
- package/_mjs/collection/mutable/internal.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakMap.mjs +7 -7
- package/_mjs/collection/weak/IterableWeakMap.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakSet.mjs +7 -7
- package/_mjs/collection/weak/IterableWeakSet.mjs.map +1 -1
- package/_mjs/control/Eval/api.mjs +40 -28
- package/_mjs/control/Eval/api.mjs.map +1 -1
- package/_mjs/control/Eval/instance.mjs +5 -5
- package/_mjs/control/Eval/instance.mjs.map +1 -1
- package/_mjs/control/Eval/run.mjs +1 -1
- package/_mjs/control/Eval/run.mjs.map +1 -1
- package/_mjs/control/Z/api.mjs +196 -128
- package/_mjs/control/Z/api.mjs.map +1 -1
- package/_mjs/control/Z/instances.mjs +4 -4
- package/_mjs/control/Z/instances.mjs.map +1 -1
- package/_mjs/control/Z/runtime.mjs +244 -234
- package/_mjs/control/Z/runtime.mjs.map +1 -1
- package/_mjs/data/Branded/definition.mjs.map +1 -1
- package/_mjs/data/Branded/derivations.mjs +3 -3
- package/_mjs/data/Branded/derivations.mjs.map +1 -1
- package/_mjs/data/CaseClass.mjs.map +1 -1
- package/_mjs/data/Cause/api/fold.mjs +19 -17
- package/_mjs/data/Cause/api/fold.mjs.map +1 -1
- package/_mjs/data/Cause/api/isEmpty.mjs +1 -1
- package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -1
- package/_mjs/data/Cause/api/linearize.mjs +8 -8
- package/_mjs/data/Cause/api/linearize.mjs.map +1 -1
- package/_mjs/data/Cause/api/prettyPrint.mjs +1 -1
- package/_mjs/data/Cause/api/prettyPrint.mjs.map +1 -1
- package/_mjs/data/Cause/api.mjs +149 -129
- package/_mjs/data/Cause/api.mjs.map +1 -1
- package/_mjs/data/Cause/definition.mjs +18 -18
- package/_mjs/data/Cause/definition.mjs.map +1 -1
- package/_mjs/data/Cause.mjs.map +1 -1
- package/_mjs/data/Const/api.mjs +6 -4
- package/_mjs/data/Const/api.mjs.map +1 -1
- package/_mjs/data/Const/instances.mjs +4 -4
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/Datum/api.mjs +220 -179
- package/_mjs/data/Datum/api.mjs.map +1 -1
- package/_mjs/data/Datum/definition.mjs.map +1 -1
- package/_mjs/data/DatumEither/api.mjs +163 -132
- package/_mjs/data/DatumEither/api.mjs.map +1 -1
- package/_mjs/data/DecodeError/definition.mjs +14 -14
- package/_mjs/data/DecodeError/definition.mjs.map +1 -1
- package/_mjs/data/Decoder/api.mjs +9 -7
- package/_mjs/data/Decoder/api.mjs.map +1 -1
- package/_mjs/data/Duration/api.mjs +16 -10
- package/_mjs/data/Duration/api.mjs.map +1 -1
- package/_mjs/data/Either/api/align.mjs +8 -2
- package/_mjs/data/Either/api/align.mjs.map +1 -1
- package/_mjs/data/Either/api/alignWith.mjs +13 -11
- package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
- package/_mjs/data/Either/api.mjs +175 -136
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/constructors.mjs +7 -5
- package/_mjs/data/Either/constructors.mjs.map +1 -1
- package/_mjs/data/Either/destructors.mjs +15 -13
- package/_mjs/data/Either/destructors.mjs.map +1 -1
- package/_mjs/data/Either/instances.mjs +9 -9
- package/_mjs/data/Either/instances.mjs.map +1 -1
- package/_mjs/data/EitherT/api.mjs +8 -8
- package/_mjs/data/EitherT/api.mjs.map +1 -1
- package/_mjs/data/Encoder/api.mjs +102 -0
- package/_mjs/data/Encoder/api.mjs.map +1 -0
- package/_mjs/data/Encoder/definition.mjs +15 -0
- package/_mjs/data/Encoder/definition.mjs.map +1 -0
- package/_mjs/data/Encoder.mjs +4 -0
- package/_mjs/data/Encoder.mjs.map +1 -0
- package/_mjs/data/Environment/api.mjs +45 -33
- package/_mjs/data/Environment/api.mjs.map +1 -1
- package/_mjs/data/EnvironmentPatch.mjs +17 -13
- package/_mjs/data/EnvironmentPatch.mjs.map +1 -1
- package/_mjs/data/ExecutionStrategy.mjs +19 -27
- package/_mjs/data/ExecutionStrategy.mjs.map +1 -1
- package/_mjs/data/Exit/api.mjs +140 -108
- package/_mjs/data/Exit/api.mjs.map +1 -1
- package/_mjs/data/Exit/constructors.mjs +3 -3
- package/_mjs/data/Exit/constructors.mjs.map +1 -1
- package/_mjs/data/FiberId/api.mjs +22 -20
- package/_mjs/data/FiberId/api.mjs.map +1 -1
- package/_mjs/data/FiberId/constructors.mjs.map +1 -1
- package/_mjs/data/Identity/api.mjs +21 -13
- package/_mjs/data/Identity/api.mjs.map +1 -1
- package/_mjs/data/Identity/instances.mjs +4 -4
- package/_mjs/data/Identity/instances.mjs.map +1 -1
- package/_mjs/data/Interval.mjs +38 -28
- package/_mjs/data/Interval.mjs.map +1 -1
- package/_mjs/data/Intervals.mjs +35 -27
- package/_mjs/data/Intervals.mjs.map +1 -1
- package/_mjs/data/Maybe/api.mjs +141 -106
- package/_mjs/data/Maybe/api.mjs.map +1 -1
- package/_mjs/data/Maybe/constructors.mjs +1 -1
- package/_mjs/data/Maybe/constructors.mjs.map +1 -1
- package/_mjs/data/Maybe/definition.mjs.map +1 -1
- package/_mjs/data/Maybe/destructors.mjs +8 -6
- package/_mjs/data/Maybe/destructors.mjs.map +1 -1
- package/_mjs/data/Maybe/instances.mjs +12 -12
- package/_mjs/data/Maybe/instances.mjs.map +1 -1
- package/_mjs/data/Predicate/api.mjs +10 -8
- package/_mjs/data/Predicate/api.mjs.map +1 -1
- package/_mjs/data/Refinement/api.mjs +15 -9
- package/_mjs/data/Refinement/api.mjs.map +1 -1
- package/_mjs/data/Struct/api.mjs +56 -44
- package/_mjs/data/Struct/api.mjs.map +1 -1
- package/_mjs/data/Tag/constructors.mjs +3 -2
- package/_mjs/data/Tag/constructors.mjs.map +1 -1
- package/_mjs/data/Tag/definition.mjs +0 -2
- package/_mjs/data/Tag/definition.mjs.map +1 -1
- package/_mjs/data/These/api.mjs +187 -169
- package/_mjs/data/These/api.mjs.map +1 -1
- package/_mjs/data/These/constructors.mjs +1 -1
- package/_mjs/data/These/constructors.mjs.map +1 -1
- package/_mjs/data/These/destructors.mjs +35 -31
- package/_mjs/data/These/destructors.mjs.map +1 -1
- package/_mjs/data/These/instances.mjs +1 -1
- package/_mjs/data/These/instances.mjs.map +1 -1
- package/_mjs/data/Trace/api.mjs +6 -4
- package/_mjs/data/Trace/api.mjs.map +1 -1
- package/_mjs/data/Zipped.mjs.map +1 -1
- package/_mjs/data/function/api.mjs +5 -3
- package/_mjs/data/function/api.mjs.map +1 -1
- package/_mjs/data/function/pipe.mjs +7 -0
- package/_mjs/data/function/pipe.mjs.map +1 -1
- package/_mjs/data/string/api.mjs +46 -66
- package/_mjs/data/string/api.mjs.map +1 -1
- package/_mjs/global/api.mjs +4 -2
- package/_mjs/global/api.mjs.map +1 -1
- package/_mjs/internal/AtomicBoolean.mjs.map +1 -1
- package/_mjs/internal/AtomicNumber.mjs.map +1 -1
- package/_mjs/internal/AtomicReference.mjs.map +1 -1
- package/_mjs/internal/Stack.mjs +1 -1
- package/_mjs/internal/Stack.mjs.map +1 -1
- package/_mjs/optics/At/api.mjs +1 -1
- package/_mjs/optics/At/api.mjs.map +1 -1
- package/_mjs/optics/At/definition.mjs +2 -2
- package/_mjs/optics/At/definition.mjs.map +1 -1
- package/_mjs/optics/Fold/definition.mjs +2 -3
- package/_mjs/optics/Fold/definition.mjs.map +1 -1
- package/_mjs/optics/Getter/definition.mjs +1 -2
- package/_mjs/optics/Getter/definition.mjs.map +1 -1
- package/_mjs/optics/Index/api.mjs +4 -4
- package/_mjs/optics/Index/api.mjs.map +1 -1
- package/_mjs/optics/Index/definition.mjs +1 -1
- package/_mjs/optics/Index/definition.mjs.map +1 -1
- package/_mjs/optics/Iso/api.mjs +8 -6
- package/_mjs/optics/Iso/api.mjs.map +1 -1
- package/_mjs/optics/Iso/definition.mjs +9 -9
- package/_mjs/optics/Iso/definition.mjs.map +1 -1
- package/_mjs/optics/Lens/api.mjs +49 -39
- package/_mjs/optics/Lens/api.mjs.map +1 -1
- package/_mjs/optics/Lens/definition.mjs +7 -7
- package/_mjs/optics/Lens/definition.mjs.map +1 -1
- package/_mjs/optics/Optional/api/compose.mjs +8 -6
- package/_mjs/optics/Optional/api/compose.mjs.map +1 -1
- package/_mjs/optics/Optional/definition.mjs +8 -10
- package/_mjs/optics/Optional/definition.mjs.map +1 -1
- package/_mjs/optics/Optional.mjs.map +1 -1
- package/_mjs/optics/Prism/api/compose.mjs +8 -6
- package/_mjs/optics/Prism/api/compose.mjs.map +1 -1
- package/_mjs/optics/Prism/api/fromNullable.mjs +2 -2
- package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -1
- package/_mjs/optics/Prism/api/just.mjs +2 -2
- package/_mjs/optics/Prism/api/just.mjs.map +1 -1
- package/_mjs/optics/Prism/definition.mjs +6 -6
- package/_mjs/optics/Prism/definition.mjs.map +1 -1
- package/_mjs/optics/Prism.mjs.map +1 -1
- package/_mjs/optics/Setter/definition.mjs +5 -10
- package/_mjs/optics/Setter/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs +7 -5
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +2 -2
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
- package/_mjs/optics/Traversal/definition.mjs +9 -9
- package/_mjs/optics/Traversal/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal.mjs.map +1 -1
- package/_mjs/typeclass/Align.mjs.map +1 -1
- package/_mjs/typeclass/Alt.mjs.map +1 -1
- package/_mjs/typeclass/Applicative.mjs.map +1 -1
- package/_mjs/typeclass/ApplicativeExcept.mjs +6 -10
- package/_mjs/typeclass/ApplicativeExcept.mjs.map +1 -1
- package/_mjs/typeclass/Apply.mjs +9 -9
- package/_mjs/typeclass/Apply.mjs.map +1 -1
- package/_mjs/typeclass/Chain.mjs +5 -5
- package/_mjs/typeclass/Chain.mjs.map +1 -1
- package/_mjs/typeclass/Eq/definition.mjs.map +1 -1
- package/_mjs/typeclass/Eq/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Equatable/api.mjs.map +1 -1
- package/_mjs/typeclass/Equatable/definition.mjs.map +1 -1
- package/_mjs/typeclass/Equatable/fast-equals.mjs.map +1 -1
- package/_mjs/typeclass/Filterable.mjs.map +1 -1
- package/_mjs/typeclass/FilterableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Foldable.mjs +1 -1
- package/_mjs/typeclass/Foldable.mjs.map +1 -1
- package/_mjs/typeclass/FoldableWithIndex.mjs +1 -1
- package/_mjs/typeclass/FoldableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Functor.mjs.map +1 -1
- package/_mjs/typeclass/FunctorWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Guard/api.mjs +18 -10
- package/_mjs/typeclass/Guard/api.mjs.map +1 -1
- package/_mjs/typeclass/Guard/definition.mjs.map +1 -1
- package/_mjs/typeclass/Guard/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Has.mjs +7 -5
- package/_mjs/typeclass/Has.mjs.map +1 -1
- package/_mjs/typeclass/HashEq.mjs.map +1 -1
- package/_mjs/typeclass/Hashable/definition.mjs.map +1 -1
- package/_mjs/typeclass/Hashable/hash.mjs.map +1 -1
- package/_mjs/typeclass/MonadExcept.mjs +1 -1
- package/_mjs/typeclass/MonadExcept.mjs.map +1 -1
- package/_mjs/typeclass/Ord/api/contramap.mjs +7 -5
- package/_mjs/typeclass/Ord/api/contramap.mjs.map +1 -1
- package/_mjs/typeclass/Ord/api/max.mjs.map +1 -1
- package/_mjs/typeclass/Ord/api/min.mjs.map +1 -1
- package/_mjs/typeclass/Ord/definition.mjs.map +1 -1
- package/_mjs/typeclass/Ord/instances.mjs.map +1 -1
- package/_mjs/typeclass/Ordering.mjs.map +1 -1
- package/_mjs/typeclass/Semialign.mjs +7 -7
- package/_mjs/typeclass/Semialign.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/definition.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Semimonoidal.mjs.map +1 -1
- package/_mjs/typeclass/Showable/definition.mjs.map +1 -1
- package/_mjs/typeclass/Showable/show.mjs +107 -107
- package/_mjs/typeclass/Showable/show.mjs.map +1 -1
- package/_mjs/typeclass/Showable/styles.mjs.map +1 -1
- package/_mjs/typeclass/Showable/util.mjs +1 -1
- package/_mjs/typeclass/Showable/util.mjs.map +1 -1
- package/_mjs/typeclass/Traversable.mjs +1 -2
- package/_mjs/typeclass/Traversable.mjs.map +1 -1
- package/_mjs/typeclass/TraversableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Witherable.mjs +2 -1
- package/_mjs/typeclass/Witherable.mjs.map +1 -1
- package/_mjs/typeclass/WitherableWithIndex.mjs +2 -1
- package/_mjs/typeclass/WitherableWithIndex.mjs.map +1 -1
- package/_mjs/util/AnsiFormat.mjs +11 -11
- package/_mjs/util/AnsiFormat.mjs.map +1 -1
- package/_mjs/util/PCGRandom.mjs.map +1 -1
- package/_mjs/util/assert.mjs.map +1 -1
- package/_mjs/util/pattern.mjs.map +1 -1
- package/_mjs/util/predicates.mjs.map +1 -1
- package/_mjs/util/rand/Random.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformArrayIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformBigIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/ArrayInt.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/UniformIntDistributionInternal.mjs.map +1 -1
- package/_mjs/util/rand/generator/MersenneTwister.mjs.map +1 -1
- package/_mjs/util/rand/generator/RandomGenerator.mjs.map +1 -1
- package/_mjs/util/rand.mjs.map +1 -1
- package/_src/collection/Iterable/api/traverseConc.ts +3 -3
- package/_src/collection/Iterable/api.ts +445 -408
- package/_src/collection/Iterable/constructors.ts +1 -1
- package/_src/collection/compat/Array/api.ts +16 -13
- package/_src/collection/compat/Array/derivations.ts +27 -1
- package/_src/collection/compat/Record/instances.ts +51 -2
- package/_src/collection/immutable/Conc/api.ts +716 -607
- package/_src/collection/immutable/Conc/definition.ts +60 -68
- package/_src/collection/immutable/Conc/derivations.ts +13 -0
- package/_src/collection/immutable/Conc.ts +0 -1
- package/_src/collection/immutable/Dictionary/api.ts +44 -32
- package/_src/collection/immutable/HashMap/api.ts +338 -224
- package/_src/collection/immutable/HashMap/internal.ts +3 -7
- package/_src/collection/immutable/HashSet/api.ts +193 -158
- package/_src/collection/immutable/ImmutableArray/api/chunksOf.ts +5 -3
- package/_src/collection/immutable/ImmutableArray/api/slice.ts +5 -3
- package/_src/collection/immutable/ImmutableArray/api/splitAt.ts +5 -3
- package/_src/collection/immutable/ImmutableArray/api/splitWhere.ts +13 -14
- package/_src/collection/immutable/ImmutableArray/api.ts +870 -722
- package/_src/collection/immutable/ImmutableArray/derivations.ts +13 -0
- package/_src/collection/immutable/ImmutableArray/instances.ts +54 -73
- package/_src/collection/immutable/ImmutableArray.ts +0 -1
- package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +311 -273
- package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +19 -4
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +0 -1
- package/_src/collection/immutable/ImmutableNonEmptyArray/derivations.ts +13 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/instances.ts +22 -23
- package/_src/collection/immutable/List/api/foldLeft.ts +11 -9
- package/_src/collection/immutable/List/api.ts +147 -133
- package/_src/collection/immutable/List.ts +0 -1
- package/_src/collection/immutable/Queue/api.ts +53 -37
- package/_src/collection/immutable/Queue/definition.ts +0 -1
- package/_src/collection/immutable/RoseTree/api.ts +38 -32
- package/_src/collection/immutable/RoseTree/definition.ts +2 -0
- package/_src/collection/immutable/SortedMap/api.ts +364 -332
- package/_src/collection/immutable/Vector/api.ts +608 -482
- package/_src/collection/immutable/Vector/definition.ts +11 -12
- package/_src/collection/immutable/Vector/internal.ts +37 -38
- package/_src/collection/mutable/HashMap.ts +1 -4
- package/_src/collection/mutable/HashSet.ts +1 -2
- package/_src/collection/mutable/ListBuffer.ts +1 -1
- package/_src/collection/mutable/internal.ts +0 -2
- package/_src/collection/weak/IterableWeakMap.ts +11 -7
- package/_src/collection/weak/IterableWeakSet.ts +10 -5
- package/_src/control/Eval/api.ts +35 -19
- package/_src/control/Eval/instance.ts +5 -5
- package/_src/control/Z/api.ts +191 -208
- package/_src/control/Z/instances.ts +4 -5
- package/_src/control/Z/runtime.ts +190 -189
- package/_src/data/Branded/definition.ts +11 -12
- package/_src/data/Branded/derivations.ts +2 -2
- package/_src/data/CaseClass.ts +4 -1
- package/_src/data/Cause/api/fold.ts +13 -14
- package/_src/data/Cause/api.ts +125 -105
- package/_src/data/Cause.ts +0 -1
- package/_src/data/Const/api.ts +6 -4
- package/_src/data/Const/instances.ts +3 -3
- package/_src/data/Datum/api.ts +229 -197
- package/_src/data/Datum/definition.ts +2 -5
- package/_src/data/DatumEither/api.ts +208 -193
- package/_src/data/Decoder/api.ts +5 -3
- package/_src/data/Duration/api.ts +19 -15
- package/_src/data/Either/api/align.ts +7 -2
- package/_src/data/Either/api/alignWith.ts +13 -15
- package/_src/data/Either/api.ts +141 -119
- package/_src/data/Either/constructors.ts +12 -10
- package/_src/data/Either/destructors.ts +11 -9
- package/_src/data/Either/instances.ts +24 -20
- package/_src/data/EitherT/api.ts +43 -49
- package/_src/data/Encoder/api.ts +123 -0
- package/_src/data/Encoder/definition.ts +12 -0
- package/_src/data/Encoder.ts +4 -0
- package/_src/data/Environment/api.ts +52 -44
- package/_src/data/EnvironmentPatch.ts +10 -9
- package/_src/data/ExecutionStrategy.ts +14 -24
- package/_src/data/Exit/api.ts +104 -73
- package/_src/data/Exit/constructors.ts +2 -2
- package/_src/data/FiberId/api.ts +19 -17
- package/_src/data/FiberId/constructors.ts +1 -2
- package/_src/data/Identity/api.ts +20 -12
- package/_src/data/Identity/instances.ts +4 -7
- package/_src/data/Interval.ts +39 -29
- package/_src/data/Intervals.ts +31 -23
- package/_src/data/Maybe/api.ts +112 -79
- package/_src/data/Maybe/constructors.ts +3 -3
- package/_src/data/Maybe/definition.ts +11 -1
- package/_src/data/Maybe/destructors.ts +6 -4
- package/_src/data/Maybe/instances.ts +10 -21
- package/_src/data/Predicate/api.ts +14 -8
- package/_src/data/Refinement/api.ts +19 -13
- package/_src/data/Struct/api.ts +75 -55
- package/_src/data/Tag/constructors.ts +1 -2
- package/_src/data/Tag/definition.ts +0 -1
- package/_src/data/These/api.ts +114 -114
- package/_src/data/These/destructors.ts +23 -24
- package/_src/data/Trace/api.ts +5 -3
- package/_src/data/Zipped.ts +3 -4
- package/_src/data/function/api.ts +6 -7
- package/_src/data/function/pipe.ts +9 -1
- package/_src/data/string/api.ts +40 -60
- package/_src/data.ts +1 -0
- package/_src/global/api.ts +7 -12
- package/_src/global.ts +4 -0
- package/_src/internal/AtomicBoolean.ts +0 -1
- package/_src/internal/AtomicNumber.ts +0 -7
- package/_src/internal/AtomicReference.ts +0 -4
- package/_src/internal/Stack.ts +1 -7
- package/_src/optics/At/definition.ts +5 -3
- package/_src/optics/Fold/definition.ts +3 -10
- package/_src/optics/Getter/definition.ts +1 -2
- package/_src/optics/Index/definition.ts +1 -1
- package/_src/optics/Iso/api.ts +8 -6
- package/_src/optics/Iso/definition.ts +3 -3
- package/_src/optics/Lens/api.ts +44 -42
- package/_src/optics/Lens/definition.ts +5 -5
- package/_src/optics/Optional/api/compose.ts +9 -9
- package/_src/optics/Optional/definition.ts +9 -16
- package/_src/optics/Optional.ts +0 -1
- package/_src/optics/Prism/api/compose.ts +9 -6
- package/_src/optics/Prism/definition.ts +3 -3
- package/_src/optics/Prism.ts +0 -1
- package/_src/optics/Setter/definition.ts +3 -23
- package/_src/optics/Traversal/api/compose.ts +7 -8
- package/_src/optics/Traversal/api/fromTraversable.ts +1 -1
- package/_src/optics/Traversal/definition.ts +10 -15
- package/_src/optics/Traversal.ts +0 -1
- package/_src/typeclass/Align.ts +0 -3
- package/_src/typeclass/Alt.ts +2 -1
- package/_src/typeclass/Applicative.ts +0 -1
- package/_src/typeclass/ApplicativeExcept.ts +15 -10
- package/_src/typeclass/Apply.ts +30 -33
- package/_src/typeclass/Chain.ts +9 -12
- package/_src/typeclass/Eq/definition.ts +0 -3
- package/_src/typeclass/Eq/derivations.ts +0 -2
- package/_src/typeclass/Equatable/api.ts +0 -2
- package/_src/typeclass/Equatable/definition.ts +0 -4
- package/_src/typeclass/Equatable/fast-equals.ts +11 -93
- package/_src/typeclass/Filterable.ts +19 -13
- package/_src/typeclass/FilterableWithIndex.ts +19 -13
- package/_src/typeclass/Foldable.ts +7 -10
- package/_src/typeclass/FoldableWithIndex.ts +7 -10
- package/_src/typeclass/Functor.ts +6 -4
- package/_src/typeclass/FunctorWithIndex.ts +3 -2
- package/_src/typeclass/Guard/api.ts +21 -16
- package/_src/typeclass/Guard/definition.ts +0 -3
- package/_src/typeclass/Guard/derivations.ts +5 -6
- package/_src/typeclass/Has.ts +6 -4
- package/_src/typeclass/HashEq.ts +0 -7
- package/_src/typeclass/Hashable/definition.ts +0 -4
- package/_src/typeclass/Hashable/hash.ts +0 -26
- package/_src/typeclass/MonadExcept.ts +1 -1
- package/_src/typeclass/Ord/api/contramap.ts +7 -6
- package/_src/typeclass/Ord/api/max.ts +0 -1
- package/_src/typeclass/Ord/api/min.ts +0 -1
- package/_src/typeclass/Ord/definition.ts +0 -4
- package/_src/typeclass/Ord/instances.ts +0 -2
- package/_src/typeclass/Ordering.ts +2 -0
- package/_src/typeclass/Semialign.ts +43 -32
- package/_src/typeclass/Semigroup/api.ts +0 -2
- package/_src/typeclass/Semigroup/definition.ts +0 -4
- package/_src/typeclass/Semigroup/derivations.ts +0 -2
- package/_src/typeclass/Semimonoidal.ts +3 -2
- package/_src/typeclass/Showable/definition.ts +0 -6
- package/_src/typeclass/Showable/show.ts +1 -57
- package/_src/typeclass/Showable/styles.ts +0 -8
- package/_src/typeclass/Showable/util.ts +22 -57
- package/_src/typeclass/Traversable.ts +13 -18
- package/_src/typeclass/TraversableWithIndex.ts +5 -7
- package/_src/typeclass/Witherable.ts +21 -13
- package/_src/typeclass/WitherableWithIndex.ts +26 -17
- package/_src/typeclass/builtin/Symbol.ts +0 -1
- package/_src/types/extractions.ts +12 -3
- package/_src/types/utility.ts +3 -5
- package/_src/util/AnsiFormat.ts +0 -25
- package/_src/util/PCGRandom.ts +4 -9
- package/_src/util/assert.ts +1 -2
- package/_src/util/pattern.ts +91 -12
- package/_src/util/predicates.ts +3 -1
- package/_src/util/rand/Random.ts +12 -16
- package/_src/util/rand/distribution/Distribution.ts +0 -1
- package/_src/util/rand/distribution/UniformArrayIntDistribution.ts +0 -3
- package/_src/util/rand/distribution/UniformBigIntDistribution.ts +0 -5
- package/_src/util/rand/distribution/UniformIntDistribution.ts +0 -7
- package/_src/util/rand/distribution/internals/ArrayInt.ts +3 -13
- package/_src/util/rand/distribution/internals/UniformArrayIntDistributionInternal.ts +0 -3
- package/_src/util/rand/distribution/internals/UniformIntDistributionInternal.ts +0 -4
- package/_src/util/rand/generator/MersenneTwister.ts +6 -29
- package/_src/util/rand/generator/RandomGenerator.ts +0 -3
- package/_src/util/rand.ts +0 -2
- package/collection/Iterable/api/traverseConc.d.ts +2 -2
- package/collection/Iterable/api.d.ts +64 -64
- package/collection/Iterable/constructors.d.ts +1 -1
- package/collection/compat/Array/api.d.ts +6 -6
- package/collection/compat/Array/derivations.d.ts +11 -0
- package/collection/compat/Record/instances.d.ts +30 -6
- package/collection/immutable/Conc/api.d.ts +108 -105
- package/collection/immutable/Conc/definition.d.ts +2 -2
- package/collection/immutable/Conc/derivations.d.ts +6 -0
- package/collection/immutable/Dictionary/api.d.ts +12 -12
- package/collection/immutable/HashMap/api.d.ts +76 -70
- package/collection/immutable/HashSet/api.d.ts +45 -41
- package/collection/immutable/ImmutableArray/api/chunksOf.d.ts +2 -2
- package/collection/immutable/ImmutableArray/api/slice.d.ts +2 -2
- package/collection/immutable/ImmutableArray/api/splitAt.d.ts +2 -2
- package/collection/immutable/ImmutableArray/api/splitWhere.d.ts +3 -3
- package/collection/immutable/ImmutableArray/api.d.ts +206 -206
- package/collection/immutable/ImmutableArray/derivations.d.ts +6 -0
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +64 -63
- package/collection/immutable/ImmutableNonEmptyArray/derivations.d.ts +6 -0
- package/collection/immutable/List/api/foldLeft.d.ts +2 -2
- package/collection/immutable/List/api.d.ts +24 -24
- package/collection/immutable/Queue/api.d.ts +16 -16
- package/collection/immutable/RoseTree/api.d.ts +14 -14
- package/collection/immutable/SortedMap/api.d.ts +41 -41
- package/collection/immutable/Vector/api.d.ts +121 -117
- package/collection/immutable/Vector/definition.d.ts +2 -2
- package/collection/immutable/Vector/internal.d.ts +2 -2
- package/collection/mutable/ListBuffer.d.ts +1 -1
- package/control/Eval/api.d.ts +12 -12
- package/control/Z/api.d.ts +68 -68
- package/control/Z/runtime.d.ts +10 -10
- package/data/Branded/derivations.d.ts +2 -2
- package/data/Cause/api/fold.d.ts +3 -3
- package/data/Cause/api.d.ts +20 -20
- package/data/Const/api.d.ts +3 -3
- package/data/Datum/api.d.ts +43 -41
- package/data/DatumEither/api.d.ts +48 -46
- package/data/Decoder/api.d.ts +2 -2
- package/data/Duration/api.d.ts +7 -7
- package/data/Either/api/align.d.ts +5 -1
- package/data/Either/api/alignWith.d.ts +2 -2
- package/data/Either/api.d.ts +40 -46
- package/data/Either/constructors.d.ts +6 -6
- package/data/Either/destructors.d.ts +2 -2
- package/data/EitherT/api.d.ts +6 -6
- package/data/Encoder/api.d.ts +73 -0
- package/data/Encoder/definition.d.ts +12 -0
- package/data/Encoder.d.ts +2 -0
- package/data/Environment/api.d.ts +14 -14
- package/data/EnvironmentPatch.d.ts +4 -4
- package/data/ExecutionStrategy.d.ts +1 -6
- package/data/Exit/api.d.ts +32 -32
- package/data/Exit/constructors.d.ts +2 -2
- package/data/FiberId/api.d.ts +2 -2
- package/data/Identity/api.d.ts +8 -8
- package/data/Interval.d.ts +11 -11
- package/data/Intervals.d.ts +11 -11
- package/data/Maybe/api.d.ts +36 -37
- package/data/Maybe/constructors.d.ts +2 -2
- package/data/Maybe/definition.d.ts +7 -3
- package/data/Maybe/destructors.d.ts +2 -2
- package/data/Predicate/api.d.ts +5 -5
- package/data/Refinement/api.d.ts +9 -9
- package/data/Struct/api.d.ts +13 -23
- package/data/Tag/constructors.d.ts +1 -2
- package/data/Tag/definition.d.ts +0 -1
- package/data/These/api.d.ts +18 -22
- package/data/These/destructors.d.ts +4 -4
- package/data/Trace/api.d.ts +2 -2
- package/data/function/api.d.ts +3 -3
- package/data/function/pipe.d.ts +7 -1
- package/data/string/api.d.ts +9 -49
- package/data.d.ts +1 -0
- package/global/api.d.ts +3 -3
- package/global.d.ts +4 -0
- package/internal/Stack.d.ts +1 -1
- package/optics/At/definition.d.ts +1 -1
- package/optics/Fold/definition.d.ts +2 -6
- package/optics/Getter/definition.d.ts +1 -1
- package/optics/Index/definition.d.ts +1 -1
- package/optics/Iso/api.d.ts +2 -2
- package/optics/Iso/definition.d.ts +2 -2
- package/optics/Lens/api.d.ts +10 -10
- package/optics/Lens/definition.d.ts +4 -4
- package/optics/Optional/api/compose.d.ts +2 -2
- package/optics/Optional/definition.d.ts +4 -8
- package/optics/Prism/api/compose.d.ts +2 -2
- package/optics/Prism/definition.d.ts +2 -2
- package/optics/Setter/definition.d.ts +2 -14
- package/optics/Traversal/api/compose.d.ts +2 -2
- package/optics/Traversal/definition.d.ts +4 -4
- package/package.json +1 -1
- package/typeclass/Alt.d.ts +1 -1
- package/typeclass/ApplicativeExcept.d.ts +2 -6
- package/typeclass/Apply.d.ts +5 -5
- package/typeclass/Chain.d.ts +4 -4
- package/typeclass/Filterable.d.ts +6 -6
- package/typeclass/FilterableWithIndex.d.ts +6 -6
- package/typeclass/Foldable.d.ts +4 -4
- package/typeclass/FoldableWithIndex.d.ts +4 -4
- package/typeclass/Functor.d.ts +2 -2
- package/typeclass/FunctorWithIndex.d.ts +1 -1
- package/typeclass/Guard/api.d.ts +7 -7
- package/typeclass/Has.d.ts +3 -3
- package/typeclass/Ord/api/contramap.d.ts +2 -2
- package/typeclass/Semialign.d.ts +14 -14
- package/typeclass/Semimonoidal.d.ts +1 -1
- package/typeclass/Traversable.d.ts +4 -6
- package/typeclass/TraversableWithIndex.d.ts +2 -2
- package/typeclass/Witherable.d.ts +3 -3
- package/typeclass/WitherableWithIndex.d.ts +5 -5
- package/types/extractions.d.ts +10 -6
- package/util/assert.d.ts +1 -1
|
@@ -3,36 +3,43 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
6
|
+
exports._traverse = _traverse;
|
|
7
|
+
exports._traverseWithIndex = void 0;
|
|
8
|
+
exports._wilt = _wilt;
|
|
9
|
+
exports._wiltWithIndex = void 0;
|
|
10
|
+
exports._wither = _wither;
|
|
11
|
+
exports.endMutation = exports.compact = exports.beginMutation = exports._witherWithIndex = void 0;
|
|
12
|
+
exports.filter = filter;
|
|
13
|
+
exports.filterWithIndex = exports.filterMapWithIndex = exports.filterMap = void 0;
|
|
14
|
+
exports.flatMap = flatMap;
|
|
15
|
+
exports.flatMapWithIndex = void 0;
|
|
16
|
+
exports.foldLeft = foldLeft;
|
|
17
|
+
exports.forEachWithIndex = exports.forEach = exports.foldLeftWithIndex = void 0;
|
|
13
18
|
exports.fromFoldable = fromFoldable;
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
19
|
+
exports.getHash = exports.get = void 0;
|
|
20
|
+
exports.has = has;
|
|
21
|
+
exports.hasHash = hasHash;
|
|
17
22
|
exports.isEmpty = isEmpty;
|
|
18
23
|
exports.keySet = keySet;
|
|
19
24
|
exports.keys = keys;
|
|
20
25
|
exports.make = make;
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
26
|
+
exports.makeWith = exports.makeDefault = void 0;
|
|
27
|
+
exports.map = map;
|
|
28
|
+
exports.mutate = exports.modifyHash = exports.modify = exports.mapWithIndex = void 0;
|
|
29
|
+
exports.partition = partition;
|
|
30
|
+
exports.partitionWithIndex = exports.partitionMapWithIndex = exports.partitionMap = void 0;
|
|
31
|
+
exports.pop = pop;
|
|
32
|
+
exports.remove = void 0;
|
|
33
|
+
exports.removeMany = removeMany;
|
|
34
|
+
exports.set = exports.separate = void 0;
|
|
28
35
|
exports.toArray = toArray;
|
|
29
36
|
exports.toList = toList;
|
|
30
37
|
exports.toSetDefault = toSetDefault;
|
|
31
38
|
exports.traverseWithIndex = exports.traverse = void 0;
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
39
|
+
exports.union = union;
|
|
40
|
+
exports.unionWith = unionWith;
|
|
41
|
+
exports.unsafeGet = unsafeGet;
|
|
42
|
+
exports.update = update;
|
|
36
43
|
exports.values = values;
|
|
37
44
|
exports.witherWithIndex = exports.wither = exports.wiltWithIndex = exports.wilt = void 0;
|
|
38
45
|
|
|
@@ -54,12 +61,12 @@ var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require
|
|
|
54
61
|
|
|
55
62
|
var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/destructors"));
|
|
56
63
|
|
|
57
|
-
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/
|
|
58
|
-
|
|
59
|
-
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/destructors"));
|
|
64
|
+
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/destructors"));
|
|
60
65
|
|
|
61
66
|
var _internal = /*#__PURE__*/require("@fncts/base/collection/immutable/HashMap/internal");
|
|
62
67
|
|
|
68
|
+
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
|
69
|
+
|
|
63
70
|
var P = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass"));
|
|
64
71
|
|
|
65
72
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -70,50 +77,56 @@ const makeWith = makeWith_1;
|
|
|
70
77
|
exports.makeWith = makeWith;
|
|
71
78
|
const makeDefault = makeDefault_1;
|
|
72
79
|
exports.makeDefault = makeDefault;
|
|
73
|
-
const
|
|
74
|
-
exports.
|
|
75
|
-
const
|
|
76
|
-
exports.
|
|
77
|
-
const
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
80
|
-
exports.
|
|
81
|
-
const
|
|
82
|
-
exports.
|
|
83
|
-
const
|
|
84
|
-
exports.
|
|
80
|
+
const getHash = getHash_1;
|
|
81
|
+
exports.getHash = getHash;
|
|
82
|
+
const get = get_1;
|
|
83
|
+
exports.get = get;
|
|
84
|
+
const modifyHash = modifyHash_1;
|
|
85
|
+
exports.modifyHash = modifyHash;
|
|
86
|
+
const modify = modify_1;
|
|
87
|
+
exports.modify = modify;
|
|
88
|
+
const set = set_1;
|
|
89
|
+
exports.set = set;
|
|
90
|
+
const remove = remove_1;
|
|
91
|
+
exports.remove = remove;
|
|
85
92
|
const beginMutation = beginMutation_1;
|
|
86
93
|
exports.beginMutation = beginMutation;
|
|
87
94
|
const endMutation = endMutation_1;
|
|
88
95
|
exports.endMutation = endMutation;
|
|
89
|
-
const
|
|
90
|
-
exports.
|
|
91
|
-
const
|
|
92
|
-
exports.
|
|
93
|
-
const
|
|
94
|
-
exports.
|
|
95
|
-
const
|
|
96
|
-
exports.
|
|
97
|
-
const
|
|
98
|
-
exports.
|
|
96
|
+
const mutate = mutate_1;
|
|
97
|
+
exports.mutate = mutate;
|
|
98
|
+
const forEachWithIndex = forEachWithIndex_1;
|
|
99
|
+
exports.forEachWithIndex = forEachWithIndex;
|
|
100
|
+
const forEach = forEach_1;
|
|
101
|
+
exports.forEach = forEach;
|
|
102
|
+
const mapWithIndex = mapWithIndex_1;
|
|
103
|
+
exports.mapWithIndex = mapWithIndex;
|
|
104
|
+
const flatMapWithIndex = flatMapWithIndex_1;
|
|
105
|
+
exports.flatMapWithIndex = flatMapWithIndex;
|
|
99
106
|
const compact = compact_1;
|
|
100
107
|
exports.compact = compact;
|
|
101
108
|
const separate = separate_1;
|
|
102
109
|
exports.separate = separate;
|
|
103
|
-
const
|
|
104
|
-
exports.
|
|
105
|
-
const
|
|
106
|
-
exports.
|
|
107
|
-
const
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
110
|
-
exports.
|
|
111
|
-
const
|
|
112
|
-
exports.
|
|
113
|
-
const
|
|
114
|
-
exports.
|
|
115
|
-
const
|
|
116
|
-
exports.
|
|
110
|
+
const filterMapWithIndex = filterMapWithIndex_1;
|
|
111
|
+
exports.filterMapWithIndex = filterMapWithIndex;
|
|
112
|
+
const filterMap = filterMap_1;
|
|
113
|
+
exports.filterMap = filterMap;
|
|
114
|
+
const filterWithIndex = filterWithIndex_1;
|
|
115
|
+
exports.filterWithIndex = filterWithIndex;
|
|
116
|
+
const partitionMapWithIndex = partitionMapWithIndex_1;
|
|
117
|
+
exports.partitionMapWithIndex = partitionMapWithIndex;
|
|
118
|
+
const partitionMap = partitionMap_1;
|
|
119
|
+
exports.partitionMap = partitionMap;
|
|
120
|
+
const partitionWithIndex = partitionWithIndex_1;
|
|
121
|
+
exports.partitionWithIndex = partitionWithIndex;
|
|
122
|
+
const foldLeftWithIndex = foldLeftWithIndex_1;
|
|
123
|
+
exports.foldLeftWithIndex = foldLeftWithIndex;
|
|
124
|
+
const _traverseWithIndex = _traverseWithIndex_1;
|
|
125
|
+
exports._traverseWithIndex = _traverseWithIndex;
|
|
126
|
+
const _witherWithIndex = _witherWithIndex_1;
|
|
127
|
+
exports._witherWithIndex = _witherWithIndex;
|
|
128
|
+
const _wiltWithIndex = _wiltWithIndex_1;
|
|
129
|
+
exports._wiltWithIndex = _wiltWithIndex;
|
|
117
130
|
|
|
118
131
|
/**
|
|
119
132
|
* Does `map` contain any elements?
|
|
@@ -139,11 +152,11 @@ function makeWith_1(config) {
|
|
|
139
152
|
|
|
140
153
|
|
|
141
154
|
function make(...items) {
|
|
142
|
-
return mutate_1(
|
|
155
|
+
return mutate_1(map => {
|
|
143
156
|
for (const [key, value] of items) {
|
|
144
|
-
set_1(
|
|
157
|
+
set_1(key, value)(map);
|
|
145
158
|
}
|
|
146
|
-
});
|
|
159
|
+
})(makeDefault_1());
|
|
147
160
|
}
|
|
148
161
|
/**
|
|
149
162
|
* Make a new map that has randomly cached hash and structural equality
|
|
@@ -158,62 +171,70 @@ function makeDefault_1() {
|
|
|
158
171
|
/**
|
|
159
172
|
* Makes a new map from a Foldable of key-value pairs
|
|
160
173
|
*
|
|
161
|
-
* @tsplus
|
|
174
|
+
* @tsplus pipeable fncts.HashMapOps fromFoldable
|
|
162
175
|
*/
|
|
163
176
|
|
|
164
177
|
|
|
165
178
|
function fromFoldable(config, S, F) {
|
|
166
179
|
return fka => {
|
|
167
|
-
return F.foldLeft(
|
|
168
|
-
const oa = get_1(
|
|
180
|
+
return F.foldLeft(makeWith_1(config), (b, [k, a]) => {
|
|
181
|
+
const oa = get_1(k)(b);
|
|
169
182
|
|
|
170
183
|
if (tsplus_module_3.isJust(oa)) {
|
|
171
|
-
return set_1(
|
|
184
|
+
return set_1(k, S.combine(oa.value, a))(b);
|
|
172
185
|
} else {
|
|
173
|
-
return set_1(
|
|
186
|
+
return set_1(k, a)(b);
|
|
174
187
|
}
|
|
175
|
-
});
|
|
188
|
+
})(fka);
|
|
176
189
|
};
|
|
177
190
|
}
|
|
178
191
|
/**
|
|
179
192
|
* Lookup the value for `key` in `map` using custom hash.
|
|
180
193
|
*
|
|
181
|
-
* @tsplus
|
|
194
|
+
* @tsplus pipeable fncts.HashMap getHash
|
|
182
195
|
*/
|
|
183
196
|
|
|
184
197
|
|
|
185
|
-
function getHash_1(
|
|
186
|
-
return
|
|
198
|
+
function getHash_1(key, hash) {
|
|
199
|
+
return map => {
|
|
200
|
+
return tryGetHash(map, key, hash);
|
|
201
|
+
};
|
|
187
202
|
}
|
|
188
203
|
/**
|
|
189
204
|
* Lookup the value for `key` in `map` using internal hash function.
|
|
190
205
|
*
|
|
191
|
-
* @tsplus
|
|
206
|
+
* @tsplus pipeable fncts.HashMap get
|
|
192
207
|
*/
|
|
193
208
|
|
|
194
209
|
|
|
195
|
-
function get_1(
|
|
196
|
-
return
|
|
210
|
+
function get_1(key) {
|
|
211
|
+
return map => {
|
|
212
|
+
return tryGetHash(map, key, map.config.hash(key));
|
|
213
|
+
};
|
|
197
214
|
}
|
|
198
215
|
/**
|
|
199
216
|
* Does an entry exist for `key` in `map`? Uses custom `hash`.
|
|
200
217
|
*
|
|
201
|
-
* @tsplus
|
|
218
|
+
* @tsplus pipeable fncts.HashMap hashHash
|
|
202
219
|
*/
|
|
203
220
|
|
|
204
221
|
|
|
205
|
-
function
|
|
206
|
-
return
|
|
222
|
+
function hasHash(key, hash) {
|
|
223
|
+
return map => {
|
|
224
|
+
return tsplus_module_3.isJust(tryGetHash(map, key, hash));
|
|
225
|
+
};
|
|
207
226
|
}
|
|
208
227
|
/**
|
|
209
228
|
* Does an entry exist for `key` in `map`? Uses internal hash function.
|
|
210
229
|
*
|
|
211
|
-
* @tsplus
|
|
230
|
+
* @tsplus pipeable fncts.HashMap has
|
|
212
231
|
*/
|
|
213
232
|
|
|
214
233
|
|
|
215
|
-
function
|
|
216
|
-
return
|
|
234
|
+
function has(key) {
|
|
235
|
+
return map => {
|
|
236
|
+
return tsplus_module_3.isJust(tryGetHash(map, key, map.config.hash(key)));
|
|
237
|
+
};
|
|
217
238
|
}
|
|
218
239
|
/**
|
|
219
240
|
* Alter the value stored for `key` in `map` using function `f` using custom hash.
|
|
@@ -224,16 +245,18 @@ function has_(map, key) {
|
|
|
224
245
|
* `modify` will always either update or insert a value into the map.
|
|
225
246
|
* Returns a map with the modified value. Does not alter `map`.
|
|
226
247
|
*
|
|
227
|
-
* @tsplus
|
|
248
|
+
* @tsplus pipeable fncts.HashMap modifyHash
|
|
228
249
|
*/
|
|
229
250
|
|
|
230
251
|
|
|
231
|
-
function modifyHash_1(
|
|
232
|
-
|
|
233
|
-
|
|
252
|
+
function modifyHash_1(key, hash, f) {
|
|
253
|
+
return map => {
|
|
254
|
+
const size = {
|
|
255
|
+
value: map.size
|
|
256
|
+
};
|
|
257
|
+
const newRoot = map.root.modify(map.editable ? map.edit : NaN, map.config.equals, 0, f, hash, key, size);
|
|
258
|
+
return setTree(map, newRoot, size.value);
|
|
234
259
|
};
|
|
235
|
-
const newRoot = map.root.modify(map.editable ? map.edit : NaN, map.config.equals, 0, f, hash, key, size);
|
|
236
|
-
return setTree(map, newRoot, size.value);
|
|
237
260
|
}
|
|
238
261
|
/**
|
|
239
262
|
* Alter the value stored for `key` in `map` using function `f` using internal hash function.
|
|
@@ -244,46 +267,54 @@ function modifyHash_1(map, key, hash, f) {
|
|
|
244
267
|
* `modify` will always either update or insert a value into the map.
|
|
245
268
|
* Returns a map with the modified value. Does not alter `map`.
|
|
246
269
|
*
|
|
247
|
-
* @tsplus
|
|
270
|
+
* @tsplus pipeable fncts.HashMap modify
|
|
248
271
|
*/
|
|
249
272
|
|
|
250
273
|
|
|
251
|
-
function modify_1(
|
|
252
|
-
return
|
|
274
|
+
function modify_1(key, f) {
|
|
275
|
+
return map => {
|
|
276
|
+
return modifyHash_1(key, map.config.hash(key), f)(map);
|
|
277
|
+
};
|
|
253
278
|
}
|
|
254
279
|
/**
|
|
255
280
|
* Store `value` for `key` in `map` using internal hash function.
|
|
256
281
|
*
|
|
257
|
-
* @tsplus
|
|
282
|
+
* @tsplus pipeable fncts.HashMap set
|
|
258
283
|
*/
|
|
259
284
|
|
|
260
285
|
|
|
261
|
-
function set_1(
|
|
262
|
-
return
|
|
286
|
+
function set_1(key, value) {
|
|
287
|
+
return map => {
|
|
288
|
+
return modify_1(key, () => tsplus_module_4.just(value))(map);
|
|
289
|
+
};
|
|
263
290
|
}
|
|
264
291
|
/**
|
|
265
292
|
* Remove the entry for `key` in `map` using internal hash.
|
|
266
293
|
*
|
|
267
|
-
* @tsplus
|
|
294
|
+
* @tsplus pipeable fncts.HashMap remove
|
|
268
295
|
*/
|
|
269
296
|
|
|
270
297
|
|
|
271
|
-
function remove_1(
|
|
272
|
-
return
|
|
298
|
+
function remove_1(key) {
|
|
299
|
+
return map => {
|
|
300
|
+
return modify_1(key, () => tsplus_module_4.nothing())(map);
|
|
301
|
+
};
|
|
273
302
|
}
|
|
274
303
|
/**
|
|
275
304
|
* Remove many keys
|
|
276
305
|
*
|
|
277
|
-
* @tsplus
|
|
306
|
+
* @tsplus pipeable fncts.HashMap removeMany
|
|
278
307
|
*/
|
|
279
308
|
|
|
280
309
|
|
|
281
|
-
function
|
|
282
|
-
return
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
310
|
+
function removeMany(keys) {
|
|
311
|
+
return map => {
|
|
312
|
+
return mutate_1(m => {
|
|
313
|
+
for (const k of keys) {
|
|
314
|
+
remove_1(k)(m);
|
|
315
|
+
}
|
|
316
|
+
})(map);
|
|
317
|
+
};
|
|
287
318
|
}
|
|
288
319
|
/**
|
|
289
320
|
* Mark `map` as mutable.
|
|
@@ -309,14 +340,16 @@ function endMutation_1(map) {
|
|
|
309
340
|
/**
|
|
310
341
|
* Mutate `map` within the context of `f`.
|
|
311
342
|
*
|
|
312
|
-
* @tsplus
|
|
343
|
+
* @tsplus pipeable fncts.HashMap mutate
|
|
313
344
|
*/
|
|
314
345
|
|
|
315
346
|
|
|
316
|
-
function mutate_1(
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
347
|
+
function mutate_1(f) {
|
|
348
|
+
return map => {
|
|
349
|
+
const transient = beginMutation_1(map);
|
|
350
|
+
f(transient);
|
|
351
|
+
return endMutation_1(transient);
|
|
352
|
+
};
|
|
320
353
|
}
|
|
321
354
|
/**
|
|
322
355
|
* Get an IterableIterator of the map keys
|
|
@@ -336,11 +369,11 @@ function keys(map) {
|
|
|
336
369
|
|
|
337
370
|
|
|
338
371
|
function keySet(self) {
|
|
339
|
-
return tsplus_module_5.
|
|
340
|
-
forEachWithIndex_1(
|
|
341
|
-
tsplus_module_5.
|
|
342
|
-
});
|
|
343
|
-
});
|
|
372
|
+
return tsplus_module_5.mutate(set => {
|
|
373
|
+
forEachWithIndex_1(k => {
|
|
374
|
+
tsplus_module_5.add(k)(set);
|
|
375
|
+
})(self);
|
|
376
|
+
})(tsplus_module_5.make(self.config));
|
|
344
377
|
}
|
|
345
378
|
/**
|
|
346
379
|
* Get the set of values
|
|
@@ -350,11 +383,11 @@ function keySet(self) {
|
|
|
350
383
|
|
|
351
384
|
|
|
352
385
|
function toSetDefault(map) {
|
|
353
|
-
return tsplus_module_5.
|
|
354
|
-
forEach_1(
|
|
355
|
-
tsplus_module_5.
|
|
356
|
-
});
|
|
357
|
-
});
|
|
386
|
+
return tsplus_module_5.mutate(set => {
|
|
387
|
+
forEach_1(v => {
|
|
388
|
+
tsplus_module_5.add(v)(set);
|
|
389
|
+
})(map);
|
|
390
|
+
})(tsplus_module_5.makeDefault());
|
|
358
391
|
}
|
|
359
392
|
/**
|
|
360
393
|
* Get the set of values
|
|
@@ -365,9 +398,9 @@ function toSetDefault(map) {
|
|
|
365
398
|
|
|
366
399
|
function toList(map) {
|
|
367
400
|
const buffer = new tsplus_module_6.ListBuffer();
|
|
368
|
-
forEachWithIndex_1(
|
|
401
|
+
forEachWithIndex_1((k, v) => {
|
|
369
402
|
buffer.append([k, v]);
|
|
370
|
-
});
|
|
403
|
+
})(map);
|
|
371
404
|
return buffer.toList;
|
|
372
405
|
}
|
|
373
406
|
/**
|
|
@@ -380,10 +413,10 @@ function toList(map) {
|
|
|
380
413
|
function toArray(map) {
|
|
381
414
|
const buffer = Array(map.size);
|
|
382
415
|
let i = 0;
|
|
383
|
-
forEachWithIndex_1(
|
|
416
|
+
forEachWithIndex_1((k, v) => {
|
|
384
417
|
buffer[i] = [k, v];
|
|
385
418
|
i++;
|
|
386
|
-
});
|
|
419
|
+
})(map);
|
|
387
420
|
return buffer;
|
|
388
421
|
}
|
|
389
422
|
/**
|
|
@@ -399,76 +432,90 @@ function values(map) {
|
|
|
399
432
|
/**
|
|
400
433
|
* Update a value if exists
|
|
401
434
|
*
|
|
402
|
-
* @tsplus
|
|
435
|
+
* @tsplus pipeable fncts.HashMap update
|
|
403
436
|
*/
|
|
404
437
|
|
|
405
438
|
|
|
406
|
-
function
|
|
407
|
-
return
|
|
439
|
+
function update(key, f) {
|
|
440
|
+
return map => {
|
|
441
|
+
return modify_1(key, v => tsplus_module_7.map(f)(v))(map);
|
|
442
|
+
};
|
|
408
443
|
}
|
|
409
444
|
/**
|
|
410
445
|
* Apply f to each element
|
|
411
446
|
*
|
|
412
|
-
* @tsplus
|
|
447
|
+
* @tsplus pipeable fncts.HashMap forEachWithIndex
|
|
413
448
|
*/
|
|
414
449
|
|
|
415
450
|
|
|
416
|
-
function forEachWithIndex_1(
|
|
417
|
-
|
|
451
|
+
function forEachWithIndex_1(f) {
|
|
452
|
+
return map => {
|
|
453
|
+
foldLeftWithIndex_1(undefined, (key, _, value) => f(key, value, map))(map);
|
|
454
|
+
};
|
|
418
455
|
}
|
|
419
456
|
/**
|
|
420
457
|
* Apply f to each element
|
|
421
458
|
*
|
|
422
|
-
* @tsplus
|
|
459
|
+
* @tsplus pipeable fncts.HashMap forEach
|
|
423
460
|
*/
|
|
424
461
|
|
|
425
462
|
|
|
426
|
-
function forEach_1(
|
|
427
|
-
return
|
|
463
|
+
function forEach_1(f) {
|
|
464
|
+
return map => {
|
|
465
|
+
return forEachWithIndex_1((_, v, m) => f(v, m))(map);
|
|
466
|
+
};
|
|
428
467
|
}
|
|
429
468
|
/**
|
|
430
469
|
* Maps over the map entries
|
|
431
470
|
*
|
|
432
|
-
* @tsplus
|
|
471
|
+
* @tsplus pipeable fncts.HashMap mapWithIndex
|
|
433
472
|
*/
|
|
434
473
|
|
|
435
474
|
|
|
436
|
-
function mapWithIndex_1(
|
|
437
|
-
return
|
|
475
|
+
function mapWithIndex_1(f) {
|
|
476
|
+
return fa => {
|
|
477
|
+
return foldLeftWithIndex_1(makeWith_1(fa.config), (k, z, v) => set_1(k, f(k, v))(z))(fa);
|
|
478
|
+
};
|
|
438
479
|
}
|
|
439
480
|
/**
|
|
440
481
|
* Maps over the map entries
|
|
441
482
|
*
|
|
442
|
-
* @tsplus
|
|
483
|
+
* @tsplus pipeable fncts.HashMap map
|
|
443
484
|
*/
|
|
444
485
|
|
|
445
486
|
|
|
446
|
-
function
|
|
447
|
-
return
|
|
487
|
+
function map(f) {
|
|
488
|
+
return fa => {
|
|
489
|
+
return mapWithIndex_1((_, a) => f(a))(fa);
|
|
490
|
+
};
|
|
448
491
|
}
|
|
449
492
|
/**
|
|
450
493
|
* Chain over the map entries, the hash and equal of the 2 maps has to be the same
|
|
451
494
|
*
|
|
452
|
-
* @tsplus
|
|
495
|
+
* @tsplus pipeable fncts.HashMap flatMapWithIndex
|
|
453
496
|
*/
|
|
454
497
|
|
|
455
498
|
|
|
456
|
-
function flatMapWithIndex_1(
|
|
457
|
-
return
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
499
|
+
function flatMapWithIndex_1(f) {
|
|
500
|
+
return ma => {
|
|
501
|
+
return foldLeftWithIndex_1(makeWith_1(ma.config), (k, z, v) => mutate_1(m => {
|
|
502
|
+
forEachWithIndex_1((k1, a1) => {
|
|
503
|
+
set_1(k1, a1)(m);
|
|
504
|
+
})(f(k, v));
|
|
505
|
+
})(z))(ma);
|
|
506
|
+
};
|
|
462
507
|
}
|
|
463
508
|
/**
|
|
464
509
|
* Chain over the map entries, the hash and equal of the 2 maps has to be the same
|
|
465
510
|
*
|
|
466
|
-
* @tsplus
|
|
511
|
+
* @tsplus pipeable fncts.HashMap flatMap
|
|
467
512
|
*/
|
|
468
513
|
|
|
469
514
|
|
|
470
|
-
function
|
|
471
|
-
return
|
|
515
|
+
function flatMap(f) {
|
|
516
|
+
return ma => {
|
|
517
|
+
return flatMapWithIndex_1((_, a) => f(a))(ma);
|
|
518
|
+
};
|
|
472
519
|
}
|
|
473
520
|
/**
|
|
474
521
|
* Removes values that are `Nothing`
|
|
@@ -478,7 +525,7 @@ function flatMap_(ma, f) {
|
|
|
478
525
|
|
|
479
526
|
|
|
480
527
|
function compact_1(map) {
|
|
481
|
-
return filterMap_1(
|
|
528
|
+
return filterMap_1(tsplus_module_8.identity)(map);
|
|
482
529
|
}
|
|
483
530
|
/**
|
|
484
531
|
* Removes `Either` values into two separate `HashMaps`
|
|
@@ -488,179 +535,212 @@ function compact_1(map) {
|
|
|
488
535
|
|
|
489
536
|
|
|
490
537
|
function separate_1(map) {
|
|
491
|
-
return partitionMap_1(
|
|
538
|
+
return partitionMap_1(tsplus_module_8.identity)(map);
|
|
492
539
|
}
|
|
493
540
|
/**
|
|
494
541
|
* Filter out None and map
|
|
495
542
|
*
|
|
496
|
-
* @tsplus
|
|
543
|
+
* @tsplus pipeable fncts.HashMap filterMapWithIndex
|
|
497
544
|
*/
|
|
498
545
|
|
|
499
546
|
|
|
500
|
-
function filterMapWithIndex_1(
|
|
501
|
-
return
|
|
502
|
-
|
|
503
|
-
const
|
|
547
|
+
function filterMapWithIndex_1(f) {
|
|
548
|
+
return map => {
|
|
549
|
+
return mutate_1(m => {
|
|
550
|
+
for (const [k, a] of map) {
|
|
551
|
+
const o = f(k, a);
|
|
504
552
|
|
|
505
|
-
|
|
506
|
-
|
|
553
|
+
if (tsplus_module_3.isJust(o)) {
|
|
554
|
+
set_1(k, o.value)(m);
|
|
555
|
+
}
|
|
507
556
|
}
|
|
508
|
-
}
|
|
509
|
-
}
|
|
557
|
+
})(makeWith_1(map.config));
|
|
558
|
+
};
|
|
510
559
|
}
|
|
511
560
|
/**
|
|
512
561
|
* Filter out None and map
|
|
513
562
|
*
|
|
514
|
-
* @tsplus
|
|
563
|
+
* @tsplus pipeable fncts.HashMap filterMap
|
|
515
564
|
*/
|
|
516
565
|
|
|
517
566
|
|
|
518
|
-
function filterMap_1(
|
|
519
|
-
return
|
|
567
|
+
function filterMap_1(f) {
|
|
568
|
+
return map => {
|
|
569
|
+
return filterMapWithIndex_1((_, a) => f(a))(map);
|
|
570
|
+
};
|
|
520
571
|
}
|
|
521
572
|
|
|
522
|
-
function filterWithIndex_1(
|
|
523
|
-
return
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
573
|
+
function filterWithIndex_1(predicate) {
|
|
574
|
+
return map => {
|
|
575
|
+
return mutate_1(m => {
|
|
576
|
+
for (const [k, a] of map) {
|
|
577
|
+
if (predicate(k, a)) {
|
|
578
|
+
set_1(k, a)(m);
|
|
579
|
+
}
|
|
527
580
|
}
|
|
528
|
-
}
|
|
529
|
-
}
|
|
581
|
+
})(makeWith_1(map.config));
|
|
582
|
+
};
|
|
530
583
|
}
|
|
531
584
|
|
|
532
|
-
function
|
|
533
|
-
return
|
|
585
|
+
function filter(predicate) {
|
|
586
|
+
return map => {
|
|
587
|
+
return filterWithIndex_1((_, a) => predicate(a))(map);
|
|
588
|
+
};
|
|
534
589
|
}
|
|
535
590
|
/**
|
|
536
|
-
* @tsplus
|
|
591
|
+
* @tsplus pipeable fncts.HashMap partitionMapWithIndex
|
|
537
592
|
*/
|
|
538
593
|
|
|
539
594
|
|
|
540
|
-
function partitionMapWithIndex_1(
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
595
|
+
function partitionMapWithIndex_1(f) {
|
|
596
|
+
return map => {
|
|
597
|
+
const left = beginMutation_1(makeWith_1(map.config));
|
|
598
|
+
const right = beginMutation_1(makeWith_1(map.config));
|
|
599
|
+
forEachWithIndex_1((k, v) => {
|
|
600
|
+
tsplus_module_9.match(a => {
|
|
601
|
+
set_1(k, a)(left);
|
|
602
|
+
}, b => {
|
|
603
|
+
set_1(k, b)(right);
|
|
604
|
+
})(f(k, v));
|
|
605
|
+
})(map);
|
|
606
|
+
return [endMutation_1(left), endMutation_1(right)];
|
|
607
|
+
};
|
|
551
608
|
}
|
|
552
609
|
/**
|
|
553
|
-
* @tsplus
|
|
610
|
+
* @tsplus pipeable fncts.HashMap partitionMap
|
|
554
611
|
*/
|
|
555
612
|
|
|
556
613
|
|
|
557
|
-
function partitionMap_1(
|
|
558
|
-
return
|
|
614
|
+
function partitionMap_1(f) {
|
|
615
|
+
return map => {
|
|
616
|
+
return partitionMapWithIndex_1((_, a) => f(a))(map);
|
|
617
|
+
};
|
|
559
618
|
}
|
|
560
619
|
|
|
561
|
-
function partitionWithIndex_1(
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
620
|
+
function partitionWithIndex_1(predicate) {
|
|
621
|
+
return map => {
|
|
622
|
+
const left = beginMutation_1(makeWith_1(map.config));
|
|
623
|
+
const right = beginMutation_1(makeWith_1(map.config));
|
|
624
|
+
forEachWithIndex_1((k, v) => {
|
|
625
|
+
if (predicate(k, v)) {
|
|
626
|
+
set_1(k, v)(right);
|
|
627
|
+
} else {
|
|
628
|
+
set_1(k, v)(left);
|
|
629
|
+
}
|
|
630
|
+
})(map);
|
|
631
|
+
return [endMutation_1(left), endMutation_1(right)];
|
|
632
|
+
};
|
|
572
633
|
}
|
|
573
634
|
|
|
574
|
-
function
|
|
575
|
-
return
|
|
635
|
+
function partition(predicate) {
|
|
636
|
+
return map => {
|
|
637
|
+
return partitionWithIndex_1((_, a) => predicate(a))(map);
|
|
638
|
+
};
|
|
576
639
|
}
|
|
577
640
|
/**
|
|
578
641
|
* Reduce a state over the map entries
|
|
579
642
|
*
|
|
580
|
-
* @tsplus
|
|
643
|
+
* @tsplus pipeable fncts.HashMap foldLeftWithIndex
|
|
581
644
|
*/
|
|
582
645
|
|
|
583
646
|
|
|
584
|
-
function foldLeftWithIndex_1(
|
|
585
|
-
|
|
586
|
-
|
|
647
|
+
function foldLeftWithIndex_1(z, f) {
|
|
648
|
+
return map => {
|
|
649
|
+
const root = map.root;
|
|
650
|
+
if (root._tag === "LeafNode") return tsplus_module_3.isJust(root.value) ? f(root.key, z, root.value.value) : z;
|
|
587
651
|
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
652
|
+
if (root._tag === "EmptyNode") {
|
|
653
|
+
return z;
|
|
654
|
+
}
|
|
591
655
|
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
656
|
+
const toVisit = [root.children];
|
|
657
|
+
let children;
|
|
658
|
+
let acc = z;
|
|
595
659
|
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
660
|
+
while (children = toVisit.pop()) {
|
|
661
|
+
for (let i = 0, len = children.length; i < len;) {
|
|
662
|
+
const child = children[i++];
|
|
599
663
|
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
664
|
+
if (child && !(0, _internal.isEmptyNode)(child)) {
|
|
665
|
+
if (child._tag === "LeafNode") {
|
|
666
|
+
if (tsplus_module_3.isJust(child.value)) {
|
|
667
|
+
// eslint-disable-next-line no-param-reassign
|
|
668
|
+
acc = f(child.key, acc, child.value.value);
|
|
669
|
+
}
|
|
670
|
+
} else {
|
|
671
|
+
toVisit.push(child.children);
|
|
605
672
|
}
|
|
606
|
-
} else {
|
|
607
|
-
toVisit.push(child.children);
|
|
608
673
|
}
|
|
609
674
|
}
|
|
610
675
|
}
|
|
611
|
-
}
|
|
612
676
|
|
|
613
|
-
|
|
677
|
+
return acc;
|
|
678
|
+
};
|
|
614
679
|
}
|
|
615
680
|
/**
|
|
616
681
|
* Reduce a state over the map entries
|
|
617
682
|
*
|
|
618
|
-
* @tsplus
|
|
683
|
+
* @tsplus pipeable fncts.HashMap foldLeft
|
|
619
684
|
*/
|
|
620
685
|
|
|
621
686
|
|
|
622
|
-
function
|
|
623
|
-
return
|
|
687
|
+
function foldLeft(z, f) {
|
|
688
|
+
return map => {
|
|
689
|
+
return foldLeftWithIndex_1(z, (_, b, a) => f(b, a))(map);
|
|
690
|
+
};
|
|
624
691
|
}
|
|
625
|
-
/**
|
|
626
|
-
* @tsplus getter fncts.HashMap traverseWithIndex
|
|
627
|
-
*/
|
|
628
|
-
|
|
629
692
|
|
|
630
|
-
|
|
631
|
-
|
|
693
|
+
function _traverseWithIndex_1(self) {
|
|
694
|
+
return G => f => foldLeftWithIndex_1(G.pure(makeWith_1(self.config)), (k, b, a) => G.zipWith(f(k, a), (map, b) => set_1(k, b)(map))(b))(self);
|
|
695
|
+
}
|
|
632
696
|
/**
|
|
633
697
|
* @tsplus getter fncts.HashMap traverse
|
|
634
698
|
*/
|
|
635
699
|
|
|
700
|
+
|
|
701
|
+
function _traverse(self) {
|
|
702
|
+
return G => f => _traverseWithIndex_1(self)(G)((_, a) => f(a));
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
const traverseWithIndex = G => f => ta => _traverseWithIndex_1(ta)(G)(f);
|
|
706
|
+
|
|
636
707
|
exports.traverseWithIndex = traverseWithIndex;
|
|
637
708
|
|
|
638
|
-
const traverse =
|
|
709
|
+
const traverse = G => f => ta => _traverseWithIndex_1(ta)(G)((_, a) => f(a));
|
|
639
710
|
/**
|
|
640
|
-
* @tsplus
|
|
711
|
+
* @tsplus pipeable fncts.HashMap unsafeGet
|
|
641
712
|
*/
|
|
642
713
|
|
|
643
714
|
|
|
644
715
|
exports.traverse = traverse;
|
|
645
716
|
|
|
646
|
-
function
|
|
647
|
-
return
|
|
717
|
+
function unsafeGet(key) {
|
|
718
|
+
return self => {
|
|
719
|
+
return tsplus_module_7.toUndefined(getHash_1(key, self.config.hash(key))(self));
|
|
720
|
+
};
|
|
648
721
|
}
|
|
649
722
|
/**
|
|
650
723
|
* @tsplus getter fncts.HashMap witherWithIndex
|
|
651
724
|
*/
|
|
652
725
|
|
|
653
726
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
727
|
+
function _witherWithIndex_1(self) {
|
|
728
|
+
return G => f => G.map(compact_1)(_traverseWithIndex_1(self)(G)(f));
|
|
729
|
+
}
|
|
657
730
|
/**
|
|
658
731
|
* @tsplus getter fncts.HashMap wither
|
|
659
732
|
*/
|
|
660
733
|
|
|
734
|
+
|
|
735
|
+
function _wither(self) {
|
|
736
|
+
return G => f => _witherWithIndex_1(self)(G)((_, a) => f(a));
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
const witherWithIndex = G => f => wa => _witherWithIndex_1(wa)(G)(f);
|
|
740
|
+
|
|
661
741
|
exports.witherWithIndex = witherWithIndex;
|
|
662
742
|
|
|
663
|
-
const wither =
|
|
743
|
+
const wither = G => f => wa => _witherWithIndex_1(wa)(G)((_, a) => f(a));
|
|
664
744
|
/**
|
|
665
745
|
* @tsplus getter fncts.HashMap wiltWithIndex
|
|
666
746
|
*/
|
|
@@ -668,49 +748,62 @@ const wither = wa => G => f => witherWithIndex_1(wa)(G)((_, a) => f(a));
|
|
|
668
748
|
|
|
669
749
|
exports.wither = wither;
|
|
670
750
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
751
|
+
function _wiltWithIndex_1(self) {
|
|
752
|
+
return G => f => G.map(separate_1)(_traverseWithIndex_1(self)(G)(f));
|
|
753
|
+
}
|
|
674
754
|
/**
|
|
675
755
|
* @tsplus getter fncts.HashMap wilt
|
|
676
756
|
*/
|
|
677
757
|
|
|
758
|
+
|
|
759
|
+
function _wilt(self) {
|
|
760
|
+
return G => f => _wiltWithIndex_1(self)(G)((_, a) => f(a));
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
const wiltWithIndex = G => f => wa => _wiltWithIndex_1(wa)(G)(f);
|
|
764
|
+
|
|
678
765
|
exports.wiltWithIndex = wiltWithIndex;
|
|
679
766
|
|
|
680
|
-
const wilt =
|
|
767
|
+
const wilt = G => f => wa => _wiltWithIndex_1(wa)(G)((_, a) => f(a));
|
|
681
768
|
/**
|
|
682
|
-
* @tsplus
|
|
769
|
+
* @tsplus pipeable fncts.HashMap unionWith
|
|
683
770
|
*/
|
|
684
771
|
|
|
685
772
|
|
|
686
773
|
exports.wilt = wilt;
|
|
687
774
|
|
|
688
|
-
function
|
|
689
|
-
return
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
775
|
+
function unionWith(that, f) {
|
|
776
|
+
return self => {
|
|
777
|
+
return mutate_1(m => {
|
|
778
|
+
for (const [k, a] of that) {
|
|
779
|
+
modify_1(k, v => tsplus_module_10.match(() => tsplus_module_4.just(a), a0 => tsplus_module_4.just(f(a0, a)))(v))(m);
|
|
780
|
+
}
|
|
781
|
+
})(self);
|
|
782
|
+
};
|
|
694
783
|
}
|
|
695
784
|
/**
|
|
696
|
-
* @tsplus
|
|
785
|
+
* @tsplus pipeable fncts.HashMap union
|
|
697
786
|
*/
|
|
698
787
|
|
|
699
788
|
|
|
700
|
-
function
|
|
701
|
-
return
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
789
|
+
function union(that) {
|
|
790
|
+
return self => {
|
|
791
|
+
return mutate_1(m => {
|
|
792
|
+
for (const [k, a] of that) {
|
|
793
|
+
set_1(k, a)(m);
|
|
794
|
+
}
|
|
795
|
+
})(self);
|
|
796
|
+
};
|
|
706
797
|
}
|
|
707
798
|
/**
|
|
708
|
-
* @tsplus
|
|
799
|
+
* @tsplus pipeable fncts.HashMap pop
|
|
709
800
|
*/
|
|
710
801
|
|
|
711
802
|
|
|
712
|
-
function
|
|
713
|
-
return
|
|
803
|
+
function pop(k) {
|
|
804
|
+
return map => {
|
|
805
|
+
return tsplus_module_7.map(a => [a, remove_1(k)(map)])(get_1(k)(map));
|
|
806
|
+
};
|
|
714
807
|
}
|
|
715
808
|
/*
|
|
716
809
|
* -------------------------------------------------------------------------------------------------
|