@fncts/base 0.0.1 → 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/Iterable.cjs +3 -3
- package/_cjs/collection/compat/Array/api.cjs +1 -1
- package/_cjs/collection/compat/Array/api.cjs.map +1 -1
- package/_cjs/collection/compat/Array.cjs +2 -2
- package/_cjs/collection/immutable/Conc/api.cjs +41 -53
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/constructors.cjs +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/Conc.cjs +6 -6
- 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/HashMap.cjs +2 -2
- package/_cjs/collection/immutable/HashSet/api.cjs +10 -10
- package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet.cjs +2 -2
- 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/ImmutableArray.cjs +4 -4
- 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/ImmutableNonEmptyArray.cjs +5 -5
- package/_cjs/collection/immutable/List/api.cjs +4 -7
- package/_cjs/collection/immutable/List/api.cjs.map +1 -1
- package/_cjs/collection/immutable/List/constructors.cjs +1 -1
- package/_cjs/collection/immutable/List.cjs +5 -5
- package/_cjs/collection/immutable/Queue.cjs +4 -4
- 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/SortedMap.cjs +5 -5
- 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/immutable/Vector.cjs +2 -2
- 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 +7 -1
- 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/Eval.cjs +5 -5
- package/_cjs/control/Z/api.cjs +2 -2
- package/_cjs/control/Z/definition.cjs +10 -4
- package/_cjs/control/Z/definition.cjs.map +1 -1
- package/_cjs/control/Z/instances.cjs +7 -14
- package/_cjs/control/Z/instances.cjs.map +1 -1
- package/_cjs/control/Z/runtime.cjs +2 -2
- package/_cjs/control/Z.cjs +4 -4
- 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/unified.cjs +2 -2
- package/_cjs/data/Cause/api.cjs +30 -7
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Cause/definition.cjs +3 -3
- package/_cjs/data/Cause.cjs +2 -2
- 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/Const.cjs +3 -3
- 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/Duration/definition.cjs +1 -1
- package/_cjs/data/Duration.cjs +2 -2
- package/_cjs/data/Either/api/align.cjs +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 +110 -47
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/constructors.cjs +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/Either.cjs +5 -5
- package/_cjs/data/Environment/api.cjs +29 -8
- package/_cjs/data/Environment/api.cjs.map +1 -1
- package/_cjs/data/Environment.cjs +2 -2
- package/_cjs/data/Exit/api.cjs +1 -1
- package/_cjs/data/Exit/constructors.cjs +1 -1
- package/_cjs/data/Exit/definition.cjs +2 -2
- package/_cjs/data/Exit.cjs +3 -3
- package/_cjs/data/FiberId/api.cjs +1 -1
- package/_cjs/data/FiberId/constructors.cjs +2 -2
- package/_cjs/data/FiberId/definition.cjs +1 -1
- package/_cjs/data/FiberId.cjs +3 -3
- 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 +12 -26
- package/_cjs/data/Identity/instances.cjs.map +1 -1
- package/_cjs/data/Identity.cjs +3 -3
- package/_cjs/data/Interval.cjs +154 -0
- package/_cjs/data/Interval.cjs.map +1 -0
- package/_cjs/data/Maybe/api.cjs +31 -44
- package/_cjs/data/Maybe/api.cjs.map +1 -1
- package/_cjs/data/Maybe/definition.cjs +46 -19
- 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/Maybe.cjs +5 -5
- 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/Patch.cjs +2 -2
- package/_cjs/data/Predicate.cjs +2 -2
- package/_cjs/data/Refinement/api.cjs +0 -4
- package/_cjs/data/Refinement/api.cjs.map +1 -1
- package/_cjs/data/Refinement.cjs +2 -2
- package/_cjs/data/Struct/api.cjs +1 -1
- package/_cjs/data/Struct/definition.cjs +4 -2
- package/_cjs/data/Struct/definition.cjs.map +1 -1
- package/_cjs/data/Tag.cjs +2 -2
- package/_cjs/data/These/api.cjs +299 -0
- package/_cjs/data/These/api.cjs.map +1 -0
- package/_cjs/data/These/constructors.cjs +25 -5
- 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 +16 -3
- package/_cjs/data/These.cjs.map +1 -1
- package/_cjs/data/Trace.cjs +3 -3
- package/_cjs/data/TraceElement.cjs +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/exceptions/InterruptedException.cjs +1 -1
- package/_cjs/data/exceptions.cjs +7 -7
- package/_cjs/data/function.cjs +3 -3
- package/_cjs/data/number/instances.cjs +19 -6
- package/_cjs/data/number/instances.cjs.map +1 -1
- package/_cjs/data/number.cjs +3 -3
- package/_cjs/data/object/instances.cjs +24 -0
- package/_cjs/data/object/instances.cjs.map +1 -0
- package/_cjs/data/object.cjs +1 -1
- package/_cjs/data/string/instances.cjs +25 -10
- package/_cjs/data/string/instances.cjs.map +1 -1
- package/_cjs/data/string.cjs +3 -3
- package/_cjs/internal/AtomicBoolean.cjs +1 -1
- package/_cjs/internal/AtomicNumber.cjs +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/At.cjs +2 -2
- package/_cjs/optics/Fold.cjs +1 -1
- package/_cjs/optics/Getter.cjs +1 -1
- package/_cjs/optics/Index.cjs +2 -2
- package/_cjs/optics/Iso.cjs +2 -2
- package/_cjs/optics/Lens.cjs +2 -2
- package/_cjs/optics/Optional/definition.cjs +6 -4
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Optional.cjs +2 -2
- package/_cjs/optics/Prism.cjs +4 -4
- package/_cjs/optics/Setter.cjs +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/optics/Traversal.cjs +3 -3
- 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/Equatable.cjs +3 -3
- 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/Hashable.cjs +2 -2
- 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/api.cjs +3 -3
- 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/Ord.cjs +3 -3
- 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/Semigroup.cjs +2 -2
- 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/Showable.cjs +2 -2
- 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/builtin.cjs +1 -1
- package/_cjs/typeclass.cjs +49 -36
- package/_cjs/typeclass.cjs.map +1 -1
- package/_cjs/types.cjs +3 -3
- 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 +4 -4
- 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
@@ -16,18 +16,15 @@ exports.chop_ = void 0;
|
|
16
16
|
exports.chunksOf_ = chunksOf_;
|
17
17
|
exports.collectWhile_ = collectWhile_;
|
18
18
|
exports.comprehension = comprehension;
|
19
|
-
exports.concat_ = void 0;
|
20
|
-
exports.
|
19
|
+
exports.crossWith_ = exports.concat_ = void 0;
|
20
|
+
exports.cross_ = cross_;
|
21
21
|
exports.deleteAt_ = deleteAt_;
|
22
|
-
exports.differenceSelf = differenceSelf;
|
23
22
|
exports.difference_ = difference_;
|
24
23
|
exports.dropLastWhile_ = dropLastWhile_;
|
25
24
|
exports.dropLast_ = dropLast_;
|
26
25
|
exports.dropWhile_ = dropWhile_;
|
27
26
|
exports.drop_ = drop_;
|
28
|
-
exports.
|
29
|
-
exports.elem_ = elem_;
|
30
|
-
exports.everyWithIndex_ = void 0;
|
27
|
+
exports.everyWithIndex_ = exports.elem_ = void 0;
|
31
28
|
exports.every_ = every_;
|
32
29
|
exports.exists_ = exists_;
|
33
30
|
exports.filterMapWithIndex_ = void 0;
|
@@ -42,24 +39,19 @@ exports.findMapWithIndex_ = void 0;
|
|
42
39
|
exports.findMap_ = findMap_;
|
43
40
|
exports.findWithIndex_ = void 0;
|
44
41
|
exports.find_ = find_;
|
45
|
-
exports.flatten = exports.flatMap_ = exports.flatMapWithIndex_ = void 0;
|
46
|
-
exports.fold = fold;
|
42
|
+
exports.fold = exports.flatten = exports.flatMap_ = exports.flatMapWithIndex_ = void 0;
|
47
43
|
exports.foldLeftWhile_ = foldLeftWhile_;
|
48
|
-
exports.foldLeft_ = exports.foldLeftWithIndex_ = exports.foldLeftWithIndexWhile_ = void 0;
|
49
|
-
exports.foldMapSelf = foldMapSelf;
|
50
|
-
exports.foldMapWithIndexSelf = void 0;
|
51
|
-
exports.foldMapWithIndex_ = foldMapWithIndex_;
|
44
|
+
exports.foldMapWithIndex_ = exports.foldLeft_ = exports.foldLeftWithIndex_ = exports.foldLeftWithIndexWhile_ = void 0;
|
52
45
|
exports.foldMap_ = foldMap_;
|
53
46
|
exports.foldRightWhile_ = foldRightWhile_;
|
54
47
|
exports.foldRightWithIndex_ = exports.foldRightWithIndexWhile_ = void 0;
|
55
48
|
exports.foldRight_ = foldRight_;
|
56
|
-
exports.get_ = exports.forEach_ =
|
49
|
+
exports.get_ = exports.forEach_ = void 0;
|
57
50
|
exports.group = group;
|
58
51
|
exports.groupBy_ = groupBy_;
|
59
52
|
exports.head = head;
|
60
53
|
exports.init = init;
|
61
54
|
exports.insertAt_ = insertAt_;
|
62
|
-
exports.intersectionSelf = intersectionSelf;
|
63
55
|
exports.intersection_ = intersection_;
|
64
56
|
exports.intersperse_ = intersperse_;
|
65
57
|
exports.isOutOfBound_ = exports.isNonEmpty = exports.isEmpty = void 0;
|
@@ -80,7 +72,7 @@ exports.rights = rights;
|
|
80
72
|
exports.rotate_ = void 0;
|
81
73
|
exports.scanLeft_ = scanLeft_;
|
82
74
|
exports.scanRight_ = scanRight_;
|
83
|
-
exports.sort = exports.slice_ =
|
75
|
+
exports.sort = exports.slice_ = void 0;
|
84
76
|
exports.sortBy = sortBy;
|
85
77
|
exports.spanIndexRight_ = exports.spanIndexLeft_ = void 0;
|
86
78
|
exports.spanLeft_ = spanLeft_;
|
@@ -91,15 +83,19 @@ exports.tail = tail;
|
|
91
83
|
exports.takeLast_ = takeLast_;
|
92
84
|
exports.takeWhile_ = takeWhile_;
|
93
85
|
exports.take_ = take_;
|
94
|
-
exports.
|
86
|
+
exports.traverseWithIndex_ = void 0;
|
87
|
+
exports.traverse_ = void 0;
|
95
88
|
exports.union_ = union_;
|
96
89
|
exports.uniq = uniq;
|
97
|
-
exports.uniqSelf = uniqSelf;
|
98
90
|
exports.unprepend = unprepend;
|
99
91
|
exports.unsafeUpdateAt_ = exports.unsafeModifyAt_ = exports.unsafeInsertAt_ = exports.unsafeGet = exports.unsafeDeleteAt_ = exports.unsafeAsMutable = void 0;
|
100
92
|
exports.unzip = unzip;
|
101
93
|
exports.updateAt_ = updateAt_;
|
102
|
-
exports.
|
94
|
+
exports.wiltWithIndex_ = wiltWithIndex_;
|
95
|
+
exports.wilt_ = wilt_;
|
96
|
+
exports.witherWithIndex_ = void 0;
|
97
|
+
exports.wither_ = wither_;
|
98
|
+
exports.zipWith_ = void 0;
|
103
99
|
exports.zip_ = zip_;
|
104
100
|
|
105
101
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/These/constructors"));
|
@@ -128,10 +124,12 @@ var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/requir
|
|
128
124
|
|
129
125
|
var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass/Ord/instances"));
|
130
126
|
|
131
|
-
var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/
|
127
|
+
var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass/Apply"));
|
132
128
|
|
133
129
|
var tsplus_module_15 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/destructors"));
|
134
130
|
|
131
|
+
var tsplus_module_16 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass/Functor"));
|
132
|
+
|
135
133
|
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
136
134
|
|
137
135
|
var P = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass"));
|
@@ -144,6 +142,8 @@ const alignWith_ = alignWith_1;
|
|
144
142
|
exports.alignWith_ = alignWith_;
|
145
143
|
const append_ = append_1;
|
146
144
|
exports.append_ = append_;
|
145
|
+
const crossWith_ = crossWith_1;
|
146
|
+
exports.crossWith_ = crossWith_;
|
147
147
|
const flatMapWithIndex_ = flatMapWithIndex_1;
|
148
148
|
exports.flatMapWithIndex_ = flatMapWithIndex_;
|
149
149
|
const flatMap_ = flatMap_1;
|
@@ -154,6 +154,8 @@ const chop_ = chop_1;
|
|
154
154
|
exports.chop_ = chop_;
|
155
155
|
const concat_ = concat_1;
|
156
156
|
exports.concat_ = concat_;
|
157
|
+
const elem_ = elem_1;
|
158
|
+
exports.elem_ = elem_;
|
157
159
|
const everyWithIndex_ = everyWithIndex_1;
|
158
160
|
exports.everyWithIndex_ = everyWithIndex_;
|
159
161
|
const filter_ = filter_1;
|
@@ -174,10 +176,10 @@ const foldLeft_ = foldLeft_1;
|
|
174
176
|
exports.foldLeft_ = foldLeft_;
|
175
177
|
const foldLeftWithIndexWhile_ = foldLeftWithIndexWhile_1;
|
176
178
|
exports.foldLeftWithIndexWhile_ = foldLeftWithIndexWhile_;
|
177
|
-
const
|
178
|
-
exports.
|
179
|
-
const
|
180
|
-
exports.
|
179
|
+
const fold = fold_1;
|
180
|
+
exports.fold = fold;
|
181
|
+
const foldMapWithIndex_ = foldMapWithIndex_1;
|
182
|
+
exports.foldMapWithIndex_ = foldMapWithIndex_;
|
181
183
|
const foldRightWithIndex_ = foldRightWithIndex_1;
|
182
184
|
exports.foldRightWithIndex_ = foldRightWithIndex_;
|
183
185
|
const foldRightWithIndexWhile_ = foldRightWithIndexWhile_1;
|
@@ -234,6 +236,8 @@ const unsafeModifyAt_ = unsafeModifyAt_1;
|
|
234
236
|
exports.unsafeModifyAt_ = unsafeModifyAt_;
|
235
237
|
const unsafeUpdateAt_ = unsafeUpdateAt_1;
|
236
238
|
exports.unsafeUpdateAt_ = unsafeUpdateAt_;
|
239
|
+
const witherWithIndex_ = witherWithIndex_1;
|
240
|
+
exports.witherWithIndex_ = witherWithIndex_;
|
237
241
|
const zipWith_ = zipWith_1;
|
238
242
|
exports.zipWith_ = zipWith_;
|
239
243
|
|
@@ -311,9 +315,17 @@ function append_1(self, last) {
|
|
311
315
|
*/
|
312
316
|
|
313
317
|
|
314
|
-
function
|
318
|
+
function crossWith_1(self, fb, f) {
|
315
319
|
return flatMap_1(self, a => map_1(fb, b => f(a, b)));
|
316
320
|
}
|
321
|
+
/**
|
322
|
+
* @tsplus fluent fncts.ImmutableArray cross
|
323
|
+
*/
|
324
|
+
|
325
|
+
|
326
|
+
function cross_(self, fb) {
|
327
|
+
return crossWith_1(self, fb, _function.tuple);
|
328
|
+
}
|
317
329
|
/**
|
318
330
|
* @tsplus static fncts.ImmutableArrayOps chainRecDepthFirst
|
319
331
|
*/
|
@@ -325,6 +337,7 @@ function chainRecDepthFirst(a, f) {
|
|
325
337
|
|
326
338
|
while (buffer.length > 0) {
|
327
339
|
const e = buffer.shift();
|
340
|
+
void 0;
|
328
341
|
|
329
342
|
if (e._tag === "Left"
|
330
343
|
/* EitherTag.Left */
|
@@ -348,6 +361,8 @@ function chainRecBreadthFirst(a, f) {
|
|
348
361
|
const out = [];
|
349
362
|
|
350
363
|
function go(e) {
|
364
|
+
void 0;
|
365
|
+
|
351
366
|
if (e._tag === "Left") {
|
352
367
|
forEach_1(f(e.left), v => buffer.push(v));
|
353
368
|
} else {
|
@@ -475,7 +490,7 @@ function comprehensionLoop(scope, input, f, g) {
|
|
475
490
|
if (input.length === 0) {
|
476
491
|
return g(...scope) ? tsplus_module_5.now(tsplus_module_2.make(f(...scope))) : tsplus_module_5.now(tsplus_module_2.empty());
|
477
492
|
} else {
|
478
|
-
return tsplus_module_7.map_(
|
493
|
+
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));
|
479
494
|
}
|
480
495
|
}
|
481
496
|
|
@@ -485,7 +500,6 @@ function comprehension(input, f, g = () => true) {
|
|
485
500
|
/**
|
486
501
|
* @tsplus fluent fncts.ImmutableArray concat
|
487
502
|
* @tsplus operator fncts.ImmutableArray +
|
488
|
-
* @tsplus operator fncts.base.MutableArray +
|
489
503
|
*/
|
490
504
|
|
491
505
|
|
@@ -523,21 +537,14 @@ function deleteAt_(as, i) {
|
|
523
537
|
return isOutOfBound_1(as, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeDeleteAt_1(as, i));
|
524
538
|
}
|
525
539
|
/**
|
526
|
-
* @
|
540
|
+
* @tsplus fluent fncts.ImmutableArray difference
|
527
541
|
*/
|
528
542
|
|
529
543
|
|
530
|
-
function difference_(
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
/**
|
535
|
-
* @tsplus getter fncts.ImmutableArray difference
|
536
|
-
*/
|
537
|
-
|
538
|
-
|
539
|
-
function differenceSelf(self) {
|
540
|
-
return E => that => difference_(E)(self, that);
|
544
|
+
function difference_(self, ys,
|
545
|
+
/** @tsplus auto */
|
546
|
+
E) {
|
547
|
+
return filter_1(self, a => !elem_1(ys, a, E));
|
541
548
|
}
|
542
549
|
/**
|
543
550
|
* @tsplus fluent fncts.ImmutableArray drop
|
@@ -576,36 +583,24 @@ function dropLastWhile_(as, p) {
|
|
576
583
|
* argument which returns the function to use to search for a value of type `A` in
|
577
584
|
* an array of type `ImmutableArray<A>`.
|
578
585
|
*
|
579
|
-
* @
|
586
|
+
* @tsplus fluent fncts.ImmutableArray elem
|
580
587
|
*/
|
581
588
|
|
582
589
|
|
583
|
-
function
|
584
|
-
|
585
|
-
|
590
|
+
function elem_1(as, a,
|
591
|
+
/** @tsplus auto */
|
592
|
+
E) {
|
593
|
+
const predicate = element => E.equals(element, a);
|
586
594
|
|
587
|
-
|
595
|
+
const len = length_1(as);
|
588
596
|
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
}
|
597
|
+
for (let i = 0; i < len; i++) {
|
598
|
+
if (predicate(as._array[i])) {
|
599
|
+
return true;
|
593
600
|
}
|
601
|
+
}
|
594
602
|
|
595
|
-
|
596
|
-
};
|
597
|
-
}
|
598
|
-
/**
|
599
|
-
* Test if a value is a member of an array. Takes an `Eq<A>` as a single
|
600
|
-
* argument which returns the function to use to search for a value of type `A` in
|
601
|
-
* an array of type `ImmutableArray<A>`.
|
602
|
-
*
|
603
|
-
* @tsplus getter fncts.ImmutableArray elem
|
604
|
-
*/
|
605
|
-
|
606
|
-
|
607
|
-
function elemSelf(self) {
|
608
|
-
return E => a => elem_(E)(self, a);
|
603
|
+
return false;
|
609
604
|
}
|
610
605
|
|
611
606
|
function every_(self, p) {
|
@@ -830,60 +825,38 @@ function foldLeftWithIndexWhile_1(self, b, p, f) {
|
|
830
825
|
|
831
826
|
return out;
|
832
827
|
}
|
833
|
-
|
834
|
-
function fold(M) {
|
835
|
-
return self => foldLeft_1(self, M.nat, M.combine_);
|
836
|
-
}
|
837
828
|
/**
|
838
829
|
* @tsplus fluent fncts.ImmutableArray fold
|
839
|
-
* @tsplus fluent fncts.base.MutableArray fold
|
840
830
|
*/
|
841
831
|
|
842
832
|
|
843
|
-
function
|
844
|
-
|
833
|
+
function fold_1(self,
|
834
|
+
/** @tsplus auto */
|
835
|
+
M) {
|
836
|
+
return foldLeft_1(self, M.nat, M.combine);
|
845
837
|
}
|
846
838
|
/**
|
847
|
-
* @
|
839
|
+
* @tsplus fluent fncts.ImmutableArray foldMapWithIndex
|
848
840
|
*/
|
849
841
|
|
850
842
|
|
851
|
-
function
|
852
|
-
|
853
|
-
|
854
|
-
|
843
|
+
function foldMapWithIndex_1(self, f,
|
844
|
+
/** @tsplus auto */
|
845
|
+
M) {
|
846
|
+
return foldLeftWithIndex_1(self, M.nat, (i, b, a) => M.combine(b, f(i, a)));
|
855
847
|
}
|
856
848
|
/**
|
857
|
-
* @tsplus
|
858
|
-
* @tsplus getter fncts.base.MutableArray foldMapWithIndex
|
849
|
+
* @tsplus fluent fncts.ImmutableArray foldMap
|
859
850
|
*/
|
860
851
|
|
861
852
|
|
862
|
-
function
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
* @constrained
|
867
|
-
*/
|
868
|
-
|
869
|
-
|
870
|
-
function foldMap_(M) {
|
871
|
-
return (self, f) => {
|
872
|
-
return foldMapWithIndexSelf_1(self)(M)((_, a) => f(a));
|
873
|
-
};
|
874
|
-
}
|
875
|
-
/**
|
876
|
-
* @tsplus getter fncts.ImmutableArray foldMap
|
877
|
-
* @tsplus getter fncts.base.MutableArray foldMap
|
878
|
-
*/
|
879
|
-
|
880
|
-
|
881
|
-
function foldMapSelf(self) {
|
882
|
-
return M => f => foldMapWithIndexSelf_1(self)(M)((_, a) => f(a));
|
853
|
+
function foldMap_(self, f,
|
854
|
+
/** @tsplus auto */
|
855
|
+
M) {
|
856
|
+
return foldMapWithIndex_1(self, (_, a) => f(a), M);
|
883
857
|
}
|
884
858
|
/**
|
885
859
|
* @tsplus fluent fncts.ImmutableArray foldRightWithIndex
|
886
|
-
* @tsplus fluent fncts.base.MutableArray foldRightWithIndex
|
887
860
|
*/
|
888
861
|
|
889
862
|
|
@@ -898,7 +871,6 @@ function foldRightWithIndex_1(self, b, f) {
|
|
898
871
|
}
|
899
872
|
/**
|
900
873
|
* @tsplus fluent fncts.ImmutableArray foldRight
|
901
|
-
* @tsplus fluent fncts.base.MutableArray foldRight
|
902
874
|
*/
|
903
875
|
|
904
876
|
|
@@ -907,7 +879,6 @@ function foldRight_(self, b, f) {
|
|
907
879
|
}
|
908
880
|
/**
|
909
881
|
* @tsplus fluent fncts.ImmutableArray foldRighWhile
|
910
|
-
* @tsplus fluent fncts.base.MutableArray foldRightWhile
|
911
882
|
*/
|
912
883
|
|
913
884
|
|
@@ -916,7 +887,6 @@ function foldRightWhile_(self, b, p, f) {
|
|
916
887
|
}
|
917
888
|
/**
|
918
889
|
* @tsplus fluent fncts.ImmutableArray foldRightWithIndexWhile
|
919
|
-
* @tsplus fluent fncts.base.MutableArray foldRightWithIndexWhile
|
920
890
|
*/
|
921
891
|
|
922
892
|
|
@@ -958,7 +928,7 @@ function group(E) {
|
|
958
928
|
for (; i < length_1(self); i++) {
|
959
929
|
const a = self._array[i];
|
960
930
|
|
961
|
-
if (E.
|
931
|
+
if (E.equals(a, h)) {
|
962
932
|
out.push(a);
|
963
933
|
} else {
|
964
934
|
break;
|
@@ -1022,18 +992,15 @@ function init(self) {
|
|
1022
992
|
function insertAt_(self, i, a) {
|
1023
993
|
return isOutOfBound_1(self, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeInsertAt_1(self, i, a));
|
1024
994
|
}
|
1025
|
-
|
1026
|
-
function intersection_(E) {
|
1027
|
-
const elemE = elem_(E);
|
1028
|
-
return (self, that) => filter_1(self, a => elemE(that, a));
|
1029
|
-
}
|
1030
995
|
/**
|
1031
|
-
* @tsplus
|
996
|
+
* @tsplus fluent fncts.ImmutableArray intersection
|
1032
997
|
*/
|
1033
998
|
|
1034
999
|
|
1035
|
-
function
|
1036
|
-
|
1000
|
+
function intersection_(self, that,
|
1001
|
+
/** @tsplus auto */
|
1002
|
+
E) {
|
1003
|
+
return filter_1(self, a => elem_1(that, a, E));
|
1037
1004
|
}
|
1038
1005
|
|
1039
1006
|
function intersperse_(self, a) {
|
@@ -1098,6 +1065,7 @@ function lefts(self) {
|
|
1098
1065
|
|
1099
1066
|
for (let i = 0; i < length_1(self); i++) {
|
1100
1067
|
const a = self._array[i];
|
1068
|
+
void 0;
|
1101
1069
|
|
1102
1070
|
if (a._tag === "Left"
|
1103
1071
|
/* EitherTag.Left */
|
@@ -1206,6 +1174,7 @@ function partitionMapWithIndex_1(self, f) {
|
|
1206
1174
|
|
1207
1175
|
for (let i = 0; i < length_1(self); i++) {
|
1208
1176
|
const ea = f(i, self._array[i]);
|
1177
|
+
void 0;
|
1209
1178
|
|
1210
1179
|
switch (ea._tag) {
|
1211
1180
|
case "Left"
|
@@ -1293,6 +1262,7 @@ function rights(self) {
|
|
1293
1262
|
|
1294
1263
|
for (let i = 0; i < length_1(self); i++) {
|
1295
1264
|
const a = self._array[i];
|
1265
|
+
void 0;
|
1296
1266
|
|
1297
1267
|
if (a._tag === "Right"
|
1298
1268
|
/* EitherTag.Right */
|
@@ -1356,8 +1326,10 @@ function scanRight_(self, b, f) {
|
|
1356
1326
|
*/
|
1357
1327
|
|
1358
1328
|
|
1359
|
-
function sort_1(self,
|
1360
|
-
|
1329
|
+
function sort_1(self,
|
1330
|
+
/** @tsplus auto */
|
1331
|
+
O) {
|
1332
|
+
return isEmpty_1(self) || length_1(self) === 1 ? self : tsplus_module_2.asImmutableArray(self._array.slice().sort(O.compare));
|
1361
1333
|
}
|
1362
1334
|
/**
|
1363
1335
|
* @tsplus fluent fncts.ImmutableArray sortBy
|
@@ -1365,7 +1337,7 @@ function sort_1(self, O) {
|
|
1365
1337
|
|
1366
1338
|
|
1367
1339
|
function sortBy(self, Os) {
|
1368
|
-
return sort_1(self,
|
1340
|
+
return sort_1(self, fold_1(Os, tsplus_module_13.getMonoid()));
|
1369
1341
|
}
|
1370
1342
|
|
1371
1343
|
function spanLeft_(self, p) {
|
@@ -1471,23 +1443,11 @@ function splitWhere_(self, p) {
|
|
1471
1443
|
|
1472
1444
|
return splitAt_1(self, i);
|
1473
1445
|
}
|
1474
|
-
|
1475
|
-
const sequence = A => self => traverseSelf_1(self)(A)(_function.identity);
|
1476
|
-
/**
|
1477
|
-
* @tsplus getter fncts.ImmutableArray sequence
|
1478
|
-
*/
|
1479
|
-
|
1480
|
-
|
1481
|
-
exports.sequence = sequence;
|
1482
|
-
|
1483
|
-
const sequenceSelf = self => A => traverseSelf_1(self)(A)(_function.identity);
|
1484
1446
|
/**
|
1485
1447
|
* @tsplus getter fncts.ImmutableArray tail
|
1486
1448
|
*/
|
1487
1449
|
|
1488
1450
|
|
1489
|
-
exports.sequenceSelf = sequenceSelf;
|
1490
|
-
|
1491
1451
|
function tail(self) {
|
1492
1452
|
return isNonEmpty_1(self) ? tsplus_module_9.just(slice_1(self, 1)) : tsplus_module_9.nothing();
|
1493
1453
|
}
|
@@ -1518,81 +1478,58 @@ function takeWhile_(self, p) {
|
|
1518
1478
|
|
1519
1479
|
return tsplus_module_2.asImmutableArray(init);
|
1520
1480
|
}
|
1521
|
-
|
1522
|
-
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))));
|
1523
1481
|
/**
|
1524
|
-
* @tsplus
|
1482
|
+
* @tsplus fluent fncts.ImmutableArray traverseWithIndex
|
1525
1483
|
*/
|
1526
1484
|
|
1527
|
-
exports.traverseWithIndex_ = traverseWithIndex_;
|
1528
1485
|
|
1529
|
-
const
|
1486
|
+
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));
|
1487
|
+
|
1488
|
+
const traverseWithIndex_ = traverseWithIndex_1;
|
1530
1489
|
/**
|
1531
|
-
* @tsplus
|
1490
|
+
* @tsplus fluent fncts.ImmutableArray traverse
|
1532
1491
|
*/
|
1533
1492
|
|
1493
|
+
exports.traverseWithIndex_ = traverseWithIndex_;
|
1534
1494
|
|
1535
|
-
|
1536
|
-
|
1537
|
-
const traverseWithIndexSelf_1 = self => A => f => traverseWithIndex_(A)(self, f);
|
1538
|
-
|
1539
|
-
const traverseWithIndexSelf = traverseWithIndexSelf_1;
|
1540
|
-
exports.traverseWithIndexSelf = traverseWithIndexSelf;
|
1495
|
+
const traverse_1 = (self, f, G) => traverseWithIndex_1(self, (_, a) => f(a), G);
|
1541
1496
|
|
1542
|
-
const traverse_ =
|
1497
|
+
const traverse_ = traverse_1;
|
1543
1498
|
/**
|
1544
|
-
* @tsplus
|
1499
|
+
* @tsplus fluent fncts.ImmutableArray union
|
1545
1500
|
*/
|
1546
1501
|
|
1547
|
-
|
1548
1502
|
exports.traverse_ = traverse_;
|
1549
1503
|
|
1550
|
-
|
1504
|
+
function union_(self, that,
|
1505
|
+
/** @tsplus auto */
|
1506
|
+
E) {
|
1507
|
+
return concat_1(self, filter_1(that, a => !elem_1(self, a, E)));
|
1508
|
+
}
|
1551
1509
|
/**
|
1552
|
-
* @tsplus
|
1510
|
+
* @tsplus fluent fncts.ImmutableArray uniq
|
1553
1511
|
*/
|
1554
1512
|
|
1555
1513
|
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
function union_(E) {
|
1564
|
-
const elemE = elem_(E);
|
1565
|
-
return (self, that) => concat_1(self, filter_1(that, a => !elemE(self, a)));
|
1566
|
-
}
|
1567
|
-
|
1568
|
-
function uniq(E) {
|
1569
|
-
return self => {
|
1570
|
-
if (length_1(self) === 1) {
|
1571
|
-
return self;
|
1572
|
-
}
|
1514
|
+
function uniq(self,
|
1515
|
+
/** @tsplus auto */
|
1516
|
+
E) {
|
1517
|
+
if (length_1(self) === 1) {
|
1518
|
+
return self;
|
1519
|
+
}
|
1573
1520
|
|
1574
|
-
|
1575
|
-
|
1576
|
-
const len = length_1(self);
|
1521
|
+
const out = [];
|
1522
|
+
const len = length_1(self);
|
1577
1523
|
|
1578
|
-
|
1579
|
-
|
1524
|
+
for (let i = 0; i < len; i++) {
|
1525
|
+
const a = self._array[i];
|
1580
1526
|
|
1581
|
-
|
1582
|
-
|
1583
|
-
}
|
1527
|
+
if (!elem_1(tsplus_module_2.asImmutableArray(out), a, E)) {
|
1528
|
+
out.push(a);
|
1584
1529
|
}
|
1530
|
+
}
|
1585
1531
|
|
1586
|
-
|
1587
|
-
};
|
1588
|
-
}
|
1589
|
-
/**
|
1590
|
-
* @tsplus fluent fncts.ImmutableArray uniq
|
1591
|
-
*/
|
1592
|
-
|
1593
|
-
|
1594
|
-
function uniqSelf(self, E) {
|
1595
|
-
return uniq(E)(self);
|
1532
|
+
return tsplus_module_2.asImmutableArray(out);
|
1596
1533
|
}
|
1597
1534
|
/**
|
1598
1535
|
* @tsplus getter fncts.ImmutableArray unprepend
|
@@ -1692,100 +1629,68 @@ function unzip(self) {
|
|
1692
1629
|
function updateAt_(as, i, a) {
|
1693
1630
|
return isOutOfBound_1(as, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeUpdateAt_1(as, i, a));
|
1694
1631
|
}
|
1695
|
-
|
1696
|
-
const wilt_ = A => (self, f) => wiltWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1697
|
-
/**
|
1698
|
-
* @tsplus pipeable fncts.ImmutableArray wilt_
|
1699
|
-
*/
|
1700
|
-
|
1701
|
-
|
1702
|
-
exports.wilt_ = wilt_;
|
1703
|
-
|
1704
|
-
const wilt = A => f => self => wiltWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1705
1632
|
/**
|
1706
1633
|
* @tsplus fluent fncts.ImmutableArray wilt
|
1707
1634
|
*/
|
1708
1635
|
|
1709
1636
|
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
}))), ([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)]));
|
1722
|
-
/**
|
1723
|
-
* @tsplus dataFirst wiltWithIndex_
|
1724
|
-
*/
|
1725
|
-
|
1726
|
-
exports.wiltWithIndex_ = wiltWithIndex_;
|
1727
|
-
|
1728
|
-
const wiltWithIndex = A => f => self => wiltWithIndex_(A)(self, f);
|
1729
|
-
/**
|
1730
|
-
* @tsplus getter fncts.ImmutableArray wiltWithIndex
|
1731
|
-
*/
|
1732
|
-
|
1733
|
-
|
1734
|
-
exports.wiltWithIndex = wiltWithIndex;
|
1735
|
-
|
1736
|
-
const wiltWithIndexSelf_1 = self => A => f => wiltWithIndex_(A)(self, f);
|
1737
|
-
|
1738
|
-
const wiltWithIndexSelf = wiltWithIndexSelf_1;
|
1739
|
-
exports.wiltWithIndexSelf = wiltWithIndexSelf;
|
1740
|
-
|
1741
|
-
const wither_ = A => (self, f) => witherWithIndex_(A)(self, (_, a) => f(a));
|
1742
|
-
/**
|
1743
|
-
* @tsplus dataFirst wither_
|
1744
|
-
*/
|
1745
|
-
|
1746
|
-
|
1747
|
-
exports.wither_ = wither_;
|
1637
|
+
function wilt_(self, f,
|
1638
|
+
/** @tsplus auto */
|
1639
|
+
G) {
|
1640
|
+
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 => {
|
1641
|
+
r[0].push(b1);
|
1642
|
+
return r;
|
1643
|
+
}, b2 => {
|
1644
|
+
r[1].push(b2);
|
1645
|
+
return r;
|
1646
|
+
}), G)), ([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)], G);
|
1647
|
+
}
|
1748
1648
|
|
1749
|
-
|
1649
|
+
function wiltWithIndex_(self, f,
|
1650
|
+
/** @tsplus auto */
|
1651
|
+
G) {
|
1652
|
+
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 => {
|
1653
|
+
r[0].push(b1);
|
1654
|
+
return r;
|
1655
|
+
}, b2 => {
|
1656
|
+
r[1].push(b2);
|
1657
|
+
return r;
|
1658
|
+
}), G)), ([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)], G);
|
1659
|
+
}
|
1750
1660
|
/**
|
1751
1661
|
* @tsplus fluent fncts.ImmutableArray wither
|
1752
1662
|
*/
|
1753
1663
|
|
1754
1664
|
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
}
|
1764
|
-
|
1765
|
-
return bs;
|
1766
|
-
})), bs => tsplus_module_2.asImmutableArray(bs)));
|
1767
|
-
/**
|
1768
|
-
* @tsplus dataFirst witherWithIndex_
|
1769
|
-
*/
|
1770
|
-
|
1771
|
-
exports.witherWithIndex_ = witherWithIndex_;
|
1772
|
-
|
1773
|
-
const witherWithIndex = A => f => self => witherWithIndex_(A)(self, f);
|
1665
|
+
function wither_(self, f,
|
1666
|
+
/** @tsplus auto */
|
1667
|
+
G) {
|
1668
|
+
const G_1 =
|
1669
|
+
/** @tsplus auto */
|
1670
|
+
G;
|
1671
|
+
return witherWithIndex_1(self, (_, a) => f(a), G_1);
|
1672
|
+
}
|
1774
1673
|
/**
|
1775
1674
|
* @tsplus fluent fncts.ImmutableArray witherWithIndex
|
1776
1675
|
*/
|
1777
1676
|
|
1778
1677
|
|
1779
|
-
|
1678
|
+
function witherWithIndex_1(self, f,
|
1679
|
+
/** @tsplus auto */
|
1680
|
+
G) {
|
1681
|
+
return tsplus_module_16.map(foldLeftWithIndex_1(self, G.pure([]), (i, b, a) => tsplus_module_14.zipWith(f(i, a), b, (maybeB, bs) => {
|
1682
|
+
if (tsplus_module_4.isJust(maybeB)) {
|
1683
|
+
bs.push(maybeB.value);
|
1684
|
+
}
|
1780
1685
|
|
1781
|
-
|
1686
|
+
return bs;
|
1687
|
+
}, G)), bs => tsplus_module_2.asImmutableArray(bs), G);
|
1688
|
+
}
|
1782
1689
|
/**
|
1783
1690
|
* @tsplus fluent fncts.ImmutableArray zip
|
1784
1691
|
*/
|
1785
1692
|
|
1786
1693
|
|
1787
|
-
exports.witherWithIndexSelf = witherWithIndexSelf;
|
1788
|
-
|
1789
1694
|
function zip_(self, that) {
|
1790
1695
|
return zipWith_1(self, that, _function.tuple);
|
1791
1696
|
}
|