@fncts/base 0.0.3 → 0.0.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/_cjs/collection/Iterable/api/traverseConc.cjs +21 -15
- package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
- package/_cjs/collection/Iterable/api.cjs +23 -37
- package/_cjs/collection/Iterable/api.cjs.map +1 -1
- package/_cjs/collection/compat/Array/api.cjs +1 -1
- package/_cjs/collection/compat/Array/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api.cjs +41 -53
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/definition.cjs +49 -39
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/definition.cjs +4 -2
- package/_cjs/collection/immutable/Dictionary/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/api.cjs +35 -108
- package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs +19 -15
- package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/api.cjs +10 -10
- package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api.cjs +153 -248
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs +12 -10
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs +153 -157
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +118 -181
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs +3 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +45 -81
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api.cjs +4 -7
- package/_cjs/collection/immutable/List/api.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/api.cjs +485 -0
- package/_cjs/collection/immutable/RoseTree/api.cjs.map +1 -0
- package/_cjs/collection/immutable/RoseTree/definition.cjs +58 -0
- package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/RoseTree.cjs +32 -0
- package/_cjs/collection/immutable/RoseTree.cjs.map +1 -0
- package/_cjs/collection/immutable/SortedMap/api.cjs +65 -65
- package/_cjs/collection/immutable/SortedMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/api.cjs +70 -15
- package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/definition.cjs +13 -11
- package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
- package/_cjs/collection/mutable/HashMap.cjs +5 -5
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/mutable/HashSet.cjs +4 -4
- package/_cjs/collection/mutable/HashSet.cjs.map +1 -1
- package/_cjs/control/Eval/api.cjs +6 -0
- package/_cjs/control/Eval/api.cjs.map +1 -1
- package/_cjs/control/Eval/definition.cjs +7 -0
- package/_cjs/control/Eval/definition.cjs.map +1 -1
- package/_cjs/control/Eval/instance.cjs +14 -25
- package/_cjs/control/Eval/instance.cjs.map +1 -1
- package/_cjs/control/Z/definition.cjs +9 -3
- package/_cjs/control/Z/definition.cjs.map +1 -1
- package/_cjs/control/Z/instances.cjs +6 -13
- package/_cjs/control/Z/instances.cjs.map +1 -1
- package/_cjs/data/Branded/definition.cjs +29 -0
- package/_cjs/data/Branded/definition.cjs.map +1 -0
- package/_cjs/data/Branded/derivations.cjs +58 -0
- package/_cjs/data/Branded/derivations.cjs.map +1 -0
- package/_cjs/data/Branded.cjs +32 -0
- package/_cjs/data/Branded.cjs.map +1 -0
- package/_cjs/data/Cause/api/fold.cjs +2 -0
- package/_cjs/data/Cause/api/fold.cjs.map +1 -1
- package/_cjs/data/Cause/api.cjs +23 -0
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Const/api.cjs +3 -7
- package/_cjs/data/Const/api.cjs.map +1 -1
- package/_cjs/data/Const/definition.cjs +19 -1
- package/_cjs/data/Const/definition.cjs.map +1 -1
- package/_cjs/data/Const/instances.cjs +9 -20
- package/_cjs/data/Const/instances.cjs.map +1 -1
- package/_cjs/data/DecodeError/definition.cjs +308 -0
- package/_cjs/data/DecodeError/definition.cjs.map +1 -0
- package/_cjs/data/DecodeError.cjs +19 -0
- package/_cjs/data/DecodeError.cjs.map +1 -0
- package/_cjs/data/Decoder/api.cjs +217 -0
- package/_cjs/data/Decoder/api.cjs.map +1 -0
- package/_cjs/data/Decoder/definition.cjs +41 -0
- package/_cjs/data/Decoder/definition.cjs.map +1 -0
- package/_cjs/data/Decoder.cjs +32 -0
- package/_cjs/data/Decoder.cjs.map +1 -0
- package/_cjs/data/Duration/api.cjs +22 -9
- package/_cjs/data/Duration/api.cjs.map +1 -1
- package/_cjs/data/Either/api/alignWith.cjs +2 -0
- package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
- package/_cjs/data/Either/api.cjs +105 -42
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/definition.cjs +39 -10
- package/_cjs/data/Either/definition.cjs.map +1 -1
- package/_cjs/data/Either/destructors.cjs +2 -0
- package/_cjs/data/Either/destructors.cjs.map +1 -1
- package/_cjs/data/Either/instances.cjs +123 -40
- package/_cjs/data/Either/instances.cjs.map +1 -1
- package/_cjs/data/Environment/api.cjs +29 -8
- package/_cjs/data/Environment/api.cjs.map +1 -1
- package/_cjs/data/Identity/api.cjs +35 -6
- package/_cjs/data/Identity/api.cjs.map +1 -1
- package/_cjs/data/Identity/definition.cjs +10 -1
- package/_cjs/data/Identity/definition.cjs.map +1 -1
- package/_cjs/data/Identity/instances.cjs +11 -25
- package/_cjs/data/Identity/instances.cjs.map +1 -1
- package/_cjs/data/Interval.cjs +154 -0
- package/_cjs/data/Interval.cjs.map +1 -0
- package/_cjs/data/Maybe/api.cjs +30 -43
- package/_cjs/data/Maybe/api.cjs.map +1 -1
- package/_cjs/data/Maybe/definition.cjs +45 -18
- package/_cjs/data/Maybe/definition.cjs.map +1 -1
- package/_cjs/data/Maybe/destructors.cjs +1 -0
- package/_cjs/data/Maybe/destructors.cjs.map +1 -1
- package/_cjs/data/Maybe/instances.cjs +62 -42
- package/_cjs/data/Maybe/instances.cjs.map +1 -1
- package/_cjs/data/Newtype.cjs +5 -3
- package/_cjs/data/Newtype.cjs.map +1 -1
- package/_cjs/data/Patch/api.cjs +1 -1
- package/_cjs/data/Patch/api.cjs.map +1 -1
- package/_cjs/data/Refinement/api.cjs +0 -4
- package/_cjs/data/Refinement/api.cjs.map +1 -1
- package/_cjs/data/Struct/definition.cjs +4 -2
- package/_cjs/data/Struct/definition.cjs.map +1 -1
- package/_cjs/data/These/api.cjs +299 -0
- package/_cjs/data/These/api.cjs.map +1 -0
- package/_cjs/data/These/constructors.cjs +24 -4
- package/_cjs/data/These/constructors.cjs.map +1 -1
- package/_cjs/data/These/definition.cjs +16 -0
- package/_cjs/data/These/definition.cjs.map +1 -1
- package/_cjs/data/These/destructors.cjs +70 -0
- package/_cjs/data/These/destructors.cjs.map +1 -1
- package/_cjs/data/These/instances.cjs +54 -0
- package/_cjs/data/These/instances.cjs.map +1 -0
- package/_cjs/data/These.cjs +13 -0
- package/_cjs/data/These.cjs.map +1 -1
- package/_cjs/data/bigint/definition.cjs +6 -0
- package/_cjs/data/bigint/definition.cjs.map +1 -0
- package/_cjs/data/bigint/instances.cjs +24 -0
- package/_cjs/data/bigint/instances.cjs.map +1 -0
- package/_cjs/data/bigint.cjs +32 -0
- package/_cjs/data/bigint.cjs.map +1 -0
- package/_cjs/data/boolean/definition.cjs +6 -0
- package/_cjs/data/boolean/definition.cjs.map +1 -0
- package/_cjs/data/boolean/instances.cjs +24 -0
- package/_cjs/data/boolean/instances.cjs.map +1 -0
- package/_cjs/data/boolean.cjs +32 -0
- package/_cjs/data/boolean.cjs.map +1 -0
- package/_cjs/data/number/instances.cjs +18 -5
- package/_cjs/data/number/instances.cjs.map +1 -1
- package/_cjs/data/object/instances.cjs +24 -0
- package/_cjs/data/object/instances.cjs.map +1 -0
- package/_cjs/data/string/instances.cjs +24 -9
- package/_cjs/data/string/instances.cjs.map +1 -1
- package/_cjs/internal/Stack.cjs +4 -0
- package/_cjs/internal/Stack.cjs.map +1 -1
- package/_cjs/json/EitherJson.cjs +33 -0
- package/_cjs/json/EitherJson.cjs.map +1 -0
- package/_cjs/json/MaybeJson.cjs +31 -0
- package/_cjs/json/MaybeJson.cjs.map +1 -0
- package/_cjs/json/TheseJson.cjs +37 -0
- package/_cjs/json/TheseJson.cjs.map +1 -0
- package/_cjs/optics/Optional/definition.cjs +6 -4
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/compose.cjs +1 -1
- package/_cjs/optics/Traversal/api/compose.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/fromTraversable.cjs +4 -4
- package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
- package/_cjs/optics/Traversal/definition.cjs +17 -12
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- package/_cjs/typeclass/Align.cjs +0 -20
- package/_cjs/typeclass/Align.cjs.map +1 -1
- package/_cjs/typeclass/Alt.cjs +5 -15
- package/_cjs/typeclass/Alt.cjs.map +1 -1
- package/_cjs/typeclass/Alternative.cjs +0 -23
- package/_cjs/typeclass/Alternative.cjs.map +1 -1
- package/_cjs/typeclass/Applicative.cjs +0 -22
- package/_cjs/typeclass/Applicative.cjs.map +1 -1
- package/_cjs/typeclass/ApplicativeExcept.cjs +40 -34
- package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
- package/_cjs/typeclass/Apply.cjs +93 -49
- package/_cjs/typeclass/Apply.cjs.map +1 -1
- package/_cjs/typeclass/Chain.cjs +40 -17
- package/_cjs/typeclass/Chain.cjs.map +1 -1
- package/_cjs/typeclass/Closure.cjs +1 -4
- package/_cjs/typeclass/Closure.cjs.map +1 -1
- package/_cjs/typeclass/Eq/definition.cjs +18 -0
- package/_cjs/typeclass/Eq/definition.cjs.map +1 -0
- package/_cjs/typeclass/Eq/derivations.cjs +59 -0
- package/_cjs/typeclass/Eq/derivations.cjs.map +1 -0
- package/_cjs/typeclass/Eq.cjs +11 -13
- package/_cjs/typeclass/Eq.cjs.map +1 -1
- package/_cjs/typeclass/Fail.cjs +6 -12
- package/_cjs/typeclass/Fail.cjs.map +1 -1
- package/_cjs/typeclass/Filterable.cjs +31 -18
- package/_cjs/typeclass/Filterable.cjs.map +1 -1
- package/_cjs/typeclass/FilterableWithIndex.cjs +0 -26
- package/_cjs/typeclass/FilterableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Foldable.cjs +33 -19
- package/_cjs/typeclass/Foldable.cjs.map +1 -1
- package/_cjs/typeclass/FoldableWithIndex.cjs +33 -21
- package/_cjs/typeclass/FoldableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Functor.cjs +19 -16
- package/_cjs/typeclass/Functor.cjs.map +1 -1
- package/_cjs/typeclass/FunctorWithIndex.cjs +0 -21
- package/_cjs/typeclass/FunctorWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Guard/api.cjs +40 -0
- package/_cjs/typeclass/Guard/api.cjs.map +1 -0
- package/_cjs/typeclass/Guard/definition.cjs +40 -0
- package/_cjs/typeclass/Guard/definition.cjs.map +1 -0
- package/_cjs/typeclass/Guard/derivations.cjs +85 -0
- package/_cjs/typeclass/Guard/derivations.cjs.map +1 -0
- package/_cjs/typeclass/Guard.cjs +32 -0
- package/_cjs/typeclass/Guard.cjs.map +1 -0
- package/_cjs/typeclass/HashEq.cjs +3 -3
- package/_cjs/typeclass/HashEq.cjs.map +1 -1
- package/_cjs/typeclass/Monad.cjs +0 -22
- package/_cjs/typeclass/Monad.cjs.map +1 -1
- package/_cjs/typeclass/MonadExcept.cjs +12 -19
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
- package/_cjs/typeclass/Monoid.cjs +56 -2
- package/_cjs/typeclass/Monoid.cjs.map +1 -1
- package/_cjs/typeclass/Nil.cjs +10 -0
- package/_cjs/typeclass/Nil.cjs.map +1 -1
- package/_cjs/typeclass/Ord/api/contramap.cjs +2 -4
- package/_cjs/typeclass/Ord/api/contramap.cjs.map +1 -1
- package/_cjs/typeclass/Ord/api/max.cjs +1 -1
- package/_cjs/typeclass/Ord/api/max.cjs.map +1 -1
- package/_cjs/typeclass/Ord/api/min.cjs +1 -1
- package/_cjs/typeclass/Ord/api/min.cjs.map +1 -1
- package/_cjs/typeclass/Ord/definition.cjs +2 -3
- package/_cjs/typeclass/Ord/definition.cjs.map +1 -1
- package/_cjs/typeclass/Ord/instances.cjs +7 -7
- package/_cjs/typeclass/Ord/instances.cjs.map +1 -1
- package/_cjs/typeclass/Pointed.cjs +6 -11
- package/_cjs/typeclass/Pointed.cjs.map +1 -1
- package/_cjs/typeclass/Semialign.cjs +77 -94
- package/_cjs/typeclass/Semialign.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/api.cjs +2 -2
- package/_cjs/typeclass/Semigroup/api.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/definition.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/derivations.cjs +63 -0
- package/_cjs/typeclass/Semigroup/derivations.cjs.map +1 -0
- package/_cjs/typeclass/Semimonoidal.cjs +9 -13
- package/_cjs/typeclass/Semimonoidal.cjs.map +1 -1
- package/_cjs/typeclass/Showable/show.cjs +11 -11
- package/_cjs/typeclass/Showable/show.cjs.map +1 -1
- package/_cjs/typeclass/Traversable.cjs +26 -34
- package/_cjs/typeclass/Traversable.cjs.map +1 -1
- package/_cjs/typeclass/TraversableWithIndex.cjs +7 -38
- package/_cjs/typeclass/TraversableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Witherable.cjs +41 -42
- package/_cjs/typeclass/Witherable.cjs.map +1 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs +41 -50
- package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass.cjs +13 -0
- package/_cjs/typeclass.cjs.map +1 -1
- package/_cjs/util/predicates.cjs +5 -0
- package/_cjs/util/predicates.cjs.map +1 -1
- package/_mjs/collection/Iterable/api/traverseConc.mjs +20 -15
- package/_mjs/collection/Iterable/api/traverseConc.mjs.map +1 -1
- package/_mjs/collection/Iterable/api.mjs +21 -31
- package/_mjs/collection/Iterable/api.mjs.map +1 -1
- package/_mjs/collection/compat/Array/api.mjs +1 -1
- package/_mjs/collection/compat/Array/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api.mjs +35 -36
- package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs +48 -39
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary/definition.mjs +3 -2
- package/_mjs/collection/immutable/Dictionary/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/api.mjs +26 -66
- package/_mjs/collection/immutable/HashMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/definition.mjs +18 -15
- package/_mjs/collection/immutable/HashMap/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/api.mjs +5 -5
- package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +135 -177
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs +11 -10
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs +151 -138
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +108 -142
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs +2 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +46 -67
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api.mjs +4 -5
- package/_mjs/collection/immutable/List/api.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/api.mjs +447 -0
- package/_mjs/collection/immutable/RoseTree/api.mjs.map +1 -0
- package/_mjs/collection/immutable/RoseTree/definition.mjs +35 -0
- package/_mjs/collection/immutable/RoseTree/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/RoseTree.mjs +4 -0
- package/_mjs/collection/immutable/RoseTree.mjs.map +1 -0
- package/_mjs/collection/immutable/SortedMap/api.mjs +65 -65
- package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/api.mjs +59 -15
- package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/definition.mjs +12 -11
- package/_mjs/collection/immutable/Vector/definition.mjs.map +1 -1
- package/_mjs/collection/mutable/HashMap.mjs +5 -5
- package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/mutable/HashSet.mjs +4 -4
- package/_mjs/collection/mutable/HashSet.mjs.map +1 -1
- package/_mjs/control/Eval/api.mjs +5 -2
- package/_mjs/control/Eval/api.mjs.map +1 -1
- package/_mjs/control/Eval/definition.mjs +1 -0
- package/_mjs/control/Eval/definition.mjs.map +1 -1
- package/_mjs/control/Eval/instance.mjs +15 -18
- package/_mjs/control/Eval/instance.mjs.map +1 -1
- package/_mjs/control/Z/definition.mjs +2 -0
- package/_mjs/control/Z/definition.mjs.map +1 -1
- package/_mjs/control/Z/instances.mjs +7 -8
- package/_mjs/control/Z/instances.mjs.map +1 -1
- package/_mjs/data/Branded/definition.mjs +18 -0
- package/_mjs/data/Branded/definition.mjs.map +1 -0
- package/_mjs/data/Branded/derivations.mjs +39 -0
- package/_mjs/data/Branded/derivations.mjs.map +1 -0
- package/_mjs/data/Branded.mjs +4 -0
- package/_mjs/data/Branded.mjs.map +1 -0
- package/_mjs/data/Cause/api/fold.mjs +2 -0
- package/_mjs/data/Cause/api/fold.mjs.map +1 -1
- package/_mjs/data/Cause/api.mjs +20 -0
- package/_mjs/data/Cause/api.mjs.map +1 -1
- package/_mjs/data/Const/api.mjs +3 -3
- package/_mjs/data/Const/api.mjs.map +1 -1
- package/_mjs/data/Const/definition.mjs +13 -1
- package/_mjs/data/Const/definition.mjs.map +1 -1
- package/_mjs/data/Const/instances.mjs +7 -15
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/DecodeError/definition.mjs +226 -0
- package/_mjs/data/DecodeError/definition.mjs.map +1 -0
- package/_mjs/data/DecodeError.mjs +3 -0
- package/_mjs/data/DecodeError.mjs.map +1 -0
- package/_mjs/data/Decoder/api.mjs +179 -0
- package/_mjs/data/Decoder/api.mjs.map +1 -0
- package/_mjs/data/Decoder/definition.mjs +24 -0
- package/_mjs/data/Decoder/definition.mjs.map +1 -0
- package/_mjs/data/Decoder.mjs +4 -0
- package/_mjs/data/Decoder.mjs.map +1 -0
- package/_mjs/data/Duration/api.mjs +17 -8
- package/_mjs/data/Duration/api.mjs.map +1 -1
- package/_mjs/data/Either/api/alignWith.mjs +2 -0
- package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
- package/_mjs/data/Either/api.mjs +91 -21
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/definition.mjs +25 -5
- package/_mjs/data/Either/definition.mjs.map +1 -1
- package/_mjs/data/Either/destructors.mjs +2 -0
- package/_mjs/data/Either/destructors.mjs.map +1 -1
- package/_mjs/data/Either/instances.mjs +109 -39
- package/_mjs/data/Either/instances.mjs.map +1 -1
- package/_mjs/data/Environment/api.mjs +23 -7
- package/_mjs/data/Environment/api.mjs.map +1 -1
- package/_mjs/data/Identity/api.mjs +24 -5
- package/_mjs/data/Identity/api.mjs.map +1 -1
- package/_mjs/data/Identity/definition.mjs +3 -1
- package/_mjs/data/Identity/definition.mjs.map +1 -1
- package/_mjs/data/Identity/instances.mjs +12 -18
- package/_mjs/data/Identity/instances.mjs.map +1 -1
- package/_mjs/data/Interval.mjs +114 -0
- package/_mjs/data/Interval.mjs.map +1 -0
- package/_mjs/data/Maybe/api.mjs +30 -35
- package/_mjs/data/Maybe/api.mjs.map +1 -1
- package/_mjs/data/Maybe/definition.mjs +37 -14
- package/_mjs/data/Maybe/definition.mjs.map +1 -1
- package/_mjs/data/Maybe/destructors.mjs +1 -0
- package/_mjs/data/Maybe/destructors.mjs.map +1 -1
- package/_mjs/data/Maybe/instances.mjs +56 -39
- package/_mjs/data/Maybe/instances.mjs.map +1 -1
- package/_mjs/data/Newtype.mjs +4 -3
- package/_mjs/data/Newtype.mjs.map +1 -1
- package/_mjs/data/Patch/api.mjs +1 -1
- package/_mjs/data/Patch/api.mjs.map +1 -1
- package/_mjs/data/Refinement/api.mjs +0 -4
- package/_mjs/data/Refinement/api.mjs.map +1 -1
- package/_mjs/data/Struct/definition.mjs +3 -2
- package/_mjs/data/Struct/definition.mjs.map +1 -1
- package/_mjs/data/These/api.mjs +262 -0
- package/_mjs/data/These/api.mjs.map +1 -0
- package/_mjs/data/These/constructors.mjs +14 -2
- package/_mjs/data/These/constructors.mjs.map +1 -1
- package/_mjs/data/These/definition.mjs +8 -0
- package/_mjs/data/These/definition.mjs.map +1 -1
- package/_mjs/data/These/destructors.mjs +53 -0
- package/_mjs/data/These/destructors.mjs.map +1 -1
- package/_mjs/data/These/instances.mjs +36 -0
- package/_mjs/data/These/instances.mjs.map +1 -0
- package/_mjs/data/These.mjs +1 -0
- package/_mjs/data/These.mjs.map +1 -1
- package/_mjs/data/bigint/definition.mjs +2 -0
- package/_mjs/data/bigint/definition.mjs.map +1 -0
- package/_mjs/data/bigint/instances.mjs +10 -0
- package/_mjs/data/bigint/instances.mjs.map +1 -0
- package/_mjs/data/bigint.mjs +4 -0
- package/_mjs/data/bigint.mjs.map +1 -0
- package/_mjs/data/boolean/definition.mjs +2 -0
- package/_mjs/data/boolean/definition.mjs.map +1 -0
- package/_mjs/data/boolean/instances.mjs +10 -0
- package/_mjs/data/boolean/instances.mjs.map +1 -0
- package/_mjs/data/boolean.mjs +4 -0
- package/_mjs/data/boolean.mjs.map +1 -0
- package/_mjs/data/number/instances.mjs +14 -4
- package/_mjs/data/number/instances.mjs.map +1 -1
- package/_mjs/data/object/instances.mjs +10 -0
- package/_mjs/data/object/instances.mjs.map +1 -0
- package/_mjs/data/string/instances.mjs +20 -8
- package/_mjs/data/string/instances.mjs.map +1 -1
- package/_mjs/internal/Stack.mjs +4 -0
- package/_mjs/internal/Stack.mjs.map +1 -1
- package/_mjs/json/EitherJson.mjs +18 -0
- package/_mjs/json/EitherJson.mjs.map +1 -0
- package/_mjs/json/MaybeJson.mjs +16 -0
- package/_mjs/json/MaybeJson.mjs.map +1 -0
- package/_mjs/json/TheseJson.mjs +22 -0
- package/_mjs/json/TheseJson.mjs.map +1 -0
- package/_mjs/optics/Optional/definition.mjs +5 -4
- package/_mjs/optics/Optional/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +5 -4
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
- package/_mjs/optics/Traversal/definition.mjs +14 -12
- package/_mjs/optics/Traversal/definition.mjs.map +1 -1
- package/_mjs/typeclass/Align.mjs +0 -11
- package/_mjs/typeclass/Align.mjs.map +1 -1
- package/_mjs/typeclass/Alt.mjs +4 -7
- package/_mjs/typeclass/Alt.mjs.map +1 -1
- package/_mjs/typeclass/Alternative.mjs +0 -13
- package/_mjs/typeclass/Alternative.mjs.map +1 -1
- package/_mjs/typeclass/Applicative.mjs +0 -12
- package/_mjs/typeclass/Applicative.mjs.map +1 -1
- package/_mjs/typeclass/ApplicativeExcept.mjs +32 -24
- package/_mjs/typeclass/ApplicativeExcept.mjs.map +1 -1
- package/_mjs/typeclass/Apply.mjs +85 -42
- package/_mjs/typeclass/Apply.mjs.map +1 -1
- package/_mjs/typeclass/Chain.mjs +33 -12
- package/_mjs/typeclass/Chain.mjs.map +1 -1
- package/_mjs/typeclass/Closure.mjs +1 -4
- package/_mjs/typeclass/Closure.mjs.map +1 -1
- package/_mjs/typeclass/Eq/definition.mjs +9 -0
- package/_mjs/typeclass/Eq/definition.mjs.map +1 -0
- package/_mjs/typeclass/Eq/derivations.mjs +46 -0
- package/_mjs/typeclass/Eq/derivations.mjs.map +1 -0
- package/_mjs/typeclass/Eq.mjs +1 -11
- package/_mjs/typeclass/Eq.mjs.map +1 -1
- package/_mjs/typeclass/Fail.mjs +5 -7
- package/_mjs/typeclass/Fail.mjs.map +1 -1
- package/_mjs/typeclass/Filterable.mjs +27 -13
- package/_mjs/typeclass/Filterable.mjs.map +1 -1
- package/_mjs/typeclass/FilterableWithIndex.mjs +0 -16
- package/_mjs/typeclass/FilterableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Foldable.mjs +29 -12
- package/_mjs/typeclass/Foldable.mjs.map +1 -1
- package/_mjs/typeclass/FoldableWithIndex.mjs +29 -13
- package/_mjs/typeclass/FoldableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Functor.mjs +16 -9
- package/_mjs/typeclass/Functor.mjs.map +1 -1
- package/_mjs/typeclass/FunctorWithIndex.mjs +0 -12
- package/_mjs/typeclass/FunctorWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Guard/api.mjs +23 -0
- package/_mjs/typeclass/Guard/api.mjs.map +1 -0
- package/_mjs/typeclass/Guard/definition.mjs +23 -0
- package/_mjs/typeclass/Guard/definition.mjs.map +1 -0
- package/_mjs/typeclass/Guard/derivations.mjs +67 -0
- package/_mjs/typeclass/Guard/derivations.mjs.map +1 -0
- package/_mjs/typeclass/Guard.mjs +4 -0
- package/_mjs/typeclass/Guard.mjs.map +1 -0
- package/_mjs/typeclass/HashEq.mjs +3 -3
- package/_mjs/typeclass/HashEq.mjs.map +1 -1
- package/_mjs/typeclass/Monad.mjs +0 -12
- package/_mjs/typeclass/Monad.mjs.map +1 -1
- package/_mjs/typeclass/MonadExcept.mjs +9 -13
- package/_mjs/typeclass/MonadExcept.mjs.map +1 -1
- package/_mjs/typeclass/Monoid.mjs +50 -1
- package/_mjs/typeclass/Monoid.mjs.map +1 -1
- package/_mjs/typeclass/Nil.mjs +8 -1
- package/_mjs/typeclass/Nil.mjs.map +1 -1
- package/_mjs/typeclass/Ord/api/contramap.mjs +2 -4
- package/_mjs/typeclass/Ord/api/contramap.mjs.map +1 -1
- package/_mjs/typeclass/Ord/api/max.mjs +1 -1
- package/_mjs/typeclass/Ord/api/max.mjs.map +1 -1
- package/_mjs/typeclass/Ord/api/min.mjs +1 -1
- package/_mjs/typeclass/Ord/api/min.mjs.map +1 -1
- package/_mjs/typeclass/Ord/definition.mjs +2 -3
- package/_mjs/typeclass/Ord/definition.mjs.map +1 -1
- package/_mjs/typeclass/Ord/instances.mjs +7 -7
- package/_mjs/typeclass/Ord/instances.mjs.map +1 -1
- package/_mjs/typeclass/Pointed.mjs +5 -4
- package/_mjs/typeclass/Pointed.mjs.map +1 -1
- package/_mjs/typeclass/Semialign.mjs +67 -74
- package/_mjs/typeclass/Semialign.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/api.mjs +2 -2
- package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/definition.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/derivations.mjs +50 -0
- package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -0
- package/_mjs/typeclass/Semigroup.mjs +1 -1
- package/_mjs/typeclass/Semimonoidal.mjs +8 -6
- package/_mjs/typeclass/Semimonoidal.mjs.map +1 -1
- package/_mjs/typeclass/Showable/show.mjs +11 -11
- package/_mjs/typeclass/Showable/show.mjs.map +1 -1
- package/_mjs/typeclass/Traversable.mjs +25 -24
- package/_mjs/typeclass/Traversable.mjs.map +1 -1
- package/_mjs/typeclass/TraversableWithIndex.mjs +6 -24
- package/_mjs/typeclass/TraversableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Witherable.mjs +39 -32
- package/_mjs/typeclass/Witherable.mjs.map +1 -1
- package/_mjs/typeclass/WitherableWithIndex.mjs +39 -37
- package/_mjs/typeclass/WitherableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass.mjs +1 -0
- package/_mjs/typeclass.mjs.map +1 -1
- package/_mjs/util/predicates.mjs +3 -0
- package/_mjs/util/predicates.mjs.map +1 -1
- package/_src/collection/Iterable/api/traverseConc.ts +21 -29
- package/_src/collection/Iterable/api.ts +20 -34
- package/_src/collection/compat/Array/api.ts +1 -1
- package/_src/collection/immutable/Conc/api.ts +26 -46
- package/_src/collection/immutable/Conc/definition.ts +19 -8
- package/_src/collection/immutable/Dictionary/definition.ts +1 -1
- package/_src/collection/immutable/HashMap/api.ts +24 -81
- package/_src/collection/immutable/HashMap/definition.ts +7 -9
- package/_src/collection/immutable/HashMap/internal.ts +1 -1
- package/_src/collection/immutable/HashSet/api.ts +4 -4
- package/_src/collection/immutable/ImmutableArray/api.ts +180 -219
- package/_src/collection/immutable/ImmutableArray/definition.ts +6 -8
- package/_src/collection/immutable/ImmutableArray/instances.ts +156 -134
- package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +87 -158
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +4 -8
- package/_src/collection/immutable/ImmutableNonEmptyArray/instances.ts +39 -49
- package/_src/collection/immutable/List/api.ts +2 -6
- package/_src/collection/immutable/RoseTree/api.ts +278 -0
- package/_src/collection/immutable/RoseTree/definition.ts +29 -0
- package/_src/collection/immutable/RoseTree.ts +4 -0
- package/_src/collection/immutable/SortedMap/api.ts +56 -53
- package/_src/collection/immutable/Vector/api.ts +57 -17
- package/_src/collection/immutable/Vector/definition.ts +10 -0
- package/_src/collection/mutable/HashMap.ts +5 -5
- package/_src/collection/mutable/HashSet.ts +4 -4
- package/_src/control/Eval/api.ts +5 -1
- package/_src/control/Eval/definition.ts +5 -8
- package/_src/control/Eval/instance.ts +16 -15
- package/_src/control/Z/definition.ts +26 -19
- package/_src/control/Z/instances.ts +9 -8
- package/_src/data/Branded/definition.ts +47 -0
- package/_src/data/Branded/derivations.ts +57 -0
- package/_src/data/Branded.ts +4 -0
- package/_src/data/Cause/api/fold.ts +1 -0
- package/_src/data/Cause/api.ts +18 -0
- package/_src/data/Const/api.ts +3 -3
- package/_src/data/Const/definition.ts +22 -5
- package/_src/data/Const/instances.ts +12 -21
- package/_src/data/DecodeError/definition.ts +227 -0
- package/_src/data/DecodeError.ts +3 -0
- package/_src/data/Decoder/api.ts +198 -0
- package/_src/data/Decoder/definition.ts +25 -0
- package/_src/data/Decoder.ts +4 -0
- package/_src/data/Duration/api.ts +21 -14
- package/_src/data/Either/api/alignWith.ts +2 -0
- package/_src/data/Either/api.ts +85 -30
- package/_src/data/Either/definition.ts +41 -19
- package/_src/data/Either/destructors.ts +1 -0
- package/_src/data/Either/instances.ts +102 -51
- package/_src/data/Environment/api.ts +19 -4
- package/_src/data/Identity/api.ts +19 -4
- package/_src/data/Identity/definition.ts +7 -3
- package/_src/data/Identity/instances.ts +15 -8
- package/_src/data/Interval.ts +103 -0
- package/_src/data/Maybe/api.ts +21 -31
- package/_src/data/Maybe/definition.ts +31 -19
- package/_src/data/Maybe/destructors.ts +1 -0
- package/_src/data/Maybe/instances.ts +61 -34
- package/_src/data/Newtype.ts +11 -32
- package/_src/data/Patch/api.ts +1 -1
- package/_src/data/Refinement/api.ts +4 -2
- package/_src/data/Struct/definition.ts +1 -1
- package/_src/data/These/api.ts +184 -0
- package/_src/data/These/constructors.ts +10 -0
- package/_src/data/These/definition.ts +7 -0
- package/_src/data/These/destructors.ts +45 -0
- package/_src/data/These/instances.ts +43 -0
- package/_src/data/These.ts +1 -0
- package/_src/data/bigint/definition.ts +13 -0
- package/_src/data/bigint/instances.ts +8 -0
- package/_src/data/bigint.ts +4 -0
- package/_src/data/boolean/definition.ts +13 -0
- package/_src/data/boolean/instances.ts +8 -0
- package/_src/data/boolean.ts +4 -0
- package/_src/data/number/instances.ts +13 -3
- package/_src/data/object/instances.ts +7 -0
- package/_src/data/string/instances.ts +17 -5
- package/_src/internal/Stack.ts +4 -0
- package/_src/json/EitherJson.ts +28 -0
- package/_src/json/MaybeJson.ts +27 -0
- package/_src/json/TheseJson.ts +31 -0
- package/_src/optics/Optional/definition.ts +2 -2
- package/_src/optics/Traversal/api/compose.ts +1 -1
- package/_src/optics/Traversal/api/fromTraversable.ts +15 -41
- package/_src/optics/Traversal/definition.ts +21 -23
- package/_src/typeclass/Align.ts +4 -18
- package/_src/typeclass/Alt.ts +59 -90
- package/_src/typeclass/Alternative.ts +4 -20
- package/_src/typeclass/Applicative.ts +3 -23
- package/_src/typeclass/ApplicativeExcept.ts +94 -193
- package/_src/typeclass/Apply.ts +319 -509
- package/_src/typeclass/Chain.ts +127 -199
- package/_src/typeclass/Closure.ts +4 -20
- package/_src/typeclass/Eq/definition.ts +20 -0
- package/_src/typeclass/Eq/derivations.ts +61 -0
- package/_src/typeclass/Eq.ts +2 -36
- package/_src/typeclass/Fail.ts +28 -27
- package/_src/typeclass/Filterable.ts +70 -117
- package/_src/typeclass/FilterableWithIndex.ts +27 -131
- package/_src/typeclass/Foldable.ts +35 -52
- package/_src/typeclass/FoldableWithIndex.ts +40 -75
- package/_src/typeclass/Functor.ts +21 -59
- package/_src/typeclass/FunctorWithIndex.ts +6 -34
- package/_src/typeclass/Guard/api.ts +32 -0
- package/_src/typeclass/Guard/definition.ts +23 -0
- package/_src/typeclass/Guard/derivations.ts +80 -0
- package/_src/typeclass/Guard.ts +5 -0
- package/_src/typeclass/HashEq.ts +3 -4
- package/_src/typeclass/Monad.ts +3 -18
- package/_src/typeclass/MonadExcept.ts +9 -32
- package/_src/typeclass/Monoid.ts +60 -2
- package/_src/typeclass/Nil.ts +26 -17
- package/_src/typeclass/Ord/api/contramap.ts +2 -4
- package/_src/typeclass/Ord/api/max.ts +1 -1
- package/_src/typeclass/Ord/api/min.ts +1 -1
- package/_src/typeclass/Ord/definition.ts +3 -19
- package/_src/typeclass/Ord/instances.ts +6 -6
- package/_src/typeclass/Pointed.ts +29 -25
- package/_src/typeclass/Semialign.ts +308 -444
- package/_src/typeclass/Semigroup/api.ts +2 -2
- package/_src/typeclass/Semigroup/definition.ts +2 -6
- package/_src/typeclass/Semigroup/derivations.ts +64 -0
- package/_src/typeclass/Semigroup.ts +1 -1
- package/_src/typeclass/Semimonoidal.ts +55 -84
- package/_src/typeclass/Showable/show.ts +6 -8
- package/_src/typeclass/Traversable.ts +67 -157
- package/_src/typeclass/TraversableWithIndex.ts +37 -127
- package/_src/typeclass/Witherable.ts +120 -279
- package/_src/typeclass/WitherableWithIndex.ts +129 -337
- package/_src/typeclass.ts +2 -0
- package/_src/util/predicates.ts +4 -0
- package/collection/Iterable/api/traverseConc.d.ts +6 -4
- package/collection/Iterable/api.d.ts +5 -13
- package/collection/immutable/Conc/api.d.ts +15 -23
- package/collection/immutable/Conc/definition.d.ts +10 -7
- package/collection/immutable/Dictionary/definition.d.ts +1 -1
- package/collection/immutable/HashMap/api.d.ts +15 -27
- package/collection/immutable/HashMap/definition.d.ts +6 -9
- package/collection/immutable/HashMap/internal.d.ts +1 -1
- package/collection/immutable/ImmutableArray/api.d.ts +42 -94
- package/collection/immutable/ImmutableArray/definition.d.ts +6 -8
- package/collection/immutable/ImmutableArray/instances.d.ts +86 -17
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +26 -47
- package/collection/immutable/ImmutableNonEmptyArray/definition.d.ts +4 -8
- package/collection/immutable/ImmutableNonEmptyArray/instances.d.ts +1 -1
- package/collection/immutable/List/api.d.ts +1 -2
- package/collection/immutable/RoseTree/api.d.ts +63 -0
- package/collection/immutable/RoseTree/definition.d.ts +23 -0
- package/collection/immutable/RoseTree.d.ts +2 -0
- package/collection/immutable/SortedMap/api.d.ts +2 -1
- package/collection/immutable/Vector/api.d.ts +31 -8
- package/collection/immutable/Vector/definition.d.ts +10 -0
- package/control/Eval/api.d.ts +1 -0
- package/control/Eval/definition.d.ts +5 -8
- package/control/Eval/instance.d.ts +4 -1
- package/control/Z/definition.d.ts +23 -18
- package/control/Z/instances.d.ts +4 -3
- package/data/Branded/definition.d.ts +36 -0
- package/data/Branded/derivations.d.ts +24 -0
- package/data/Branded.d.ts +2 -0
- package/data/Cause/api.d.ts +7 -1
- package/data/Const/api.d.ts +1 -1
- package/data/Const/definition.d.ts +23 -7
- package/data/Const/instances.d.ts +4 -12
- package/data/DecodeError/definition.d.ts +141 -0
- package/data/DecodeError.d.ts +1 -0
- package/data/Decoder/api.d.ts +65 -0
- package/data/Decoder/definition.d.ts +24 -0
- package/data/Decoder.d.ts +2 -0
- package/data/Duration/api.d.ts +12 -8
- package/data/Either/api.d.ts +29 -17
- package/data/Either/definition.d.ts +31 -14
- package/data/Either/instances.d.ts +26 -11
- package/data/Environment/api.d.ts +5 -0
- package/data/Identity/api.d.ts +11 -0
- package/data/Identity/definition.d.ts +7 -2
- package/data/Identity/instances.d.ts +5 -9
- package/data/Interval.d.ts +71 -0
- package/data/Maybe/api.d.ts +3 -17
- package/data/Maybe/definition.d.ts +20 -14
- package/data/Maybe/instances.d.ts +14 -8
- package/data/Newtype.d.ts +8 -9
- package/data/Refinement/api.d.ts +2 -0
- package/data/Struct/definition.d.ts +1 -1
- package/data/These/api.d.ts +73 -0
- package/data/These/constructors.d.ts +7 -1
- package/data/These/definition.d.ts +5 -0
- package/data/These/destructors.d.ts +27 -1
- package/data/These/instances.d.ts +13 -0
- package/data/These.d.ts +1 -0
- package/data/bigint/definition.d.ts +13 -0
- package/data/bigint/instances.d.ts +7 -0
- package/data/bigint.d.ts +2 -0
- package/data/boolean/definition.d.ts +13 -0
- package/data/boolean/instances.d.ts +7 -0
- package/data/boolean.d.ts +2 -0
- package/data/number/instances.d.ts +8 -0
- package/data/object/instances.d.ts +7 -0
- package/data/string/instances.d.ts +10 -0
- package/internal/Stack.d.ts +1 -0
- package/json/EitherJson.d.ts +24 -0
- package/json/MaybeJson.d.ts +23 -0
- package/json/TheseJson.d.ts +26 -0
- package/optics/Traversal/api/fromTraversable.d.ts +1 -1
- package/optics/Traversal/definition.d.ts +4 -9
- package/package.json +2 -2
- package/typeclass/Align.d.ts +3 -10
- package/typeclass/Alt.d.ts +6 -19
- package/typeclass/Alternative.d.ts +4 -12
- package/typeclass/Applicative.d.ts +3 -12
- package/typeclass/ApplicativeExcept.d.ts +14 -39
- package/typeclass/Apply.d.ts +41 -72
- package/typeclass/Chain.d.ts +18 -28
- package/typeclass/Closure.d.ts +2 -12
- package/typeclass/Eq/definition.d.ts +17 -0
- package/typeclass/Eq/derivations.d.ts +24 -0
- package/typeclass/Eq.d.ts +2 -27
- package/typeclass/Fail.d.ts +4 -10
- package/typeclass/Filterable.d.ts +30 -51
- package/typeclass/FilterableWithIndex.d.ts +10 -53
- package/typeclass/Foldable.d.ts +19 -31
- package/typeclass/FoldableWithIndex.d.ts +20 -33
- package/typeclass/Functor.d.ts +11 -22
- package/typeclass/FunctorWithIndex.d.ts +3 -19
- package/typeclass/Guard/api.d.ts +20 -0
- package/typeclass/Guard/definition.d.ts +22 -0
- package/typeclass/Guard/derivations.d.ts +36 -0
- package/typeclass/Guard.d.ts +2 -0
- package/typeclass/HashEq.d.ts +1 -2
- package/typeclass/Monad.d.ts +3 -11
- package/typeclass/MonadExcept.d.ts +6 -17
- package/typeclass/Monoid.d.ts +24 -2
- package/typeclass/Nil.d.ts +7 -8
- package/typeclass/Ord/definition.d.ts +2 -14
- package/typeclass/Pointed.d.ts +4 -10
- package/typeclass/Semialign.d.ts +51 -63
- package/typeclass/Semigroup/definition.d.ts +3 -5
- package/typeclass/Semigroup/derivations.d.ts +25 -0
- package/typeclass/Semimonoidal.d.ts +5 -14
- package/typeclass/Traversable.d.ts +17 -57
- package/typeclass/TraversableWithIndex.d.ts +9 -52
- package/typeclass/Witherable.d.ts +22 -82
- package/typeclass/WitherableWithIndex.d.ts +26 -98
- package/typeclass.d.ts +1 -0
- package/util/predicates.d.ts +1 -0
@@ -11,15 +11,18 @@ import * as tsplus_module_10 from "@fncts/base/collection/immutable/ImmutableNon
|
|
11
11
|
import * as tsplus_module_11 from "@fncts/base/collection/immutable/Dictionary/api";
|
12
12
|
import * as tsplus_module_12 from "@fncts/base/collection/immutable/Dictionary/definition";
|
13
13
|
import * as tsplus_module_13 from "@fncts/base/typeclass/Ord/instances";
|
14
|
-
import * as tsplus_module_14 from "@fncts/base/
|
14
|
+
import * as tsplus_module_14 from "@fncts/base/typeclass/Apply";
|
15
15
|
import * as tsplus_module_15 from "@fncts/base/data/Either/destructors";
|
16
|
+
import * as tsplus_module_16 from "@fncts/base/typeclass/Functor";
|
16
17
|
export const alignWith_ = alignWith_1;
|
17
18
|
export const append_ = append_1;
|
19
|
+
export const crossWith_ = crossWith_1;
|
18
20
|
export const flatMapWithIndex_ = flatMapWithIndex_1;
|
19
21
|
export const flatMap_ = flatMap_1;
|
20
22
|
export const flatten = flatten_1;
|
21
23
|
export const chop_ = chop_1;
|
22
24
|
export const concat_ = concat_1;
|
25
|
+
export const elem_ = elem_1;
|
23
26
|
export const everyWithIndex_ = everyWithIndex_1;
|
24
27
|
export const filter_ = filter_1;
|
25
28
|
export const filterWithIndex_ = filterWithIndex_1;
|
@@ -30,8 +33,8 @@ export const findLastMapWithIndex_ = findLastMapWithIndex_1;
|
|
30
33
|
export const foldLeftWithIndex_ = foldLeftWithIndex_1;
|
31
34
|
export const foldLeft_ = foldLeft_1;
|
32
35
|
export const foldLeftWithIndexWhile_ = foldLeftWithIndexWhile_1;
|
33
|
-
export const
|
34
|
-
export const
|
36
|
+
export const fold = fold_1;
|
37
|
+
export const foldMapWithIndex_ = foldMapWithIndex_1;
|
35
38
|
export const foldRightWithIndex_ = foldRightWithIndex_1;
|
36
39
|
export const foldRightWithIndexWhile_ = foldRightWithIndexWhile_1;
|
37
40
|
export const forEach_ = forEach_1;
|
@@ -60,6 +63,7 @@ export const unsafeDeleteAt_ = unsafeDeleteAt_1;
|
|
60
63
|
export const unsafeInsertAt_ = unsafeInsertAt_1;
|
61
64
|
export const unsafeModifyAt_ = unsafeModifyAt_1;
|
62
65
|
export const unsafeUpdateAt_ = unsafeUpdateAt_1;
|
66
|
+
export const witherWithIndex_ = witherWithIndex_1;
|
63
67
|
export const zipWith_ = zipWith_1;
|
64
68
|
import { identity, tuple } from "@fncts/base/data/function";
|
65
69
|
import * as P from "@fncts/base/typeclass";
|
@@ -135,9 +139,17 @@ function append_1(self, last) {
|
|
135
139
|
*/
|
136
140
|
|
137
141
|
|
138
|
-
|
142
|
+
function crossWith_1(self, fb, f) {
|
139
143
|
return flatMap_1(self, a => map_1(fb, b => f(a, b)));
|
140
144
|
}
|
145
|
+
/**
|
146
|
+
* @tsplus fluent fncts.ImmutableArray cross
|
147
|
+
*/
|
148
|
+
|
149
|
+
|
150
|
+
export function cross_(self, fb) {
|
151
|
+
return crossWith_1(self, fb, tuple);
|
152
|
+
}
|
141
153
|
/**
|
142
154
|
* @tsplus static fncts.ImmutableArrayOps chainRecDepthFirst
|
143
155
|
*/
|
@@ -148,6 +160,7 @@ export function chainRecDepthFirst(a, f) {
|
|
148
160
|
|
149
161
|
while (buffer.length > 0) {
|
150
162
|
const e = buffer.shift();
|
163
|
+
void 0;
|
151
164
|
|
152
165
|
if (e._tag === "Left"
|
153
166
|
/* EitherTag.Left */
|
@@ -170,6 +183,8 @@ export function chainRecBreadthFirst(a, f) {
|
|
170
183
|
const out = [];
|
171
184
|
|
172
185
|
function go(e) {
|
186
|
+
void 0;
|
187
|
+
|
173
188
|
if (e._tag === "Left") {
|
174
189
|
forEach_1(f(e.left), v => buffer.push(v));
|
175
190
|
} else {
|
@@ -292,7 +307,7 @@ function comprehensionLoop(scope, input, f, g) {
|
|
292
307
|
if (input.length === 0) {
|
293
308
|
return g(...scope) ? tsplus_module_5.now(tsplus_module_2.make(f(...scope))) : tsplus_module_5.now(tsplus_module_2.empty());
|
294
309
|
} else {
|
295
|
-
return tsplus_module_7.map_(
|
310
|
+
return tsplus_module_7.map_(traverse_1(input[0], a => comprehensionLoop(append_1(scope, a), input.slice(1), f, g), tsplus_module_6.Applicative), rs => flatten_1(rs));
|
296
311
|
}
|
297
312
|
}
|
298
313
|
|
@@ -302,7 +317,6 @@ export function comprehension(input, f, g = () => true) {
|
|
302
317
|
/**
|
303
318
|
* @tsplus fluent fncts.ImmutableArray concat
|
304
319
|
* @tsplus operator fncts.ImmutableArray +
|
305
|
-
* @tsplus operator fncts.base.MutableArray +
|
306
320
|
*/
|
307
321
|
|
308
322
|
function concat_1(self, that) {
|
@@ -339,19 +353,13 @@ export function deleteAt_(as, i) {
|
|
339
353
|
return isOutOfBound_1(as, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeDeleteAt_1(as, i));
|
340
354
|
}
|
341
355
|
/**
|
342
|
-
* @
|
356
|
+
* @tsplus fluent fncts.ImmutableArray difference
|
343
357
|
*/
|
344
358
|
|
345
|
-
export function difference_(
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
/**
|
350
|
-
* @tsplus getter fncts.ImmutableArray difference
|
351
|
-
*/
|
352
|
-
|
353
|
-
export function differenceSelf(self) {
|
354
|
-
return E => that => difference_(E)(self, that);
|
359
|
+
export function difference_(self, ys,
|
360
|
+
/** @tsplus auto */
|
361
|
+
E) {
|
362
|
+
return filter_1(self, a => !elem_1(ys, a, E));
|
355
363
|
}
|
356
364
|
/**
|
357
365
|
* @tsplus fluent fncts.ImmutableArray drop
|
@@ -386,35 +394,25 @@ export function dropLastWhile_(as, p) {
|
|
386
394
|
* argument which returns the function to use to search for a value of type `A` in
|
387
395
|
* an array of type `ImmutableArray<A>`.
|
388
396
|
*
|
389
|
-
* @
|
397
|
+
* @tsplus fluent fncts.ImmutableArray elem
|
390
398
|
*/
|
391
399
|
|
392
|
-
|
393
|
-
|
394
|
-
|
400
|
+
function elem_1(as, a,
|
401
|
+
/** @tsplus auto */
|
402
|
+
E) {
|
403
|
+
const predicate = element => E.equals(element, a);
|
395
404
|
|
396
|
-
|
405
|
+
const len = length_1(as);
|
397
406
|
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
}
|
407
|
+
for (let i = 0; i < len; i++) {
|
408
|
+
if (predicate(as._array[i])) {
|
409
|
+
return true;
|
402
410
|
}
|
411
|
+
}
|
403
412
|
|
404
|
-
|
405
|
-
};
|
413
|
+
return false;
|
406
414
|
}
|
407
|
-
/**
|
408
|
-
* Test if a value is a member of an array. Takes an `Eq<A>` as a single
|
409
|
-
* argument which returns the function to use to search for a value of type `A` in
|
410
|
-
* an array of type `ImmutableArray<A>`.
|
411
|
-
*
|
412
|
-
* @tsplus getter fncts.ImmutableArray elem
|
413
|
-
*/
|
414
415
|
|
415
|
-
export function elemSelf(self) {
|
416
|
-
return E => a => elem_(E)(self, a);
|
417
|
-
}
|
418
416
|
export function every_(self, p) {
|
419
417
|
return everyWithIndex_1(self, (_, a) => p(a));
|
420
418
|
}
|
@@ -630,57 +628,38 @@ function foldLeftWithIndexWhile_1(self, b, p, f) {
|
|
630
628
|
|
631
629
|
return out;
|
632
630
|
}
|
633
|
-
|
634
|
-
export function fold(M) {
|
635
|
-
return self => foldLeft_1(self, M.nat, M.combine_);
|
636
|
-
}
|
637
631
|
/**
|
638
632
|
* @tsplus fluent fncts.ImmutableArray fold
|
639
|
-
* @tsplus fluent fncts.base.MutableArray fold
|
640
|
-
*/
|
641
|
-
|
642
|
-
function foldSelf_1(self, M) {
|
643
|
-
return foldLeft_1(self, M.nat, M.combine_);
|
644
|
-
}
|
645
|
-
/**
|
646
|
-
* @constrained
|
647
633
|
*/
|
648
634
|
|
649
635
|
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
636
|
+
function fold_1(self,
|
637
|
+
/** @tsplus auto */
|
638
|
+
M) {
|
639
|
+
return foldLeft_1(self, M.nat, M.combine);
|
654
640
|
}
|
655
641
|
/**
|
656
|
-
* @tsplus
|
657
|
-
* @tsplus getter fncts.base.MutableArray foldMapWithIndex
|
658
|
-
*/
|
659
|
-
|
660
|
-
function foldMapWithIndexSelf_1(self) {
|
661
|
-
return M => f => foldMapWithIndex_(M)(self, f);
|
662
|
-
}
|
663
|
-
/**
|
664
|
-
* @constrained
|
642
|
+
* @tsplus fluent fncts.ImmutableArray foldMapWithIndex
|
665
643
|
*/
|
666
644
|
|
667
645
|
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
646
|
+
function foldMapWithIndex_1(self, f,
|
647
|
+
/** @tsplus auto */
|
648
|
+
M) {
|
649
|
+
return foldLeftWithIndex_1(self, M.nat, (i, b, a) => M.combine(b, f(i, a)));
|
672
650
|
}
|
673
651
|
/**
|
674
|
-
* @tsplus
|
675
|
-
* @tsplus getter fncts.base.MutableArray foldMap
|
652
|
+
* @tsplus fluent fncts.ImmutableArray foldMap
|
676
653
|
*/
|
677
654
|
|
678
|
-
|
679
|
-
|
655
|
+
|
656
|
+
export function foldMap_(self, f,
|
657
|
+
/** @tsplus auto */
|
658
|
+
M) {
|
659
|
+
return foldMapWithIndex_1(self, (_, a) => f(a), M);
|
680
660
|
}
|
681
661
|
/**
|
682
662
|
* @tsplus fluent fncts.ImmutableArray foldRightWithIndex
|
683
|
-
* @tsplus fluent fncts.base.MutableArray foldRightWithIndex
|
684
663
|
*/
|
685
664
|
|
686
665
|
function foldRightWithIndex_1(self, b, f) {
|
@@ -694,7 +673,6 @@ function foldRightWithIndex_1(self, b, f) {
|
|
694
673
|
}
|
695
674
|
/**
|
696
675
|
* @tsplus fluent fncts.ImmutableArray foldRight
|
697
|
-
* @tsplus fluent fncts.base.MutableArray foldRight
|
698
676
|
*/
|
699
677
|
|
700
678
|
|
@@ -703,7 +681,6 @@ export function foldRight_(self, b, f) {
|
|
703
681
|
}
|
704
682
|
/**
|
705
683
|
* @tsplus fluent fncts.ImmutableArray foldRighWhile
|
706
|
-
* @tsplus fluent fncts.base.MutableArray foldRightWhile
|
707
684
|
*/
|
708
685
|
|
709
686
|
export function foldRightWhile_(self, b, p, f) {
|
@@ -711,7 +688,6 @@ export function foldRightWhile_(self, b, p, f) {
|
|
711
688
|
}
|
712
689
|
/**
|
713
690
|
* @tsplus fluent fncts.ImmutableArray foldRightWithIndexWhile
|
714
|
-
* @tsplus fluent fncts.base.MutableArray foldRightWithIndexWhile
|
715
691
|
*/
|
716
692
|
|
717
693
|
function foldRightWithIndexWhile_1(self, b, predicate, f) {
|
@@ -752,7 +728,7 @@ export function group(E) {
|
|
752
728
|
for (; i < length_1(self); i++) {
|
753
729
|
const a = self._array[i];
|
754
730
|
|
755
|
-
if (E.
|
731
|
+
if (E.equals(a, h)) {
|
756
732
|
out.push(a);
|
757
733
|
} else {
|
758
734
|
break;
|
@@ -811,16 +787,14 @@ export function init(self) {
|
|
811
787
|
export function insertAt_(self, i, a) {
|
812
788
|
return isOutOfBound_1(self, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeInsertAt_1(self, i, a));
|
813
789
|
}
|
814
|
-
export function intersection_(E) {
|
815
|
-
const elemE = elem_(E);
|
816
|
-
return (self, that) => filter_1(self, a => elemE(that, a));
|
817
|
-
}
|
818
790
|
/**
|
819
|
-
* @tsplus
|
791
|
+
* @tsplus fluent fncts.ImmutableArray intersection
|
820
792
|
*/
|
821
793
|
|
822
|
-
export function
|
823
|
-
|
794
|
+
export function intersection_(self, that,
|
795
|
+
/** @tsplus auto */
|
796
|
+
E) {
|
797
|
+
return filter_1(self, a => elem_1(that, a, E));
|
824
798
|
}
|
825
799
|
export function intersperse_(self, a) {
|
826
800
|
const len = length_1(self);
|
@@ -881,6 +855,7 @@ export function lefts(self) {
|
|
881
855
|
|
882
856
|
for (let i = 0; i < length_1(self); i++) {
|
883
857
|
const a = self._array[i];
|
858
|
+
void 0;
|
884
859
|
|
885
860
|
if (a._tag === "Left"
|
886
861
|
/* EitherTag.Left */
|
@@ -985,6 +960,7 @@ function partitionMapWithIndex_1(self, f) {
|
|
985
960
|
|
986
961
|
for (let i = 0; i < length_1(self); i++) {
|
987
962
|
const ea = f(i, self._array[i]);
|
963
|
+
void 0;
|
988
964
|
|
989
965
|
switch (ea._tag) {
|
990
966
|
case "Left"
|
@@ -1070,6 +1046,7 @@ export function rights(self) {
|
|
1070
1046
|
|
1071
1047
|
for (let i = 0; i < length_1(self); i++) {
|
1072
1048
|
const a = self._array[i];
|
1049
|
+
void 0;
|
1073
1050
|
|
1074
1051
|
if (a._tag === "Right"
|
1075
1052
|
/* EitherTag.Right */
|
@@ -1130,8 +1107,10 @@ export function scanRight_(self, b, f) {
|
|
1130
1107
|
* @tsplus fluent fncts.ImmutableArray sort
|
1131
1108
|
*/
|
1132
1109
|
|
1133
|
-
function sort_1(self,
|
1134
|
-
|
1110
|
+
function sort_1(self,
|
1111
|
+
/** @tsplus auto */
|
1112
|
+
O) {
|
1113
|
+
return isEmpty_1(self) || length_1(self) === 1 ? self : tsplus_module_2.asImmutableArray(self._array.slice().sort(O.compare));
|
1135
1114
|
}
|
1136
1115
|
/**
|
1137
1116
|
* @tsplus fluent fncts.ImmutableArray sortBy
|
@@ -1139,7 +1118,7 @@ function sort_1(self, O) {
|
|
1139
1118
|
|
1140
1119
|
|
1141
1120
|
export function sortBy(self, Os) {
|
1142
|
-
return sort_1(self,
|
1121
|
+
return sort_1(self, fold_1(Os, tsplus_module_13.getMonoid()));
|
1143
1122
|
}
|
1144
1123
|
export function spanLeft_(self, p) {
|
1145
1124
|
const i = spanIndexLeft_1(self, p);
|
@@ -1242,12 +1221,6 @@ export function splitWhere_(self, p) {
|
|
1242
1221
|
|
1243
1222
|
return splitAt_1(self, i);
|
1244
1223
|
}
|
1245
|
-
export const sequence = A => self => traverseSelf_1(self)(A)(identity);
|
1246
|
-
/**
|
1247
|
-
* @tsplus getter fncts.ImmutableArray sequence
|
1248
|
-
*/
|
1249
|
-
|
1250
|
-
export const sequenceSelf = self => A => traverseSelf_1(self)(A)(identity);
|
1251
1224
|
/**
|
1252
1225
|
* @tsplus getter fncts.ImmutableArray tail
|
1253
1226
|
*/
|
@@ -1279,63 +1252,52 @@ export function takeWhile_(self, p) {
|
|
1279
1252
|
|
1280
1253
|
return tsplus_module_2.asImmutableArray(init);
|
1281
1254
|
}
|
1282
|
-
export const traverseWithIndex_ = /*#__PURE__*/P.mkTraverseWithIndex_()(_ => A => (ta, f) => foldLeftWithIndex_1(ta, A.pure(tsplus_module_2.empty()), (i, fbs, a) => A.zipWith_(fbs, f(i, a), (bs, b) => append_1(bs, b))));
|
1283
1255
|
/**
|
1284
|
-
* @tsplus
|
1256
|
+
* @tsplus fluent fncts.ImmutableArray traverseWithIndex
|
1285
1257
|
*/
|
1286
1258
|
|
1287
|
-
|
1259
|
+
const traverseWithIndex_1 = (ta, f, G) => foldLeftWithIndex_1(ta, G.pure(tsplus_module_2.empty()), (i, fbs, a) => tsplus_module_14.zipWith(fbs, f(i, a), (bs, b) => append_1(bs, b), G));
|
1260
|
+
|
1261
|
+
export const traverseWithIndex_ = traverseWithIndex_1;
|
1288
1262
|
/**
|
1289
|
-
* @tsplus
|
1263
|
+
* @tsplus fluent fncts.ImmutableArray traverse
|
1290
1264
|
*/
|
1291
1265
|
|
1292
|
-
const
|
1266
|
+
const traverse_1 = (self, f, G) => traverseWithIndex_1(self, (_, a) => f(a), G);
|
1293
1267
|
|
1294
|
-
export const
|
1295
|
-
export const traverse_ = A => (self, f) => traverseWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1268
|
+
export const traverse_ = traverse_1;
|
1296
1269
|
/**
|
1297
|
-
* @tsplus
|
1270
|
+
* @tsplus fluent fncts.ImmutableArray union
|
1298
1271
|
*/
|
1299
1272
|
|
1300
|
-
export
|
1273
|
+
export function union_(self, that,
|
1274
|
+
/** @tsplus auto */
|
1275
|
+
E) {
|
1276
|
+
return concat_1(self, filter_1(that, a => !elem_1(self, a, E)));
|
1277
|
+
}
|
1301
1278
|
/**
|
1302
|
-
* @tsplus
|
1279
|
+
* @tsplus fluent fncts.ImmutableArray uniq
|
1303
1280
|
*/
|
1304
1281
|
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
}
|
1312
|
-
export function uniq(E) {
|
1313
|
-
return self => {
|
1314
|
-
if (length_1(self) === 1) {
|
1315
|
-
return self;
|
1316
|
-
}
|
1282
|
+
export function uniq(self,
|
1283
|
+
/** @tsplus auto */
|
1284
|
+
E) {
|
1285
|
+
if (length_1(self) === 1) {
|
1286
|
+
return self;
|
1287
|
+
}
|
1317
1288
|
|
1318
|
-
|
1319
|
-
|
1320
|
-
const len = length_1(self);
|
1289
|
+
const out = [];
|
1290
|
+
const len = length_1(self);
|
1321
1291
|
|
1322
|
-
|
1323
|
-
|
1292
|
+
for (let i = 0; i < len; i++) {
|
1293
|
+
const a = self._array[i];
|
1324
1294
|
|
1325
|
-
|
1326
|
-
|
1327
|
-
}
|
1295
|
+
if (!elem_1(tsplus_module_2.asImmutableArray(out), a, E)) {
|
1296
|
+
out.push(a);
|
1328
1297
|
}
|
1298
|
+
}
|
1329
1299
|
|
1330
|
-
|
1331
|
-
};
|
1332
|
-
}
|
1333
|
-
/**
|
1334
|
-
* @tsplus fluent fncts.ImmutableArray uniq
|
1335
|
-
*/
|
1336
|
-
|
1337
|
-
export function uniqSelf(self, E) {
|
1338
|
-
return uniq(E)(self);
|
1300
|
+
return tsplus_module_2.asImmutableArray(out);
|
1339
1301
|
}
|
1340
1302
|
/**
|
1341
1303
|
* @tsplus getter fncts.ImmutableArray unprepend
|
@@ -1432,68 +1394,64 @@ export function unzip(self) {
|
|
1432
1394
|
export function updateAt_(as, i, a) {
|
1433
1395
|
return isOutOfBound_1(as, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeUpdateAt_1(as, i, a));
|
1434
1396
|
}
|
1435
|
-
export const wilt_ = A => (self, f) => wiltWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1436
|
-
/**
|
1437
|
-
* @tsplus pipeable fncts.ImmutableArray wilt_
|
1438
|
-
*/
|
1439
|
-
|
1440
|
-
export const wilt = A => f => self => wiltWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1441
1397
|
/**
|
1442
1398
|
* @tsplus fluent fncts.ImmutableArray wilt
|
1443
1399
|
*/
|
1444
1400
|
|
1445
|
-
export
|
1446
|
-
|
1447
|
-
|
1448
|
-
return r
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
* @tsplus dataFirst wither_
|
1468
|
-
*/
|
1469
|
-
|
1470
|
-
export const wither = A => f => self => wither_(A)(self, f);
|
1401
|
+
export function wilt_(self, f,
|
1402
|
+
/** @tsplus auto */
|
1403
|
+
G) {
|
1404
|
+
return tsplus_module_16.map(foldLeft_1(self, G.pure([[], []]), (fbs, a) => tsplus_module_14.zipWith(f(a), fbs, (eb, r) => tsplus_module_15.match_(eb, b1 => {
|
1405
|
+
r[0].push(b1);
|
1406
|
+
return r;
|
1407
|
+
}, b2 => {
|
1408
|
+
r[1].push(b2);
|
1409
|
+
return r;
|
1410
|
+
}), G)), ([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)], G);
|
1411
|
+
}
|
1412
|
+
export function wiltWithIndex_(self, f,
|
1413
|
+
/** @tsplus auto */
|
1414
|
+
G) {
|
1415
|
+
return tsplus_module_16.map(foldLeftWithIndex_1(self, G.pure([[], []]), (i, fbs, a) => tsplus_module_14.zipWith(f(i, a), fbs, (eb, r) => tsplus_module_15.match_(eb, b1 => {
|
1416
|
+
r[0].push(b1);
|
1417
|
+
return r;
|
1418
|
+
}, b2 => {
|
1419
|
+
r[1].push(b2);
|
1420
|
+
return r;
|
1421
|
+
}), G)), ([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)], G);
|
1422
|
+
}
|
1471
1423
|
/**
|
1472
1424
|
* @tsplus fluent fncts.ImmutableArray wither
|
1473
1425
|
*/
|
1474
1426
|
|
1475
|
-
export
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
return
|
1482
|
-
}
|
1483
|
-
/**
|
1484
|
-
* @tsplus dataFirst witherWithIndex_
|
1485
|
-
*/
|
1486
|
-
|
1487
|
-
export const witherWithIndex = A => f => self => witherWithIndex_(A)(self, f);
|
1427
|
+
export function wither_(self, f,
|
1428
|
+
/** @tsplus auto */
|
1429
|
+
G) {
|
1430
|
+
const G_1 =
|
1431
|
+
/** @tsplus auto */
|
1432
|
+
G;
|
1433
|
+
return witherWithIndex_1(self, (_, a) => f(a), G_1);
|
1434
|
+
}
|
1488
1435
|
/**
|
1489
1436
|
* @tsplus fluent fncts.ImmutableArray witherWithIndex
|
1490
1437
|
*/
|
1491
1438
|
|
1492
|
-
|
1439
|
+
function witherWithIndex_1(self, f,
|
1440
|
+
/** @tsplus auto */
|
1441
|
+
G) {
|
1442
|
+
return tsplus_module_16.map(foldLeftWithIndex_1(self, G.pure([]), (i, b, a) => tsplus_module_14.zipWith(f(i, a), b, (maybeB, bs) => {
|
1443
|
+
if (tsplus_module_4.isJust(maybeB)) {
|
1444
|
+
bs.push(maybeB.value);
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
return bs;
|
1448
|
+
}, G)), bs => tsplus_module_2.asImmutableArray(bs), G);
|
1449
|
+
}
|
1493
1450
|
/**
|
1494
1451
|
* @tsplus fluent fncts.ImmutableArray zip
|
1495
1452
|
*/
|
1496
1453
|
|
1454
|
+
|
1497
1455
|
export function zip_(self, that) {
|
1498
1456
|
return zipWith_1(self, that, tuple);
|
1499
1457
|
}
|