@fncts/base 0.0.12 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- package/_cjs/collection/Iterable/api/traverseConc.cjs +16 -21
- package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
- package/_cjs/collection/compat/Array/api.cjs +10 -10
- package/_cjs/collection/compat/Array/derivations.cjs +96 -0
- package/_cjs/collection/compat/Array/derivations.cjs.map +1 -0
- package/_cjs/collection/compat/Array.cjs +13 -0
- package/_cjs/collection/compat/Array.cjs.map +1 -1
- package/_cjs/collection/compat/Record/instances.cjs +67 -16
- package/_cjs/collection/compat/Record/instances.cjs.map +1 -1
- package/_cjs/collection/compat.cjs +6 -0
- package/_cjs/collection/compat.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/api.cjs +9 -12
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/definition.cjs +41 -43
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/derivations.cjs +45 -0
- package/_cjs/collection/immutable/Conc/derivations.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc.cjs +13 -0
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/definition.cjs +2 -4
- package/_cjs/collection/immutable/Dictionary/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/api.cjs +26 -29
- package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs +15 -17
- package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api.cjs +142 -159
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs +2 -2
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs +18 -15
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs +41 -0
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs +11 -9
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray.cjs +13 -0
- package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +21 -22
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs +2 -2
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs +3 -9
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs +62 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +8 -2
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs +13 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs.map +1 -1
- package/_cjs/collection/immutable/List/definition.cjs +2 -2
- package/_cjs/collection/immutable/RoseTree/definition.cjs +13 -15
- package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/api.cjs +8 -12
- package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/definition.cjs +11 -13
- package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/internal.cjs +1 -1
- package/_cjs/collection/immutable.cjs +6 -0
- package/_cjs/collection/immutable.cjs.map +1 -0
- package/_cjs/collection/mutable/HashMap.cjs +4 -0
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/mutable.cjs +6 -0
- package/_cjs/collection/mutable.cjs.map +1 -0
- package/_cjs/collection/weak/IterableWeakMap.cjs +51 -2
- package/_cjs/collection/weak/IterableWeakMap.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakSet.cjs +59 -7
- package/_cjs/collection/weak/IterableWeakSet.cjs.map +1 -1
- package/_cjs/collection/weak.cjs +6 -0
- package/_cjs/collection/weak.cjs.map +1 -0
- package/_cjs/collection.cjs +6 -0
- package/_cjs/collection.cjs.map +1 -0
- package/_cjs/control/Eval/api.cjs +9 -3
- package/_cjs/control/Eval/api.cjs.map +1 -1
- package/_cjs/control/Eval/definition.cjs +1 -8
- package/_cjs/control/Eval/definition.cjs.map +1 -1
- package/_cjs/control/Eval/instance.cjs +6 -0
- package/_cjs/control/Eval/instance.cjs.map +1 -1
- package/_cjs/control/Z/api.cjs +16 -14
- package/_cjs/control/Z/api.cjs.map +1 -1
- package/_cjs/control/Z/definition.cjs +8 -14
- package/_cjs/control/Z/definition.cjs.map +1 -1
- package/_cjs/control/Z/instances.cjs +6 -0
- package/_cjs/control/Z/instances.cjs.map +1 -1
- package/_cjs/control/Z/runtime.cjs +17 -13
- package/_cjs/control/Z/runtime.cjs.map +1 -1
- package/_cjs/control.cjs +6 -0
- package/_cjs/control.cjs.map +1 -0
- package/_cjs/data/Cause/api/isEmpty.cjs +2 -0
- package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
- package/_cjs/data/Cause/api/linearize.cjs +2 -0
- package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
- package/_cjs/data/Cause/api.cjs +2 -0
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Const/definition.cjs +0 -7
- package/_cjs/data/Const/definition.cjs.map +1 -1
- package/_cjs/data/Const/instances.cjs +11 -8
- package/_cjs/data/Const/instances.cjs.map +1 -1
- package/_cjs/data/Datum/api.cjs +479 -0
- package/_cjs/data/Datum/api.cjs.map +1 -0
- package/_cjs/data/Datum/definition.cjs +142 -0
- package/_cjs/data/Datum/definition.cjs.map +1 -0
- package/_cjs/data/Datum/instances.cjs +69 -0
- package/_cjs/data/Datum/instances.cjs.map +1 -0
- package/_cjs/data/DatumEither/api.cjs +365 -0
- package/_cjs/data/DatumEither/api.cjs.map +1 -0
- package/_cjs/data/DatumEither/definition.cjs +9 -0
- package/_cjs/data/DatumEither/definition.cjs.map +1 -0
- package/_cjs/data/DecodeError/definition.cjs +16 -4
- package/_cjs/data/DecodeError/definition.cjs.map +1 -1
- package/_cjs/data/DecodeError/instances.cjs +6 -0
- package/_cjs/data/DecodeError/instances.cjs.map +1 -0
- package/_cjs/data/DecodeError.cjs +13 -0
- package/_cjs/data/DecodeError.cjs.map +1 -1
- package/_cjs/data/Decoder/definition.cjs +3 -10
- package/_cjs/data/Decoder/definition.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 +21 -5
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/definition.cjs +4 -11
- package/_cjs/data/Either/definition.cjs.map +1 -1
- package/_cjs/data/Either/instances.cjs +25 -23
- package/_cjs/data/Either/instances.cjs.map +1 -1
- package/_cjs/data/EitherT/api.cjs +106 -0
- package/_cjs/data/EitherT/api.cjs.map +1 -0
- package/_cjs/data/EitherT/definition.cjs +9 -0
- package/_cjs/data/EitherT/definition.cjs.map +1 -0
- package/_cjs/data/Environment/api.cjs +15 -14
- package/_cjs/data/Environment/api.cjs.map +1 -1
- package/_cjs/data/Environment/definition.cjs.map +1 -1
- package/_cjs/data/Identity/api.cjs +3 -1
- package/_cjs/data/Identity/api.cjs.map +1 -1
- package/_cjs/data/Identity/definition.cjs +2 -4
- package/_cjs/data/Identity/definition.cjs.map +1 -1
- package/_cjs/data/Identity/instances.cjs +6 -0
- package/_cjs/data/Identity/instances.cjs.map +1 -1
- package/_cjs/data/Intervals.cjs +292 -0
- package/_cjs/data/Intervals.cjs.map +1 -0
- package/_cjs/data/Maybe/api.cjs +3 -1
- package/_cjs/data/Maybe/api.cjs.map +1 -1
- package/_cjs/data/Maybe/definition.cjs +11 -13
- package/_cjs/data/Maybe/definition.cjs.map +1 -1
- package/_cjs/data/Maybe/instances.cjs +13 -11
- package/_cjs/data/Maybe/instances.cjs.map +1 -1
- package/_cjs/data/Newtype.cjs +3 -5
- package/_cjs/data/Newtype.cjs.map +1 -1
- package/_cjs/data/Patch/api.cjs +2 -0
- package/_cjs/data/Patch/api.cjs.map +1 -1
- package/_cjs/data/Struct/api.cjs +2 -0
- package/_cjs/data/Struct/api.cjs.map +1 -1
- package/_cjs/data/Struct/definition.cjs +2 -4
- package/_cjs/data/Struct/definition.cjs.map +1 -1
- package/_cjs/data/These/definition.cjs +1 -1
- package/_cjs/data/These/definition.cjs.map +1 -1
- package/_cjs/data/Zipped.cjs +55 -0
- package/_cjs/data/Zipped.cjs.map +1 -0
- package/_cjs/data/function/api.cjs +10 -0
- package/_cjs/data/function/api.cjs.map +1 -1
- package/_cjs/data/object/instances.cjs +9 -1
- package/_cjs/data/object/instances.cjs.map +1 -1
- package/_cjs/data/string/api.cjs +1 -1
- package/_cjs/data.cjs +6 -0
- package/_cjs/data.cjs.map +1 -0
- package/_cjs/global.cjs +6 -0
- package/_cjs/global.cjs.map +1 -0
- package/_cjs/index.cjs +6 -0
- package/_cjs/index.cjs.map +1 -0
- package/_cjs/json.cjs +6 -0
- package/_cjs/json.cjs.map +1 -0
- package/_cjs/optics/At/definition.cjs +2 -0
- package/_cjs/optics/At/definition.cjs.map +1 -1
- package/_cjs/optics/Iso/definition.cjs +4 -0
- package/_cjs/optics/Iso/definition.cjs.map +1 -1
- package/_cjs/optics/Lens/definition.cjs +4 -0
- package/_cjs/optics/Lens/definition.cjs.map +1 -1
- package/_cjs/optics/Optional/definition.cjs +5 -5
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Prism/definition.cjs +2 -0
- package/_cjs/optics/Prism/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 +1 -1
- package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
- package/_cjs/optics/Traversal/definition.cjs +7 -3
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- package/_cjs/optics.cjs +6 -0
- package/_cjs/optics.cjs.map +1 -0
- package/_cjs/typeclass/Alt.cjs +0 -7
- package/_cjs/typeclass/Alt.cjs.map +1 -1
- package/_cjs/typeclass/ApplicativeExcept.cjs +9 -35
- package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
- package/_cjs/typeclass/Apply.cjs +39 -66
- package/_cjs/typeclass/Apply.cjs.map +1 -1
- package/_cjs/typeclass/Chain.cjs +6 -28
- package/_cjs/typeclass/Chain.cjs.map +1 -1
- package/_cjs/typeclass/Fail.cjs +0 -10
- package/_cjs/typeclass/Fail.cjs.map +1 -1
- package/_cjs/typeclass/Filterable.cjs +0 -36
- package/_cjs/typeclass/Filterable.cjs.map +1 -1
- package/_cjs/typeclass/Foldable.cjs +4 -34
- package/_cjs/typeclass/Foldable.cjs.map +1 -1
- package/_cjs/typeclass/FoldableWithIndex.cjs +4 -34
- package/_cjs/typeclass/FoldableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Functor.cjs +3 -18
- package/_cjs/typeclass/Functor.cjs.map +1 -1
- package/_cjs/typeclass/Guard/definition.cjs +3 -10
- package/_cjs/typeclass/Guard/definition.cjs.map +1 -1
- package/_cjs/typeclass/HashEq.cjs +2 -0
- package/_cjs/typeclass/HashEq.cjs.map +1 -1
- package/_cjs/typeclass/MonadExcept.cjs +2 -10
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
- package/_cjs/typeclass/Monoid.cjs +2 -0
- package/_cjs/typeclass/Monoid.cjs.map +1 -1
- package/_cjs/typeclass/Nil.cjs +0 -10
- package/_cjs/typeclass/Nil.cjs.map +1 -1
- package/_cjs/typeclass/Ord/definition.cjs +2 -0
- package/_cjs/typeclass/Ord/definition.cjs.map +1 -1
- package/_cjs/typeclass/Ord/instances.cjs +4 -3
- package/_cjs/typeclass/Ord/instances.cjs.map +1 -1
- package/_cjs/typeclass/Pointed.cjs +0 -11
- package/_cjs/typeclass/Pointed.cjs.map +1 -1
- package/_cjs/typeclass/Semialign.cjs +18 -46
- package/_cjs/typeclass/Semialign.cjs.map +1 -1
- package/_cjs/typeclass/Semimonoidal.cjs +0 -11
- package/_cjs/typeclass/Semimonoidal.cjs.map +1 -1
- package/_cjs/typeclass/Showable/show.cjs +12 -12
- package/_cjs/typeclass/Showable/show.cjs.map +1 -1
- package/_cjs/typeclass/Traversable.cjs +7 -26
- package/_cjs/typeclass/Traversable.cjs.map +1 -1
- package/_cjs/typeclass/TraversableWithIndex.cjs +3 -7
- package/_cjs/typeclass/TraversableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Witherable.cjs +3 -45
- package/_cjs/typeclass/Witherable.cjs.map +1 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs +8 -44
- package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
- package/_cjs/util.cjs +6 -0
- package/_cjs/util.cjs.map +1 -0
- package/_mjs/collection/Iterable/api/traverseConc.mjs +16 -21
- package/_mjs/collection/Iterable/api/traverseConc.mjs.map +1 -1
- package/_mjs/collection/compat/Array/api.mjs +10 -10
- package/_mjs/collection/compat/Array/derivations.mjs +70 -0
- package/_mjs/collection/compat/Array/derivations.mjs.map +1 -0
- package/_mjs/collection/compat/Array.mjs +1 -0
- package/_mjs/collection/compat/Array.mjs.map +1 -1
- package/_mjs/collection/compat/Record/instances.mjs +62 -16
- package/_mjs/collection/compat/Record/instances.mjs.map +1 -1
- package/_mjs/collection/compat.mjs +2 -0
- package/_mjs/collection/compat.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/api.mjs +8 -11
- package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs +41 -42
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/derivations.mjs +27 -0
- package/_mjs/collection/immutable/Conc/derivations.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc.mjs +2 -1
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary/definition.mjs +2 -3
- package/_mjs/collection/immutable/Dictionary/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/api.mjs +18 -20
- package/_mjs/collection/immutable/HashMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/definition.mjs +15 -16
- package/_mjs/collection/immutable/HashMap/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/api.mjs +1 -0
- package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +134 -153
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs +2 -2
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs +16 -12
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs +25 -0
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs +9 -8
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray.mjs +1 -0
- package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +19 -19
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs +2 -2
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs +0 -2
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs +39 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +4 -3
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs.map +1 -1
- package/_mjs/collection/immutable/List/definition.mjs +2 -2
- package/_mjs/collection/immutable/RoseTree/definition.mjs +13 -14
- package/_mjs/collection/immutable/RoseTree/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/api.mjs +1 -0
- package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/api.mjs +8 -12
- package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/definition.mjs +11 -12
- package/_mjs/collection/immutable/Vector/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/internal.mjs +1 -1
- package/_mjs/collection/immutable.mjs +2 -0
- package/_mjs/collection/immutable.mjs.map +1 -0
- package/_mjs/collection/mutable/HashMap.mjs +4 -0
- package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/mutable.mjs +2 -0
- package/_mjs/collection/mutable.mjs.map +1 -0
- package/_mjs/collection/weak/IterableWeakMap.mjs +51 -2
- package/_mjs/collection/weak/IterableWeakMap.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakSet.mjs +59 -7
- package/_mjs/collection/weak/IterableWeakSet.mjs.map +1 -1
- package/_mjs/collection/weak.mjs +2 -0
- package/_mjs/collection/weak.mjs.map +1 -0
- package/_mjs/collection.mjs +2 -0
- package/_mjs/collection.mjs.map +1 -0
- package/_mjs/control/Eval/api.mjs +9 -4
- package/_mjs/control/Eval/api.mjs.map +1 -1
- package/_mjs/control/Eval/definition.mjs +1 -2
- package/_mjs/control/Eval/definition.mjs.map +1 -1
- package/_mjs/control/Eval/instance.mjs +1 -0
- package/_mjs/control/Eval/instance.mjs.map +1 -1
- package/_mjs/control/Eval/run.mjs +1 -0
- package/_mjs/control/Eval/run.mjs.map +1 -1
- package/_mjs/control/Z/api.mjs +16 -15
- package/_mjs/control/Z/api.mjs.map +1 -1
- package/_mjs/control/Z/definition.mjs +3 -5
- package/_mjs/control/Z/definition.mjs.map +1 -1
- package/_mjs/control/Z/instances.mjs +1 -0
- package/_mjs/control/Z/instances.mjs.map +1 -1
- package/_mjs/control/Z/runtime.mjs +15 -13
- package/_mjs/control/Z/runtime.mjs.map +1 -1
- package/_mjs/control.mjs +2 -0
- package/_mjs/control.mjs.map +1 -0
- package/_mjs/data/Branded/derivations.mjs +1 -0
- package/_mjs/data/Branded/derivations.mjs.map +1 -1
- package/_mjs/data/Cause/api/isEmpty.mjs +1 -0
- package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -1
- package/_mjs/data/Cause/api/linearize.mjs +1 -0
- package/_mjs/data/Cause/api/linearize.mjs.map +1 -1
- package/_mjs/data/Cause/api.mjs +2 -1
- package/_mjs/data/Cause/api.mjs.map +1 -1
- package/_mjs/data/Const/definition.mjs +0 -3
- package/_mjs/data/Const/definition.mjs.map +1 -1
- package/_mjs/data/Const/instances.mjs +7 -5
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/Datum/api.mjs +404 -0
- package/_mjs/data/Datum/api.mjs.map +1 -0
- package/_mjs/data/Datum/definition.mjs +112 -0
- package/_mjs/data/Datum/definition.mjs.map +1 -0
- package/_mjs/data/Datum/instances.mjs +52 -0
- package/_mjs/data/Datum/instances.mjs.map +1 -0
- package/_mjs/data/DatumEither/api.mjs +290 -0
- package/_mjs/data/DatumEither/api.mjs.map +1 -0
- package/_mjs/data/DatumEither/definition.mjs +2 -0
- package/_mjs/data/DatumEither/definition.mjs.map +1 -0
- package/_mjs/data/DecodeError/definition.mjs +12 -3
- package/_mjs/data/DecodeError/definition.mjs.map +1 -1
- package/_mjs/data/DecodeError/instances.mjs +2 -0
- package/_mjs/data/DecodeError/instances.mjs.map +1 -0
- package/_mjs/data/DecodeError.mjs +1 -0
- package/_mjs/data/DecodeError.mjs.map +1 -1
- package/_mjs/data/Decoder/api.mjs +1 -0
- package/_mjs/data/Decoder/api.mjs.map +1 -1
- package/_mjs/data/Decoder/definition.mjs +0 -2
- package/_mjs/data/Decoder/definition.mjs.map +1 -1
- package/_mjs/data/Either/api/alignWith.mjs +1 -0
- package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
- package/_mjs/data/Either/api.mjs +17 -4
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/definition.mjs +1 -3
- package/_mjs/data/Either/definition.mjs.map +1 -1
- package/_mjs/data/Either/instances.mjs +24 -23
- package/_mjs/data/Either/instances.mjs.map +1 -1
- package/_mjs/data/EitherT/api.mjs +73 -0
- package/_mjs/data/EitherT/api.mjs.map +1 -0
- package/_mjs/data/EitherT/definition.mjs +2 -0
- package/_mjs/data/EitherT/definition.mjs.map +1 -0
- package/_mjs/data/Environment/api.mjs +12 -13
- package/_mjs/data/Environment/api.mjs.map +1 -1
- package/_mjs/data/Environment/definition.mjs.map +1 -1
- package/_mjs/data/Identity/api.mjs +2 -1
- package/_mjs/data/Identity/api.mjs.map +1 -1
- package/_mjs/data/Identity/definition.mjs +2 -3
- package/_mjs/data/Identity/definition.mjs.map +1 -1
- package/_mjs/data/Identity/instances.mjs +1 -0
- package/_mjs/data/Identity/instances.mjs.map +1 -1
- package/_mjs/data/Intervals.mjs +257 -0
- package/_mjs/data/Intervals.mjs.map +1 -0
- package/_mjs/data/Maybe/api.mjs +2 -1
- package/_mjs/data/Maybe/api.mjs.map +1 -1
- package/_mjs/data/Maybe/definition.mjs +8 -10
- package/_mjs/data/Maybe/definition.mjs.map +1 -1
- package/_mjs/data/Maybe/instances.mjs +12 -11
- package/_mjs/data/Maybe/instances.mjs.map +1 -1
- package/_mjs/data/Newtype.mjs +3 -4
- package/_mjs/data/Newtype.mjs.map +1 -1
- package/_mjs/data/Patch/api.mjs +1 -0
- package/_mjs/data/Patch/api.mjs.map +1 -1
- package/_mjs/data/Struct/api.mjs +1 -0
- package/_mjs/data/Struct/api.mjs.map +1 -1
- package/_mjs/data/Struct/definition.mjs +2 -3
- package/_mjs/data/Struct/definition.mjs.map +1 -1
- package/_mjs/data/These/definition.mjs +1 -1
- package/_mjs/data/These/definition.mjs.map +1 -1
- package/_mjs/data/Zipped.mjs +37 -0
- package/_mjs/data/Zipped.mjs.map +1 -0
- package/_mjs/data/function/api.mjs +8 -0
- package/_mjs/data/function/api.mjs.map +1 -1
- package/_mjs/data/object/instances.mjs +7 -1
- package/_mjs/data/object/instances.mjs.map +1 -1
- package/_mjs/data/string/api.mjs +1 -1
- package/_mjs/data.mjs +2 -0
- package/_mjs/data.mjs.map +1 -0
- package/_mjs/global.mjs +2 -0
- package/_mjs/global.mjs.map +1 -0
- package/_mjs/index.mjs +2 -0
- package/_mjs/index.mjs.map +1 -0
- package/_mjs/json.mjs +2 -0
- package/_mjs/json.mjs.map +1 -0
- package/_mjs/optics/At/api.mjs +1 -0
- package/_mjs/optics/At/api.mjs.map +1 -1
- package/_mjs/optics/At/definition.mjs +1 -0
- package/_mjs/optics/At/definition.mjs.map +1 -1
- package/_mjs/optics/Index/api.mjs +1 -0
- package/_mjs/optics/Index/api.mjs.map +1 -1
- package/_mjs/optics/Iso/api.mjs +1 -0
- package/_mjs/optics/Iso/api.mjs.map +1 -1
- package/_mjs/optics/Iso/definition.mjs +2 -0
- package/_mjs/optics/Iso/definition.mjs.map +1 -1
- package/_mjs/optics/Lens/api.mjs +1 -0
- package/_mjs/optics/Lens/api.mjs.map +1 -1
- package/_mjs/optics/Lens/definition.mjs +2 -0
- package/_mjs/optics/Lens/definition.mjs.map +1 -1
- package/_mjs/optics/Optional/api/compose.mjs +1 -0
- package/_mjs/optics/Optional/api/compose.mjs.map +1 -1
- package/_mjs/optics/Optional/definition.mjs +5 -5
- package/_mjs/optics/Optional/definition.mjs.map +1 -1
- package/_mjs/optics/Prism/api/compose.mjs +1 -0
- package/_mjs/optics/Prism/api/compose.mjs.map +1 -1
- package/_mjs/optics/Prism/api/fromNullable.mjs +1 -0
- package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -1
- package/_mjs/optics/Prism/api/just.mjs +1 -0
- package/_mjs/optics/Prism/api/just.mjs.map +1 -1
- package/_mjs/optics/Prism/definition.mjs +1 -0
- package/_mjs/optics/Prism/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs +2 -1
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +2 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
- package/_mjs/optics/Traversal/definition.mjs +5 -3
- package/_mjs/optics/Traversal/definition.mjs.map +1 -1
- package/_mjs/optics.mjs +2 -0
- package/_mjs/optics.mjs.map +1 -0
- package/_mjs/typeclass/Alt.mjs +0 -5
- package/_mjs/typeclass/Alt.mjs.map +1 -1
- package/_mjs/typeclass/ApplicativeExcept.mjs +7 -32
- package/_mjs/typeclass/ApplicativeExcept.mjs.map +1 -1
- package/_mjs/typeclass/Apply.mjs +35 -65
- package/_mjs/typeclass/Apply.mjs.map +1 -1
- package/_mjs/typeclass/Chain.mjs +4 -25
- package/_mjs/typeclass/Chain.mjs.map +1 -1
- package/_mjs/typeclass/Eq/derivations.mjs +1 -0
- package/_mjs/typeclass/Eq/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Fail.mjs +1 -8
- package/_mjs/typeclass/Fail.mjs.map +1 -1
- package/_mjs/typeclass/Filterable.mjs +0 -28
- package/_mjs/typeclass/Filterable.mjs.map +1 -1
- package/_mjs/typeclass/Foldable.mjs +3 -30
- package/_mjs/typeclass/Foldable.mjs.map +1 -1
- package/_mjs/typeclass/FoldableWithIndex.mjs +3 -30
- package/_mjs/typeclass/FoldableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Functor.mjs +3 -16
- package/_mjs/typeclass/Functor.mjs.map +1 -1
- package/_mjs/typeclass/Guard/api.mjs +1 -0
- package/_mjs/typeclass/Guard/api.mjs.map +1 -1
- package/_mjs/typeclass/Guard/definition.mjs +0 -2
- package/_mjs/typeclass/Guard/definition.mjs.map +1 -1
- package/_mjs/typeclass/HashEq.mjs +1 -0
- package/_mjs/typeclass/HashEq.mjs.map +1 -1
- package/_mjs/typeclass/MonadExcept.mjs +2 -9
- package/_mjs/typeclass/MonadExcept.mjs.map +1 -1
- package/_mjs/typeclass/Monoid.mjs +1 -0
- package/_mjs/typeclass/Monoid.mjs.map +1 -1
- package/_mjs/typeclass/Nil.mjs +1 -8
- package/_mjs/typeclass/Nil.mjs.map +1 -1
- package/_mjs/typeclass/Ord/definition.mjs +1 -0
- package/_mjs/typeclass/Ord/definition.mjs.map +1 -1
- package/_mjs/typeclass/Ord/instances.mjs +3 -0
- package/_mjs/typeclass/Ord/instances.mjs.map +1 -1
- package/_mjs/typeclass/Pointed.mjs +0 -9
- package/_mjs/typeclass/Pointed.mjs.map +1 -1
- package/_mjs/typeclass/Semialign.mjs +17 -45
- package/_mjs/typeclass/Semialign.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/api.mjs +1 -0
- package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/derivations.mjs +1 -0
- package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Semimonoidal.mjs +0 -9
- package/_mjs/typeclass/Semimonoidal.mjs.map +1 -1
- package/_mjs/typeclass/Showable/show.mjs +12 -12
- package/_mjs/typeclass/Showable/show.mjs.map +1 -1
- package/_mjs/typeclass/Traversable.mjs +6 -25
- package/_mjs/typeclass/Traversable.mjs.map +1 -1
- package/_mjs/typeclass/TraversableWithIndex.mjs +2 -6
- package/_mjs/typeclass/TraversableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Witherable.mjs +3 -40
- package/_mjs/typeclass/Witherable.mjs.map +1 -1
- package/_mjs/typeclass/WitherableWithIndex.mjs +6 -41
- package/_mjs/typeclass/WitherableWithIndex.mjs.map +1 -1
- package/_mjs/util.mjs +2 -0
- package/_mjs/util.mjs.map +1 -0
- package/_src/collection/Iterable/api/traverseConc.ts +24 -21
- package/_src/collection/compat/Array/api.ts +10 -10
- package/_src/collection/compat/Array/definition.ts +3 -3
- package/_src/collection/compat/Array/derivations.ts +85 -0
- package/_src/collection/compat/Array.ts +1 -0
- package/_src/collection/compat/Record/instances.ts +43 -0
- package/_src/collection/compat.ts +4 -0
- package/_src/collection/immutable/Conc/api.ts +9 -11
- package/_src/collection/immutable/Conc/definition.ts +18 -13
- package/_src/collection/immutable/Conc/derivations.ts +28 -0
- package/_src/collection/immutable/Conc.ts +1 -0
- package/_src/collection/immutable/Dictionary/definition.ts +1 -1
- package/_src/collection/immutable/HashMap/api.ts +20 -17
- package/_src/collection/immutable/HashMap/definition.ts +10 -6
- package/_src/collection/immutable/ImmutableArray/api.ts +62 -119
- package/_src/collection/immutable/ImmutableArray/constructors.ts +2 -2
- package/_src/collection/immutable/ImmutableArray/definition.ts +11 -5
- package/_src/collection/immutable/ImmutableArray/derivations.ts +28 -0
- package/_src/collection/immutable/ImmutableArray/instances.ts +47 -42
- package/_src/collection/immutable/ImmutableArray.ts +1 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +13 -11
- package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +2 -2
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +10 -5
- package/_src/collection/immutable/ImmutableNonEmptyArray/derivations.ts +44 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/instances.ts +24 -25
- package/_src/collection/immutable/ImmutableNonEmptyArray.ts +1 -0
- package/_src/collection/immutable/List/definition.ts +2 -2
- package/_src/collection/immutable/RoseTree/definition.ts +7 -4
- package/_src/collection/immutable/Vector/api.ts +12 -16
- package/_src/collection/immutable/Vector/definition.ts +10 -10
- package/_src/collection/immutable/Vector/internal.ts +1 -1
- package/_src/collection/immutable.ts +12 -0
- package/_src/collection/mutable/HashMap.ts +4 -0
- package/_src/collection/mutable.ts +6 -0
- package/_src/collection/weak/IterableWeakMap.ts +50 -5
- package/_src/collection/weak/IterableWeakSet.ts +57 -9
- package/_src/collection/weak.ts +4 -0
- package/_src/collection.ts +7 -0
- package/_src/control/Eval/api.ts +5 -2
- package/_src/control/Eval/definition.ts +8 -5
- package/_src/control/Eval/instance.ts +7 -7
- package/_src/control/Z/api.ts +40 -52
- package/_src/control/Z/definition.ts +36 -36
- package/_src/control/Z/instances.ts +3 -3
- package/_src/control/Z/runtime.ts +11 -11
- package/_src/control.ts +5 -0
- package/_src/data/Const/definition.ts +9 -17
- package/_src/data/Const/instances.ts +5 -5
- package/_src/data/Datum/api.ts +376 -0
- package/_src/data/Datum/definition.ts +102 -0
- package/_src/data/Datum/instances.ts +34 -0
- package/_src/data/DatumEither/api.ts +348 -0
- package/_src/data/DatumEither/definition.ts +20 -0
- package/_src/data/DecodeError/definition.ts +11 -3
- package/_src/data/DecodeError/instances.ts +0 -0
- package/_src/data/DecodeError.ts +1 -0
- package/_src/data/Decoder/definition.ts +7 -4
- package/_src/data/Either/api.ts +12 -2
- package/_src/data/Either/definition.ts +10 -15
- package/_src/data/Either/instances.ts +6 -6
- package/_src/data/EitherT/api.ts +239 -0
- package/_src/data/EitherT/definition.ts +23 -0
- package/_src/data/Environment/api.ts +8 -6
- package/_src/data/Environment/definition.ts +2 -2
- package/_src/data/Identity/api.ts +2 -2
- package/_src/data/Identity/definition.ts +2 -2
- package/_src/data/Identity/instances.ts +7 -7
- package/_src/data/Intervals.ts +126 -0
- package/_src/data/Maybe/api.ts +2 -2
- package/_src/data/Maybe/definition.ts +8 -5
- package/_src/data/Maybe/instances.ts +10 -10
- package/_src/data/Newtype.ts +32 -11
- package/_src/data/Struct/definition.ts +1 -1
- package/_src/data/Tag/definition.ts +2 -2
- package/_src/data/These/definition.ts +1 -1
- package/_src/data/Zipped.ts +52 -0
- package/_src/data/function/api.ts +8 -0
- package/_src/data/object/instances.ts +11 -1
- package/_src/data/string/api.ts +1 -1
- package/_src/data.ts +35 -0
- package/_src/global.ts +252 -0
- package/_src/index.ts +8 -0
- package/_src/json.ts +5 -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 +11 -11
- package/_src/optics/Traversal/definition.ts +13 -12
- package/_src/optics.ts +12 -0
- package/_src/typeclass/Align.ts +1 -1
- package/_src/typeclass/Alt.ts +24 -54
- package/_src/typeclass/Alternative.ts +1 -1
- package/_src/typeclass/Applicative.ts +6 -1
- package/_src/typeclass/ApplicativeExcept.ts +55 -81
- package/_src/typeclass/Apply.ts +224 -253
- package/_src/typeclass/Chain.ts +71 -98
- package/_src/typeclass/Fail.ts +10 -28
- package/_src/typeclass/Filterable.ts +13 -67
- package/_src/typeclass/FilterableWithIndex.ts +13 -13
- package/_src/typeclass/Foldable.ts +16 -35
- package/_src/typeclass/FoldableWithIndex.ts +14 -37
- package/_src/typeclass/Functor.ts +11 -21
- package/_src/typeclass/FunctorWithIndex.ts +4 -4
- package/_src/typeclass/Guard/definition.ts +1 -3
- package/_src/typeclass/Monad.ts +1 -1
- package/_src/typeclass/MonadExcept.ts +11 -7
- package/_src/typeclass/Nil.ts +10 -27
- package/_src/typeclass/Pointed.ts +11 -30
- package/_src/typeclass/Semialign.ts +285 -253
- package/_src/typeclass/Semimonoidal.ts +23 -54
- package/_src/typeclass/Showable/show.ts +10 -12
- package/_src/typeclass/Traversable.ts +45 -63
- package/_src/typeclass/TraversableWithIndex.ts +37 -34
- package/_src/typeclass/Witherable.ts +28 -115
- package/_src/typeclass/WitherableWithIndex.ts +82 -115
- package/_src/types/extractions.ts +1 -1
- package/_src/util.ts +8 -0
- package/collection/Iterable/api/traverseConc.d.ts +4 -6
- package/collection/compat/Array/api.d.ts +10 -10
- package/collection/compat/Array/definition.d.ts +3 -3
- package/collection/compat/Array/derivations.d.ts +24 -0
- package/collection/compat/Array.d.ts +1 -0
- package/collection/compat/Record/instances.d.ts +12 -0
- package/collection/compat.d.ts +2 -0
- package/collection/immutable/Conc/api.d.ts +4 -6
- package/collection/immutable/Conc/definition.d.ts +24 -20
- package/collection/immutable/Conc/derivations.d.ts +14 -0
- package/collection/immutable/Conc.d.ts +1 -0
- package/collection/immutable/Dictionary/definition.d.ts +1 -1
- package/collection/immutable/HashMap/api.d.ts +13 -13
- package/collection/immutable/HashMap/definition.d.ts +10 -7
- package/collection/immutable/ImmutableArray/api.d.ts +22 -24
- package/collection/immutable/ImmutableArray/constructors.d.ts +2 -2
- package/collection/immutable/ImmutableArray/definition.d.ts +12 -6
- package/collection/immutable/ImmutableArray/derivations.d.ts +14 -0
- package/collection/immutable/ImmutableArray/instances.d.ts +17 -17
- package/collection/immutable/ImmutableArray.d.ts +1 -0
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +6 -5
- package/collection/immutable/ImmutableNonEmptyArray/constructors.d.ts +2 -2
- package/collection/immutable/ImmutableNonEmptyArray/definition.d.ts +9 -5
- package/collection/immutable/ImmutableNonEmptyArray/derivations.d.ts +14 -0
- package/collection/immutable/ImmutableNonEmptyArray/instances.d.ts +10 -10
- package/collection/immutable/ImmutableNonEmptyArray.d.ts +1 -0
- package/collection/immutable/List/definition.d.ts +2 -2
- package/collection/immutable/RoseTree/definition.d.ts +7 -5
- package/collection/immutable/Vector/api.d.ts +4 -4
- package/collection/immutable/Vector/definition.d.ts +9 -10
- package/collection/immutable/Vector/internal.d.ts +1 -1
- package/collection/immutable.d.ts +10 -0
- package/collection/mutable/HashMap.d.ts +1 -0
- package/collection/mutable.d.ts +4 -0
- package/collection/weak/IterableWeakMap.d.ts +9 -3
- package/collection/weak/IterableWeakSet.d.ts +10 -4
- package/collection/weak.d.ts +2 -0
- package/collection.d.ts +5 -0
- package/control/Eval/api.d.ts +6 -1
- package/control/Eval/definition.d.ts +6 -4
- package/control/Eval/instance.d.ts +3 -3
- package/control/Z/api.d.ts +32 -30
- package/control/Z/definition.d.ts +43 -37
- package/control/Z/instances.d.ts +2 -2
- package/control/Z/runtime.d.ts +9 -8
- package/control.d.ts +3 -0
- package/data/Const/definition.d.ts +8 -16
- package/data/Const/instances.d.ts +4 -3
- package/data/Datum/api.d.ts +188 -0
- package/data/Datum/definition.d.ts +75 -0
- package/data/Datum/instances.d.ts +32 -0
- package/data/DatumEither/api.d.ts +169 -0
- package/data/DatumEither/definition.d.ts +21 -0
- package/data/DecodeError/definition.d.ts +6 -0
- package/data/DecodeError/instances.d.ts +1 -0
- package/data/DecodeError.d.ts +1 -0
- package/data/Decoder/definition.d.ts +6 -4
- package/data/Either/api.d.ts +10 -0
- package/data/Either/definition.d.ts +8 -14
- package/data/Either/instances.d.ts +4 -3
- package/data/EitherT/api.d.ts +60 -0
- package/data/EitherT/definition.d.ts +12 -0
- package/data/Environment/api.d.ts +7 -5
- package/data/Environment/definition.d.ts +3 -3
- package/data/Identity/api.d.ts +2 -1
- package/data/Identity/definition.d.ts +2 -2
- package/data/Identity/instances.d.ts +3 -3
- package/data/Intervals.d.ts +53 -0
- package/data/Maybe/api.d.ts +2 -1
- package/data/Maybe/definition.d.ts +10 -5
- package/data/Maybe/instances.d.ts +6 -6
- package/data/Newtype.d.ts +9 -8
- package/data/Struct/definition.d.ts +1 -1
- package/data/Tag/definition.d.ts +2 -2
- package/data/Zipped.d.ts +24 -0
- package/data/function/api.d.ts +6 -0
- package/data/object/instances.d.ts +6 -1
- package/data/string/api.d.ts +1 -1
- package/data.d.ts +33 -0
- package/global.d.ts +237 -0
- package/index.d.ts +8 -0
- package/json.d.ts +3 -0
- package/optics/Traversal/api/fromTraversable.d.ts +1 -1
- package/optics/Traversal/definition.d.ts +2 -4
- package/optics.d.ts +10 -0
- package/package.json +6 -2
- package/typeclass/Align.d.ts +1 -1
- package/typeclass/Alt.d.ts +2 -4
- package/typeclass/Alternative.d.ts +1 -1
- package/typeclass/Applicative.d.ts +2 -1
- package/typeclass/ApplicativeExcept.d.ts +5 -13
- package/typeclass/Apply.d.ts +20 -32
- package/typeclass/Chain.d.ts +5 -13
- package/typeclass/Fail.d.ts +2 -7
- package/typeclass/Filterable.d.ts +7 -31
- package/typeclass/FilterableWithIndex.d.ts +7 -7
- package/typeclass/Foldable.d.ts +6 -19
- package/typeclass/FoldableWithIndex.d.ts +6 -19
- package/typeclass/Functor.d.ts +4 -11
- package/typeclass/FunctorWithIndex.d.ts +2 -2
- package/typeclass/Guard/definition.d.ts +1 -4
- package/typeclass/Monad.d.ts +1 -1
- package/typeclass/MonadExcept.d.ts +3 -4
- package/typeclass/Nil.d.ts +2 -7
- package/typeclass/Pointed.d.ts +2 -7
- package/typeclass/Semialign.d.ts +26 -32
- package/typeclass/Semimonoidal.d.ts +3 -8
- package/typeclass/Showable/show.d.ts +1 -1
- package/typeclass/Traversable.d.ts +21 -12
- package/typeclass/TraversableWithIndex.d.ts +19 -6
- package/typeclass/Witherable.d.ts +5 -19
- package/typeclass/WitherableWithIndex.d.ts +33 -19
- package/types/extractions.d.ts +1 -1
- package/util.d.ts +6 -0
@@ -1,20 +1,21 @@
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/base/data/These/constructors";
|
2
2
|
import * as tsplus_module_2 from "@fncts/base/collection/immutable/ImmutableArray/constructors";
|
3
|
-
import * as tsplus_module_3 from "@fncts/base/
|
4
|
-
import * as tsplus_module_4 from "@fncts/base/collection/immutable/
|
5
|
-
import * as tsplus_module_5 from "@fncts/base/
|
6
|
-
import * as tsplus_module_6 from "@fncts/base/
|
7
|
-
import * as tsplus_module_7 from "@fncts/base/control/Eval/
|
8
|
-
import * as tsplus_module_8 from "@fncts/base/control/Eval/
|
9
|
-
import * as tsplus_module_9 from "@fncts/base/control/Eval/
|
10
|
-
import * as tsplus_module_10 from "@fncts/base/
|
11
|
-
import * as tsplus_module_11 from "@fncts/base/
|
12
|
-
import * as tsplus_module_12 from "@fncts/base/collection/immutable/
|
13
|
-
import * as tsplus_module_13 from "@fncts/base/collection/immutable/Dictionary/
|
14
|
-
import * as tsplus_module_14 from "@fncts/base/
|
15
|
-
import * as tsplus_module_15 from "@fncts/base/typeclass/
|
16
|
-
import * as tsplus_module_16 from "@fncts/base/
|
17
|
-
import * as tsplus_module_17 from "@fncts/base/
|
3
|
+
import * as tsplus_module_3 from "@fncts/base/data/Zipped";
|
4
|
+
import * as tsplus_module_4 from "@fncts/base/collection/immutable/ImmutableArray/api/slice";
|
5
|
+
import * as tsplus_module_5 from "@fncts/base/collection/immutable/ImmutableNonEmptyArray/definition";
|
6
|
+
import * as tsplus_module_6 from "@fncts/base/data/Maybe/definition";
|
7
|
+
import * as tsplus_module_7 from "@fncts/base/control/Eval/constructors";
|
8
|
+
import * as tsplus_module_8 from "@fncts/base/control/Eval/instance";
|
9
|
+
import * as tsplus_module_9 from "@fncts/base/control/Eval/api";
|
10
|
+
import * as tsplus_module_10 from "@fncts/base/control/Eval/run";
|
11
|
+
import * as tsplus_module_11 from "@fncts/base/data/Maybe/constructors";
|
12
|
+
import * as tsplus_module_12 from "@fncts/base/collection/immutable/ImmutableNonEmptyArray/constructors";
|
13
|
+
import * as tsplus_module_13 from "@fncts/base/collection/immutable/Dictionary/definition";
|
14
|
+
import * as tsplus_module_14 from "@fncts/base/collection/immutable/Dictionary/api";
|
15
|
+
import * as tsplus_module_15 from "@fncts/base/typeclass/Ord/instances";
|
16
|
+
import * as tsplus_module_16 from "@fncts/base/typeclass/TraversableWithIndex";
|
17
|
+
import * as tsplus_module_17 from "@fncts/base/data/Either/destructors";
|
18
|
+
import * as tsplus_module_18 from "@fncts/base/typeclass/WitherableWithIndex";
|
18
19
|
export const alignWith_ = alignWith_1;
|
19
20
|
export const append_ = append_1;
|
20
21
|
export const crossWith_ = crossWith_1;
|
@@ -59,7 +60,6 @@ export const unsafeDeleteAt_ = unsafeDeleteAt_1;
|
|
59
60
|
export const unsafeInsertAt_ = unsafeInsertAt_1;
|
60
61
|
export const unsafeModifyAt_ = unsafeModifyAt_1;
|
61
62
|
export const unsafeUpdateAt_ = unsafeUpdateAt_1;
|
62
|
-
export const witherWithIndex_ = witherWithIndex_1;
|
63
63
|
export const zipWith_ = zipWith_1;
|
64
64
|
import { identity, tuple } from "@fncts/base/data/function";
|
65
65
|
import * as P from "@fncts/base/typeclass";
|
@@ -144,14 +144,14 @@ function crossWith_1(self, fb, f) {
|
|
144
144
|
|
145
145
|
|
146
146
|
export function cross_(self, fb) {
|
147
|
-
return crossWith_1(self, fb,
|
147
|
+
return crossWith_1(self, fb, (a, b) => tsplus_module_3.make(a, b));
|
148
148
|
}
|
149
149
|
/**
|
150
150
|
* @tsplus static fncts.ImmutableArrayOps chainRecDepthFirst
|
151
151
|
*/
|
152
152
|
|
153
153
|
export function chainRecDepthFirst(a, f) {
|
154
|
-
const buffer = unsafeAsMutable_1(
|
154
|
+
const buffer = unsafeAsMutable_1(tsplus_module_4.slice_(f(a)));
|
155
155
|
const out = [];
|
156
156
|
|
157
157
|
while (buffer.length > 0) {
|
@@ -262,7 +262,7 @@ export function chop_(as, f) {
|
|
262
262
|
const result = [];
|
263
263
|
let cs = as;
|
264
264
|
|
265
|
-
while (
|
265
|
+
while (tsplus_module_5.isNonEmpty(cs)) {
|
266
266
|
const [b, c] = f(cs);
|
267
267
|
result.push(b);
|
268
268
|
cs = c;
|
@@ -278,10 +278,10 @@ export const chop = f => as => chop_(as, f);
|
|
278
278
|
export function collectWhile_(as, f) {
|
279
279
|
const result = [];
|
280
280
|
|
281
|
-
for (let i = 0; i <
|
281
|
+
for (let i = 0; i < tsplus_module_5.length(as); i++) {
|
282
282
|
const o = f(as._array[i]);
|
283
283
|
|
284
|
-
if (
|
284
|
+
if (tsplus_module_6.isJust(o)) {
|
285
285
|
result.push(o.value);
|
286
286
|
} else {
|
287
287
|
break;
|
@@ -293,14 +293,14 @@ export function collectWhile_(as, f) {
|
|
293
293
|
|
294
294
|
function comprehensionLoop(scope, input, f, g) {
|
295
295
|
if (input.length === 0) {
|
296
|
-
return g(...scope) ?
|
296
|
+
return g(...scope) ? tsplus_module_7.now(tsplus_module_2.make(f(...scope))) : tsplus_module_7.now(tsplus_module_2.empty());
|
297
297
|
} else {
|
298
|
-
return
|
298
|
+
return tsplus_module_9.map_(traverse_1(input[0])(tsplus_module_8.Applicative)(a => comprehensionLoop(append_1(scope, a), input.slice(1), f, g)), rs => flatten_1(rs));
|
299
299
|
}
|
300
300
|
}
|
301
301
|
|
302
302
|
export function comprehension(input, f, g = () => true) {
|
303
|
-
return
|
303
|
+
return tsplus_module_10.run(comprehensionLoop(tsplus_module_2.empty(), input, f, g));
|
304
304
|
}
|
305
305
|
/**
|
306
306
|
* @tsplus fluent fncts.ImmutableArray concat
|
@@ -338,7 +338,7 @@ function concat_1(self, that) {
|
|
338
338
|
|
339
339
|
|
340
340
|
export function deleteAt_(as, i) {
|
341
|
-
return isOutOfBound_1(as, i) ?
|
341
|
+
return isOutOfBound_1(as, i) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeDeleteAt_1(as, i));
|
342
342
|
}
|
343
343
|
/**
|
344
344
|
* @tsplus fluent fncts.ImmutableArray difference
|
@@ -354,28 +354,28 @@ E) {
|
|
354
354
|
*/
|
355
355
|
|
356
356
|
export function drop_(self, n) {
|
357
|
-
return
|
357
|
+
return tsplus_module_4.slice_(self, n);
|
358
358
|
}
|
359
359
|
/**
|
360
360
|
* @tsplus fluent fncts.ImmutableArray dropLast
|
361
361
|
*/
|
362
362
|
|
363
363
|
export function dropLast_(self, n) {
|
364
|
-
return
|
364
|
+
return tsplus_module_4.slice_(self, 0, tsplus_module_5.length(self) - n);
|
365
365
|
}
|
366
366
|
/**
|
367
367
|
* @tsplus fluent fncts.ImmutableArray dropWhile
|
368
368
|
*/
|
369
369
|
|
370
370
|
export function dropWhile_(self, p) {
|
371
|
-
return
|
371
|
+
return tsplus_module_4.slice_(self, spanIndexLeft_1(self, p));
|
372
372
|
}
|
373
373
|
/**
|
374
374
|
* @tsplus fluent fncts.ImmutableArray dropLastWhile
|
375
375
|
*/
|
376
376
|
|
377
377
|
export function dropLastWhile_(as, p) {
|
378
|
-
return
|
378
|
+
return tsplus_module_4.slice_(as, 0, spanIndexRight_1(as, p) + 1);
|
379
379
|
}
|
380
380
|
/**
|
381
381
|
* Test if a value is a member of an array. Takes an `Eq<A>` as a single
|
@@ -390,7 +390,7 @@ function elem_1(as, a,
|
|
390
390
|
E) {
|
391
391
|
const predicate = element => E.equals(element, a);
|
392
392
|
|
393
|
-
const len =
|
393
|
+
const len = tsplus_module_5.length(as);
|
394
394
|
|
395
395
|
for (let i = 0; i < len; i++) {
|
396
396
|
if (predicate(as._array[i])) {
|
@@ -409,7 +409,7 @@ function everyWithIndex_1(self, p) {
|
|
409
409
|
let result = true;
|
410
410
|
let i = 0;
|
411
411
|
|
412
|
-
while (result && i <
|
412
|
+
while (result && i < tsplus_module_5.length(self)) {
|
413
413
|
result = p(i, self._array[i]);
|
414
414
|
i++;
|
415
415
|
}
|
@@ -425,7 +425,7 @@ export function exists_(self, p) {
|
|
425
425
|
let result = false;
|
426
426
|
let i = 0;
|
427
427
|
|
428
|
-
while (!result && i <
|
428
|
+
while (!result && i < tsplus_module_5.length(self)) {
|
429
429
|
result = p(self._array[i]);
|
430
430
|
i++;
|
431
431
|
}
|
@@ -440,7 +440,7 @@ function filter_1(self, p) {
|
|
440
440
|
function filterWithIndex_1(self, p) {
|
441
441
|
const result = [];
|
442
442
|
|
443
|
-
for (let i = 0; i <
|
443
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
444
444
|
const a = self._array[i];
|
445
445
|
|
446
446
|
if (p(i, a)) {
|
@@ -458,10 +458,10 @@ function filterWithIndex_1(self, p) {
|
|
458
458
|
function filterMapWithIndex_1(fa, f) {
|
459
459
|
const result = [];
|
460
460
|
|
461
|
-
for (let i = 0; i <
|
461
|
+
for (let i = 0; i < tsplus_module_5.length(fa); i++) {
|
462
462
|
const maybeB = f(i, unsafeGet_1(fa, i));
|
463
463
|
|
464
|
-
if (
|
464
|
+
if (tsplus_module_6.isJust(maybeB)) {
|
465
465
|
result.push(maybeB.value);
|
466
466
|
}
|
467
467
|
}
|
@@ -484,19 +484,19 @@ export function find_(self, p) {
|
|
484
484
|
*/
|
485
485
|
|
486
486
|
export function findIndex_(as, predicate) {
|
487
|
-
return findMapWithIndex_1(as, (i, a) => predicate(a) ?
|
487
|
+
return findMapWithIndex_1(as, (i, a) => predicate(a) ? tsplus_module_11.just(i) : tsplus_module_11.nothing());
|
488
488
|
}
|
489
489
|
|
490
490
|
function findWithIndex_1(as, p) {
|
491
|
-
const len =
|
491
|
+
const len = tsplus_module_5.length(as);
|
492
492
|
|
493
493
|
for (let i = 0; i < len; i++) {
|
494
494
|
if (p(i, as._array[i])) {
|
495
|
-
return
|
495
|
+
return tsplus_module_11.just(as._array[i]);
|
496
496
|
}
|
497
497
|
}
|
498
498
|
|
499
|
-
return
|
499
|
+
return tsplus_module_11.nothing();
|
500
500
|
}
|
501
501
|
/**
|
502
502
|
* @tsplus fluent fncts.ImmutableArray findMap
|
@@ -511,36 +511,36 @@ export function findMap_(as, f) {
|
|
511
511
|
*/
|
512
512
|
|
513
513
|
function findMapWithIndex_1(as, f) {
|
514
|
-
const len =
|
514
|
+
const len = tsplus_module_5.length(as);
|
515
515
|
|
516
516
|
for (let i = 0; i < len; i++) {
|
517
517
|
const v = f(i, as._array[i]);
|
518
518
|
|
519
|
-
if (
|
519
|
+
if (tsplus_module_6.isJust(v)) {
|
520
520
|
return v;
|
521
521
|
}
|
522
522
|
}
|
523
523
|
|
524
|
-
return
|
524
|
+
return tsplus_module_11.nothing();
|
525
525
|
}
|
526
526
|
|
527
527
|
export function findLast_(as, p) {
|
528
|
-
const len =
|
528
|
+
const len = tsplus_module_5.length(as);
|
529
529
|
|
530
530
|
for (let i = len - 1; i >= 0; i--) {
|
531
531
|
if (p(as._array[i])) {
|
532
|
-
return
|
532
|
+
return tsplus_module_11.just(as._array[i]);
|
533
533
|
}
|
534
534
|
}
|
535
535
|
|
536
|
-
return
|
536
|
+
return tsplus_module_11.nothing();
|
537
537
|
}
|
538
538
|
/**
|
539
539
|
* @tsplus fluent fncts.ImmutableArray findLastIndex
|
540
540
|
*/
|
541
541
|
|
542
542
|
export function findLastIndex_(self, p) {
|
543
|
-
return findLastMapWithIndex_1(self, (i, a) => p(a) ?
|
543
|
+
return findLastMapWithIndex_1(self, (i, a) => p(a) ? tsplus_module_11.just(i) : tsplus_module_11.nothing());
|
544
544
|
}
|
545
545
|
/**
|
546
546
|
* @tsplus fluent fncts.ImmutableArray findLastMap
|
@@ -554,26 +554,26 @@ export function findLastMap_(as, f) {
|
|
554
554
|
*/
|
555
555
|
|
556
556
|
function findLastMapWithIndex_1(as, f) {
|
557
|
-
const len =
|
557
|
+
const len = tsplus_module_5.length(as);
|
558
558
|
|
559
559
|
for (let i = len - 1; i >= 0; i--) {
|
560
560
|
const v = f(i, as._array[i]);
|
561
561
|
|
562
|
-
if (
|
562
|
+
if (tsplus_module_6.isJust(v)) {
|
563
563
|
return v;
|
564
564
|
}
|
565
565
|
}
|
566
566
|
|
567
|
-
return
|
567
|
+
return tsplus_module_11.nothing();
|
568
568
|
}
|
569
569
|
/**
|
570
570
|
* @tsplus fluent fncts.ImmutableArray foldLeftWithIndex
|
571
|
-
* @tsplus fluent fncts.
|
571
|
+
* @tsplus fluent fncts.MutableArray foldLeftWithIndex
|
572
572
|
*/
|
573
573
|
|
574
574
|
|
575
575
|
function foldLeftWithIndex_1(self, b, f) {
|
576
|
-
const len =
|
576
|
+
const len = tsplus_module_5.length(self);
|
577
577
|
let r = b;
|
578
578
|
|
579
579
|
for (let i = 0; i < len; i++) {
|
@@ -584,7 +584,7 @@ function foldLeftWithIndex_1(self, b, f) {
|
|
584
584
|
}
|
585
585
|
/**
|
586
586
|
* @tsplus fluent fncts.ImmutableArray foldLeft
|
587
|
-
* @tsplus fluent fncts.
|
587
|
+
* @tsplus fluent fncts.MutableArray foldLeft
|
588
588
|
*/
|
589
589
|
|
590
590
|
|
@@ -593,7 +593,7 @@ function foldLeft_1(self, b, f) {
|
|
593
593
|
}
|
594
594
|
/**
|
595
595
|
* @tsplus fluent fncts.ImmutableArray foldLeftWhile
|
596
|
-
* @tsplus fluent fncts.
|
596
|
+
* @tsplus fluent fncts.MutableArray foldLeftWhile
|
597
597
|
*/
|
598
598
|
|
599
599
|
|
@@ -602,14 +602,14 @@ export function foldLeftWhile_(self, b, p, f) {
|
|
602
602
|
}
|
603
603
|
/**
|
604
604
|
* @tsplus fluent fncts.ImmutableArray foldLeftWithIndexWhile
|
605
|
-
* @tsplus fluent fncts.
|
605
|
+
* @tsplus fluent fncts.MutableArray foldLeftWithIndexWhile
|
606
606
|
*/
|
607
607
|
|
608
608
|
function foldLeftWithIndexWhile_1(self, b, p, f) {
|
609
609
|
let out = b;
|
610
610
|
let cont = p(out);
|
611
611
|
|
612
|
-
for (let i = 0; cont && i <
|
612
|
+
for (let i = 0; cont && i < tsplus_module_5.length(self); i++) {
|
613
613
|
out = f(i, out, self._array[i]);
|
614
614
|
cont = p(out);
|
615
615
|
}
|
@@ -653,7 +653,7 @@ M) {
|
|
653
653
|
function foldRightWithIndex_1(self, b, f) {
|
654
654
|
let r = b;
|
655
655
|
|
656
|
-
for (let i =
|
656
|
+
for (let i = tsplus_module_5.length(self) - 1; i >= 0; i--) {
|
657
657
|
r = f(i, self._array[i], r);
|
658
658
|
}
|
659
659
|
|
@@ -682,7 +682,7 @@ function foldRightWithIndexWhile_1(self, b, predicate, f) {
|
|
682
682
|
let out = b;
|
683
683
|
let cont = predicate(out);
|
684
684
|
|
685
|
-
for (let i =
|
685
|
+
for (let i = tsplus_module_5.length(self) - 1; cont && i >= 0; i--) {
|
686
686
|
out = f(i, self._array[i], out);
|
687
687
|
cont = predicate(out);
|
688
688
|
}
|
@@ -699,12 +699,12 @@ function forEach_1(self, f) {
|
|
699
699
|
}
|
700
700
|
/**
|
701
701
|
* @tsplus fluent fncts.ImmutableArray get
|
702
|
-
* @tsplus fluent fncts.
|
702
|
+
* @tsplus fluent fncts.MutableArray get
|
703
703
|
*/
|
704
704
|
|
705
705
|
|
706
706
|
function get_1(self, i) {
|
707
|
-
return isOutOfBound_1(self, i) ?
|
707
|
+
return isOutOfBound_1(self, i) ? tsplus_module_11.nothing() : tsplus_module_11.just(self._array[i]);
|
708
708
|
}
|
709
709
|
|
710
710
|
export function group(E) {
|
@@ -713,7 +713,7 @@ export function group(E) {
|
|
713
713
|
const out = [h];
|
714
714
|
let i = 1;
|
715
715
|
|
716
|
-
for (; i <
|
716
|
+
for (; i < tsplus_module_5.length(self); i++) {
|
717
717
|
const a = self._array[i];
|
718
718
|
|
719
719
|
if (E.equals(a, h)) {
|
@@ -723,7 +723,7 @@ export function group(E) {
|
|
723
723
|
}
|
724
724
|
}
|
725
725
|
|
726
|
-
return [
|
726
|
+
return [tsplus_module_12.unsafeAsNonEmptyArray(out), tsplus_module_4.slice_(self, i)];
|
727
727
|
});
|
728
728
|
}
|
729
729
|
/**
|
@@ -740,7 +740,7 @@ export function chopSelf(self, E) {
|
|
740
740
|
export function groupBy_(self, f) {
|
741
741
|
const out = {};
|
742
742
|
|
743
|
-
for (let i = 0; i <
|
743
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
744
744
|
const a = self._array[i];
|
745
745
|
const k = f(a);
|
746
746
|
|
@@ -751,29 +751,29 @@ export function groupBy_(self, f) {
|
|
751
751
|
}
|
752
752
|
}
|
753
753
|
|
754
|
-
return
|
754
|
+
return tsplus_module_14.map_(tsplus_module_13.Dictionary.get(out), tsplus_module_12.from);
|
755
755
|
}
|
756
756
|
/**
|
757
757
|
* @tsplus getter fncts.ImmutableArray head
|
758
758
|
*/
|
759
759
|
|
760
760
|
export function head(self) {
|
761
|
-
return
|
761
|
+
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just(self._array[0]) : tsplus_module_11.nothing();
|
762
762
|
}
|
763
763
|
/**
|
764
764
|
* @tsplus getter fncts.ImmutableArray init
|
765
765
|
*/
|
766
766
|
|
767
767
|
export function init(self) {
|
768
|
-
const len =
|
769
|
-
return len === 0 ?
|
768
|
+
const len = tsplus_module_5.length(self);
|
769
|
+
return len === 0 ? tsplus_module_11.nothing() : tsplus_module_11.just(tsplus_module_4.slice_(self, 0, len - 1));
|
770
770
|
}
|
771
771
|
/**
|
772
772
|
* @tsplus fluent fncts.ImmutableArray insertAt
|
773
773
|
*/
|
774
774
|
|
775
775
|
export function insertAt_(self, i, a) {
|
776
|
-
return isOutOfBound_1(self, i) ?
|
776
|
+
return isOutOfBound_1(self, i) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeInsertAt_1(self, i, a));
|
777
777
|
}
|
778
778
|
/**
|
779
779
|
* @tsplus fluent fncts.ImmutableArray intersection
|
@@ -785,15 +785,15 @@ E) {
|
|
785
785
|
return filter_1(self, a => elem_1(that, a, E));
|
786
786
|
}
|
787
787
|
export function intersperse_(self, a) {
|
788
|
-
const len =
|
789
|
-
return len === 0 ? self : prepend_1(prependAll_1(
|
788
|
+
const len = tsplus_module_5.length(self);
|
789
|
+
return len === 0 ? self : prepend_1(prependAll_1(tsplus_module_4.slice_(self, 1, len), a), unsafeGet_1(self, 0));
|
790
790
|
}
|
791
791
|
/**
|
792
792
|
* @tsplus fluent fncts.ImmutableArray isEmpty
|
793
793
|
*/
|
794
794
|
|
795
795
|
function isEmpty_1(self) {
|
796
|
-
return
|
796
|
+
return tsplus_module_5.length(self) === 0;
|
797
797
|
}
|
798
798
|
/**
|
799
799
|
* @tsplus fluent fncts.ImmutableArray isOutOfBound
|
@@ -801,7 +801,7 @@ function isEmpty_1(self) {
|
|
801
801
|
|
802
802
|
|
803
803
|
function isOutOfBound_1(self, i) {
|
804
|
-
return i < 0 || i >=
|
804
|
+
return i < 0 || i >= tsplus_module_5.length(self);
|
805
805
|
}
|
806
806
|
/**
|
807
807
|
* @tsplus fluent fncts.ImmutableArray join
|
@@ -816,7 +816,7 @@ export function join(self, separator) {
|
|
816
816
|
*/
|
817
817
|
|
818
818
|
export function last(self) {
|
819
|
-
return get_1(self,
|
819
|
+
return get_1(self, tsplus_module_5.length(self) - 1);
|
820
820
|
}
|
821
821
|
/**
|
822
822
|
* @tsplus getter fncts.ImmutableArray length
|
@@ -832,7 +832,7 @@ export function length(self) {
|
|
832
832
|
export function lefts(self) {
|
833
833
|
const ls = [];
|
834
834
|
|
835
|
-
for (let i = 0; i <
|
835
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
836
836
|
const a = self._array[i];
|
837
837
|
void 0;
|
838
838
|
|
@@ -858,10 +858,10 @@ function map_1(self, f) {
|
|
858
858
|
|
859
859
|
|
860
860
|
export function mapAccum_(self, s, f) {
|
861
|
-
const bs = Array(
|
861
|
+
const bs = Array(tsplus_module_5.length(self));
|
862
862
|
let state = s;
|
863
863
|
|
864
|
-
for (let i = 0; i <
|
864
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
865
865
|
const result = f(state, self._array[i]);
|
866
866
|
bs[i] = result[0];
|
867
867
|
state = result[1];
|
@@ -889,7 +889,7 @@ function mapWithIndex_1(self, f) {
|
|
889
889
|
|
890
890
|
|
891
891
|
export function modifyAt_(self, i, f) {
|
892
|
-
return isOutOfBound_1(self, i) ?
|
892
|
+
return isOutOfBound_1(self, i) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeModifyAt_1(self, i, f));
|
893
893
|
}
|
894
894
|
/**
|
895
895
|
* @tsplus fluent fncts.ImmutableArray mutate
|
@@ -906,14 +906,14 @@ function mutate_1(self, f) {
|
|
906
906
|
|
907
907
|
|
908
908
|
function mutableClone_1(self) {
|
909
|
-
return
|
909
|
+
return tsplus_module_4.slice_(self, 0)._array;
|
910
910
|
}
|
911
911
|
|
912
912
|
function partitionWithIndex_1(self, p) {
|
913
913
|
const left = [];
|
914
914
|
const right = [];
|
915
915
|
|
916
|
-
for (let i = 0; i <
|
916
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
917
917
|
const a = self._array[i];
|
918
918
|
|
919
919
|
if (p(i, a)) {
|
@@ -937,7 +937,7 @@ function partitionMapWithIndex_1(self, f) {
|
|
937
937
|
const left = [];
|
938
938
|
const right = [];
|
939
939
|
|
940
|
-
for (let i = 0; i <
|
940
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
941
941
|
const ea = f(i, self._array[i]);
|
942
942
|
void 0;
|
943
943
|
|
@@ -971,7 +971,7 @@ export function partitionMap_(self, f) {
|
|
971
971
|
*/
|
972
972
|
|
973
973
|
function prepend_1(self, head) {
|
974
|
-
const len =
|
974
|
+
const len = tsplus_module_5.length(self);
|
975
975
|
const out = Array(len + 1);
|
976
976
|
out[0] = head;
|
977
977
|
|
@@ -983,14 +983,14 @@ function prepend_1(self, head) {
|
|
983
983
|
}
|
984
984
|
/**
|
985
985
|
* @tsplus fluent fncts.ImmutableArray prependAll
|
986
|
-
* @tsplus fluent fncts.
|
986
|
+
* @tsplus fluent fncts.MutableArray prependAll
|
987
987
|
*/
|
988
988
|
|
989
989
|
|
990
990
|
function prependAll_1(self, a) {
|
991
991
|
const out = [];
|
992
992
|
|
993
|
-
for (let i = 0; i <
|
993
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
994
994
|
out.push(a, self._array[i]);
|
995
995
|
}
|
996
996
|
|
@@ -1004,12 +1004,12 @@ function prependAll_1(self, a) {
|
|
1004
1004
|
export function reverse(self) {
|
1005
1005
|
if (isEmpty_1(self)) {
|
1006
1006
|
return self;
|
1007
|
-
} else if (
|
1007
|
+
} else if (tsplus_module_5.length(self) === 1) {
|
1008
1008
|
return tsplus_module_2.make(self._array[0]);
|
1009
1009
|
} else {
|
1010
|
-
const out = Array(
|
1010
|
+
const out = Array(tsplus_module_5.length(self));
|
1011
1011
|
|
1012
|
-
for (let j = 0, i =
|
1012
|
+
for (let j = 0, i = tsplus_module_5.length(self) - 1; i >= 0; i--, j++) {
|
1013
1013
|
out[j] = self._array[i];
|
1014
1014
|
}
|
1015
1015
|
|
@@ -1023,7 +1023,7 @@ export function reverse(self) {
|
|
1023
1023
|
export function rights(self) {
|
1024
1024
|
const rs = [];
|
1025
1025
|
|
1026
|
-
for (let i = 0; i <
|
1026
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
1027
1027
|
const a = self._array[i];
|
1028
1028
|
void 0;
|
1029
1029
|
|
@@ -1041,14 +1041,14 @@ export function rights(self) {
|
|
1041
1041
|
*/
|
1042
1042
|
|
1043
1043
|
function rotate_1(self, n) {
|
1044
|
-
const len =
|
1044
|
+
const len = tsplus_module_5.length(self);
|
1045
1045
|
|
1046
1046
|
if (n === 0 || len <= 1 || len === Math.abs(n)) {
|
1047
1047
|
return self;
|
1048
1048
|
} else if (n < 0) {
|
1049
1049
|
return rotate_1(self, len + n);
|
1050
1050
|
} else {
|
1051
|
-
return concat_1(
|
1051
|
+
return concat_1(tsplus_module_4.slice_(self, -n), tsplus_module_4.slice_(self, 0, len - n));
|
1052
1052
|
}
|
1053
1053
|
}
|
1054
1054
|
/**
|
@@ -1057,7 +1057,7 @@ function rotate_1(self, n) {
|
|
1057
1057
|
|
1058
1058
|
|
1059
1059
|
export function scanLeft_(self, b, f) {
|
1060
|
-
const l =
|
1060
|
+
const l = tsplus_module_5.length(self);
|
1061
1061
|
const r = Array(l + 1);
|
1062
1062
|
r[0] = b;
|
1063
1063
|
|
@@ -1072,7 +1072,7 @@ export function scanLeft_(self, b, f) {
|
|
1072
1072
|
*/
|
1073
1073
|
|
1074
1074
|
export function scanRight_(self, b, f) {
|
1075
|
-
const l =
|
1075
|
+
const l = tsplus_module_5.length(self);
|
1076
1076
|
const r = Array(l + 1);
|
1077
1077
|
r[l] = b;
|
1078
1078
|
|
@@ -1089,7 +1089,7 @@ export function scanRight_(self, b, f) {
|
|
1089
1089
|
function sort_1(self,
|
1090
1090
|
/** @tsplus auto */
|
1091
1091
|
O) {
|
1092
|
-
return isEmpty_1(self) ||
|
1092
|
+
return isEmpty_1(self) || tsplus_module_5.length(self) === 1 ? self : tsplus_module_2.asImmutableArray(self._array.slice().sort(O.compare));
|
1093
1093
|
}
|
1094
1094
|
/**
|
1095
1095
|
* @tsplus fluent fncts.ImmutableArray sortBy
|
@@ -1097,7 +1097,7 @@ O) {
|
|
1097
1097
|
|
1098
1098
|
|
1099
1099
|
export function sortBy(self, Os) {
|
1100
|
-
return sort_1(self, fold_1(Os,
|
1100
|
+
return sort_1(self, fold_1(Os, tsplus_module_15.getMonoid()));
|
1101
1101
|
}
|
1102
1102
|
export function spanLeft_(self, p) {
|
1103
1103
|
const i = spanIndexLeft_1(self, p);
|
@@ -1107,7 +1107,7 @@ export function spanLeft_(self, p) {
|
|
1107
1107
|
init[j] = self._array[j];
|
1108
1108
|
}
|
1109
1109
|
|
1110
|
-
const l =
|
1110
|
+
const l = tsplus_module_5.length(self);
|
1111
1111
|
const rest = Array(l - i);
|
1112
1112
|
|
1113
1113
|
for (let j = i; j < l; j++) {
|
@@ -1118,7 +1118,7 @@ export function spanLeft_(self, p) {
|
|
1118
1118
|
}
|
1119
1119
|
export function spanRight_(self, p) {
|
1120
1120
|
const i = spanIndexRight_1(self, p);
|
1121
|
-
const l =
|
1121
|
+
const l = tsplus_module_5.length(self);
|
1122
1122
|
const tail = Array(l - i - 1);
|
1123
1123
|
|
1124
1124
|
for (let j = l - 1; j > i; j--) {
|
@@ -1138,7 +1138,7 @@ export function spanRight_(self, p) {
|
|
1138
1138
|
*/
|
1139
1139
|
|
1140
1140
|
function spanIndexLeft_1(self, p) {
|
1141
|
-
const l =
|
1141
|
+
const l = tsplus_module_5.length(self);
|
1142
1142
|
let i = 0;
|
1143
1143
|
|
1144
1144
|
for (; i < l; i++) {
|
@@ -1155,7 +1155,7 @@ function spanIndexLeft_1(self, p) {
|
|
1155
1155
|
|
1156
1156
|
|
1157
1157
|
function spanIndexRight_1(as, predicate) {
|
1158
|
-
let i =
|
1158
|
+
let i = tsplus_module_5.length(as) - 1;
|
1159
1159
|
|
1160
1160
|
for (; i >= 0; i--) {
|
1161
1161
|
if (!predicate(as._array[i])) {
|
@@ -1171,21 +1171,21 @@ function spanIndexRight_1(as, predicate) {
|
|
1171
1171
|
|
1172
1172
|
|
1173
1173
|
export function tail(self) {
|
1174
|
-
return
|
1174
|
+
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just(tsplus_module_4.slice_(self, 1)) : tsplus_module_11.nothing();
|
1175
1175
|
}
|
1176
1176
|
/**
|
1177
1177
|
* @tsplus fluent fncts.ImmutableArray take
|
1178
1178
|
*/
|
1179
1179
|
|
1180
1180
|
export function take_(self, n) {
|
1181
|
-
return
|
1181
|
+
return tsplus_module_4.slice_(self, 0, n);
|
1182
1182
|
}
|
1183
1183
|
/**
|
1184
1184
|
* @tsplus fluent fncts.ImmutableArray takeLast
|
1185
1185
|
*/
|
1186
1186
|
|
1187
1187
|
export function takeLast_(as, n) {
|
1188
|
-
return isEmpty_1(as) ? tsplus_module_2.empty() :
|
1188
|
+
return isEmpty_1(as) ? tsplus_module_2.empty() : tsplus_module_4.slice_(as, -n);
|
1189
1189
|
}
|
1190
1190
|
export function takeWhile_(self, p) {
|
1191
1191
|
const i = spanIndexLeft_1(self, p);
|
@@ -1198,17 +1198,16 @@ export function takeWhile_(self, p) {
|
|
1198
1198
|
return tsplus_module_2.asImmutableArray(init);
|
1199
1199
|
}
|
1200
1200
|
/**
|
1201
|
-
* @tsplus
|
1201
|
+
* @tsplus getter fncts.ImmutableArray traverseWithIndex
|
1202
1202
|
*/
|
1203
1203
|
|
1204
|
-
const traverseWithIndex_1 = (ta
|
1205
|
-
|
1204
|
+
const traverseWithIndex_1 = /*#__PURE__*/tsplus_module_16.mkTraverseWithIndex_()(() => ta => G => f => foldLeftWithIndex_1(ta, G.pure(tsplus_module_2.empty()), (i, fbs, a) => G.zipWith(fbs, f(i, a), (bs, b) => append_1(bs, b))));
|
1206
1205
|
export const traverseWithIndex_ = traverseWithIndex_1;
|
1207
1206
|
/**
|
1208
|
-
* @tsplus
|
1207
|
+
* @tsplus getter fncts.ImmutableArray traverse
|
1209
1208
|
*/
|
1210
1209
|
|
1211
|
-
const traverse_1 =
|
1210
|
+
const traverse_1 = self => G => f => traverseWithIndex_1(self)(G)((_, a) => f(a));
|
1212
1211
|
|
1213
1212
|
export const traverse_ = traverse_1;
|
1214
1213
|
/**
|
@@ -1227,12 +1226,12 @@ E) {
|
|
1227
1226
|
export function uniq(self,
|
1228
1227
|
/** @tsplus auto */
|
1229
1228
|
E) {
|
1230
|
-
if (
|
1229
|
+
if (tsplus_module_5.length(self) === 1) {
|
1231
1230
|
return self;
|
1232
1231
|
}
|
1233
1232
|
|
1234
1233
|
const out = [];
|
1235
|
-
const len =
|
1234
|
+
const len = tsplus_module_5.length(self);
|
1236
1235
|
|
1237
1236
|
for (let i = 0; i < len; i++) {
|
1238
1237
|
const a = self._array[i];
|
@@ -1249,7 +1248,7 @@ E) {
|
|
1249
1248
|
*/
|
1250
1249
|
|
1251
1250
|
export function unprepend(self) {
|
1252
|
-
return
|
1251
|
+
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just([unsafeGet_1(self, 0), tsplus_module_4.slice_(self, 1)]) : tsplus_module_11.nothing();
|
1253
1252
|
}
|
1254
1253
|
/**
|
1255
1254
|
* @tsplus index fncts.ImmutableArray
|
@@ -1322,10 +1321,10 @@ function unsafeUpdateAt_1(as, i, a) {
|
|
1322
1321
|
|
1323
1322
|
|
1324
1323
|
export function unzip(self) {
|
1325
|
-
const fa = Array(
|
1326
|
-
const fb = Array(
|
1324
|
+
const fa = Array(tsplus_module_5.length(self));
|
1325
|
+
const fb = Array(tsplus_module_5.length(self));
|
1327
1326
|
|
1328
|
-
for (let i = 0; i <
|
1327
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
1329
1328
|
fa[i] = self._array[i][0];
|
1330
1329
|
fb[i] = self._array[i][1];
|
1331
1330
|
}
|
@@ -1337,65 +1336,47 @@ export function unzip(self) {
|
|
1337
1336
|
*/
|
1338
1337
|
|
1339
1338
|
export function updateAt_(as, i, a) {
|
1340
|
-
return isOutOfBound_1(as, i) ?
|
1339
|
+
return isOutOfBound_1(as, i) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeUpdateAt_1(as, i, a));
|
1341
1340
|
}
|
1342
1341
|
/**
|
1343
|
-
* @tsplus
|
1342
|
+
* @tsplus getter fncts.ImmutableArray wiltWithIndex
|
1344
1343
|
*/
|
1345
1344
|
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
return r;
|
1355
|
-
}), G)), ([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)], G);
|
1356
|
-
}
|
1357
|
-
export function wiltWithIndex_(self, f,
|
1358
|
-
/** @tsplus auto */
|
1359
|
-
G) {
|
1360
|
-
return tsplus_module_17.map(foldLeftWithIndex_1(self, G.pure([[], []]), (i, fbs, a) => tsplus_module_15.zipWith(f(i, a), fbs, (eb, r) => tsplus_module_16.match_(eb, b1 => {
|
1361
|
-
r[0].push(b1);
|
1362
|
-
return r;
|
1363
|
-
}, b2 => {
|
1364
|
-
r[1].push(b2);
|
1365
|
-
return r;
|
1366
|
-
}), G)), ([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)], G);
|
1367
|
-
}
|
1345
|
+
const wiltWithIndex_1 = /*#__PURE__*/tsplus_module_18.makeWiltWithIndex()(_ => self => G => f => G.map(foldLeftWithIndex_1(self, G.pure([[], []]), (i, fbs, a) => G.zipWith(f(i, a), fbs, (eb, r) => tsplus_module_17.match_(eb, b1 => {
|
1346
|
+
r[0].push(b1);
|
1347
|
+
return r;
|
1348
|
+
}, b2 => {
|
1349
|
+
r[1].push(b2);
|
1350
|
+
return r;
|
1351
|
+
}))), ([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)]));
|
1352
|
+
export const wiltWithIndex = wiltWithIndex_1;
|
1368
1353
|
/**
|
1369
|
-
* @tsplus
|
1354
|
+
* @tsplus getter fncts.ImmutableArray wilt
|
1370
1355
|
*/
|
1371
1356
|
|
1372
|
-
export
|
1373
|
-
/** @tsplus auto */
|
1374
|
-
G) {
|
1375
|
-
const G_1 =
|
1376
|
-
/** @tsplus auto */
|
1377
|
-
G;
|
1378
|
-
return witherWithIndex_1(self, (_, a) => f(a), G_1);
|
1379
|
-
}
|
1357
|
+
export const wilt = self => G => f => wiltWithIndex_1(self)(G)((_, a) => f(a));
|
1380
1358
|
/**
|
1381
|
-
* @tsplus
|
1359
|
+
* @tsplus getter fncts.ImmutableArray witherWithIndex
|
1382
1360
|
*/
|
1383
1361
|
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
return tsplus_module_17.map(foldLeftWithIndex_1(self, G.pure([]), (i, b, a) => tsplus_module_15.zipWith(f(i, a), b, (maybeB, bs) => {
|
1388
|
-
if (tsplus_module_5.isJust(maybeB)) {
|
1362
|
+
const witherWithIndex_1 = /*#__PURE__*/tsplus_module_18.makeWitherWithIndex()(_ => self => G => f => {
|
1363
|
+
return G.map(foldLeftWithIndex_1(self, G.pure([]), (i, b, a) => G.zipWith(f(i, a), b, (maybeB, bs) => {
|
1364
|
+
if (tsplus_module_6.isJust(maybeB)) {
|
1389
1365
|
bs.push(maybeB.value);
|
1390
1366
|
}
|
1391
1367
|
|
1392
1368
|
return bs;
|
1393
|
-
}
|
1394
|
-
}
|
1369
|
+
})), bs => tsplus_module_2.asImmutableArray(bs));
|
1370
|
+
});
|
1371
|
+
export const witherWithIndex = witherWithIndex_1;
|
1395
1372
|
/**
|
1396
|
-
* @tsplus
|
1373
|
+
* @tsplus getter fncts.ImmutableArray wither
|
1397
1374
|
*/
|
1398
1375
|
|
1376
|
+
export const wither = self => G => f => witherWithIndex_1(self)(G)((_, a) => f(a));
|
1377
|
+
/**
|
1378
|
+
* @tsplus fluent fncts.ImmutableArray zip
|
1379
|
+
*/
|
1399
1380
|
|
1400
1381
|
export function zip_(self, that) {
|
1401
1382
|
return zipWith_1(self, that, tuple);
|
@@ -1405,7 +1386,7 @@ export function zip_(self, that) {
|
|
1405
1386
|
*/
|
1406
1387
|
|
1407
1388
|
function zipWith_1(self, fb, f) {
|
1408
|
-
const len = Math.min(
|
1389
|
+
const len = Math.min(tsplus_module_5.length(self), tsplus_module_5.length(fb));
|
1409
1390
|
const fc = Array(len);
|
1410
1391
|
|
1411
1392
|
for (let i = 0; i < len; i++) {
|