@fncts/base 0.0.20 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/collection/Iterable/api/traverseConc.cjs +8 -19
- package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
- package/_cjs/collection/Iterable/api.cjs +500 -610
- package/_cjs/collection/Iterable/api.cjs.map +1 -1
- package/_cjs/collection/Iterable/constructors.cjs +7 -25
- package/_cjs/collection/Iterable/constructors.cjs.map +1 -1
- package/_cjs/collection/Iterable/definition.cjs.map +1 -1
- package/_cjs/collection/Iterable.cjs +0 -6
- package/_cjs/collection/Iterable.cjs.map +1 -1
- package/_cjs/collection/compat/Array/api.cjs +17 -26
- package/_cjs/collection/compat/Array/api.cjs.map +1 -1
- package/_cjs/collection/compat/Array/definition.cjs.map +1 -1
- package/_cjs/collection/compat/Array.cjs +0 -17
- package/_cjs/collection/compat/Array.cjs.map +1 -1
- package/_cjs/collection/compat/ArrayLike/api.cjs +4 -13
- package/_cjs/collection/compat/ArrayLike/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api/empty.cjs +0 -2
- package/_cjs/collection/immutable/Conc/api/empty.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs +1 -9
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api/replicate.cjs +0 -4
- package/_cjs/collection/immutable/Conc/api/replicate.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api.cjs +801 -1039
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/constructors.cjs +0 -14
- package/_cjs/collection/immutable/Conc/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/definition.cjs +76 -273
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs +0 -25
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/api.cjs +57 -70
- package/_cjs/collection/immutable/Dictionary/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/definition.cjs +0 -4
- package/_cjs/collection/immutable/Dictionary/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary.cjs +28 -0
- package/_cjs/collection/immutable/Dictionary.cjs.map +1 -0
- package/_cjs/collection/immutable/HashMap/api.cjs +371 -432
- package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs +20 -43
- package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/internal.cjs +3 -88
- package/_cjs/collection/immutable/HashMap/internal.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap.cjs +0 -4
- package/_cjs/collection/immutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/api.cjs +283 -339
- package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/definition.cjs +18 -92
- package/_cjs/collection/immutable/HashSet/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet.cjs +0 -4
- package/_cjs/collection/immutable/HashSet.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs +6 -9
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs +6 -8
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs +6 -8
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs +14 -19
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api.cjs +939 -1138
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs +0 -18
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs +4 -21
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs +49 -63
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray.cjs +0 -29
- package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +335 -420
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs +0 -24
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs +0 -9
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs +2 -19
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +24 -33
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs +0 -23
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api/foldLeft.cjs +12 -16
- package/_cjs/collection/immutable/List/api/foldLeft.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api/unsafeTail.cjs +0 -6
- package/_cjs/collection/immutable/List/api/unsafeTail.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api.cjs +167 -239
- package/_cjs/collection/immutable/List/api.cjs.map +1 -1
- package/_cjs/collection/immutable/List/constructors.cjs +1 -19
- package/_cjs/collection/immutable/List/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/List/definition.cjs +2 -25
- package/_cjs/collection/immutable/List/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/List.cjs +0 -10
- package/_cjs/collection/immutable/List.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/api.cjs +87 -118
- package/_cjs/collection/immutable/Queue/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/constructors.cjs +0 -8
- package/_cjs/collection/immutable/Queue/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/definition.cjs +3 -13
- package/_cjs/collection/immutable/Queue/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/guards.cjs +2 -6
- package/_cjs/collection/immutable/Queue/guards.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue.cjs +0 -8
- package/_cjs/collection/immutable/Queue.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/api.cjs +76 -118
- package/_cjs/collection/immutable/RoseTree/api.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/definition.cjs +4 -19
- package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree.cjs +0 -4
- package/_cjs/collection/immutable/RoseTree.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/api.cjs +439 -536
- package/_cjs/collection/immutable/SortedMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/definition.cjs +4 -6
- package/_cjs/collection/immutable/SortedMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/internal.cjs +55 -226
- package/_cjs/collection/immutable/SortedMap/internal.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/iterator.cjs +16 -107
- package/_cjs/collection/immutable/SortedMap/iterator.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/node.cjs +0 -3
- package/_cjs/collection/immutable/SortedMap/node.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap.cjs +0 -10
- package/_cjs/collection/immutable/SortedMap.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/api.cjs +751 -885
- package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/definition.cjs +27 -50
- package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/internal.cjs +79 -398
- package/_cjs/collection/immutable/Vector/internal.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector.cjs +0 -4
- package/_cjs/collection/immutable/Vector.cjs.map +1 -1
- package/_cjs/collection/mutable/HashMap.cjs +10 -89
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/mutable/HashSet.cjs +6 -67
- package/_cjs/collection/mutable/HashSet.cjs.map +1 -1
- package/_cjs/collection/mutable/ListBuffer.cjs +3 -35
- package/_cjs/collection/mutable/ListBuffer.cjs.map +1 -1
- package/_cjs/collection/mutable/internal.cjs +0 -8
- package/_cjs/collection/mutable/internal.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakMap.cjs +6 -32
- package/_cjs/collection/weak/IterableWeakMap.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakSet.cjs +6 -28
- package/_cjs/collection/weak/IterableWeakSet.cjs.map +1 -1
- package/_cjs/control/Eval/api/sequenceArray.cjs +0 -5
- package/_cjs/control/Eval/api/sequenceArray.cjs.map +1 -1
- package/_cjs/control/Eval/api.cjs +56 -76
- package/_cjs/control/Eval/api.cjs.map +1 -1
- package/_cjs/control/Eval/constructors.cjs +0 -9
- package/_cjs/control/Eval/constructors.cjs.map +1 -1
- package/_cjs/control/Eval/definition.cjs +5 -23
- package/_cjs/control/Eval/definition.cjs.map +1 -1
- package/_cjs/control/Eval/instance.cjs +6 -13
- package/_cjs/control/Eval/instance.cjs.map +1 -1
- package/_cjs/control/Eval/run.cjs +5 -28
- package/_cjs/control/Eval/run.cjs.map +1 -1
- package/_cjs/control/Eval.cjs +0 -10
- package/_cjs/control/Eval.cjs.map +1 -1
- package/_cjs/control/LazyValue.cjs +0 -6
- package/_cjs/control/LazyValue.cjs.map +1 -1
- package/_cjs/control/Z/api.cjs +241 -306
- package/_cjs/control/Z/api.cjs.map +1 -1
- package/_cjs/control/Z/definition.cjs +13 -84
- package/_cjs/control/Z/definition.cjs.map +1 -1
- package/_cjs/control/Z/instances.cjs +3 -8
- package/_cjs/control/Z/instances.cjs.map +1 -1
- package/_cjs/control/Z/runtime.cjs +206 -290
- package/_cjs/control/Z/runtime.cjs.map +1 -1
- package/_cjs/control/Z.cjs +0 -8
- package/_cjs/control/Z.cjs.map +1 -1
- package/_cjs/data/Branded/definition.cjs +0 -5
- package/_cjs/data/Branded/definition.cjs.map +1 -1
- package/_cjs/data/Branded.cjs +0 -15
- package/_cjs/data/Branded.cjs.map +1 -1
- package/_cjs/data/CaseClass.cjs +13 -45
- package/_cjs/data/CaseClass.cjs.map +1 -1
- package/_cjs/data/Cause/api/fold.cjs +31 -75
- package/_cjs/data/Cause/api/fold.cjs.map +1 -1
- package/_cjs/data/Cause/api/isEmpty.cjs +7 -33
- package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
- package/_cjs/data/Cause/api/linearize.cjs +9 -16
- package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
- package/_cjs/data/Cause/api/prettyPrint.cjs +1 -14
- package/_cjs/data/Cause/api/prettyPrint.cjs.map +1 -1
- package/_cjs/data/Cause/api/unified.cjs +14 -54
- package/_cjs/data/Cause/api/unified.cjs.map +1 -1
- package/_cjs/data/Cause/api.cjs +221 -543
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Cause/definition.cjs +63 -300
- package/_cjs/data/Cause/definition.cjs.map +1 -1
- package/_cjs/data/Cause.cjs +0 -14
- package/_cjs/data/Cause.cjs.map +1 -1
- package/_cjs/data/Const/api.cjs +8 -10
- package/_cjs/data/Const/api.cjs.map +1 -1
- package/_cjs/data/Const/definition.cjs +0 -3
- package/_cjs/data/Const/definition.cjs.map +1 -1
- package/_cjs/data/Const/instances.cjs +6 -14
- package/_cjs/data/Const/instances.cjs.map +1 -1
- package/_cjs/data/Const.cjs +0 -6
- package/_cjs/data/Const.cjs.map +1 -1
- package/_cjs/data/Datum/api.cjs +200 -279
- package/_cjs/data/Datum/api.cjs.map +1 -1
- package/_cjs/data/Datum/definition.cjs +10 -50
- package/_cjs/data/Datum/definition.cjs.map +1 -1
- package/_cjs/data/Datum/instances.cjs +0 -9
- package/_cjs/data/Datum/instances.cjs.map +1 -1
- package/_cjs/data/DatumEither/api.cjs +161 -224
- package/_cjs/data/DatumEither/api.cjs.map +1 -1
- package/_cjs/data/DatumEither/definition.cjs.map +1 -1
- package/_cjs/data/DecodeError/definition.cjs +15 -96
- package/_cjs/data/DecodeError/definition.cjs.map +1 -1
- package/_cjs/data/DecodeError.cjs +0 -4
- package/_cjs/data/DecodeError.cjs.map +1 -1
- package/_cjs/data/Decoder/api.cjs +431 -76
- package/_cjs/data/Decoder/api.cjs.map +1 -1
- package/_cjs/data/Decoder/definition.cjs +0 -6
- package/_cjs/data/Decoder/definition.cjs.map +1 -1
- package/_cjs/data/Decoder.cjs +0 -4
- package/_cjs/data/Decoder.cjs.map +1 -1
- package/_cjs/data/Duration/api.cjs +24 -36
- package/_cjs/data/Duration/api.cjs.map +1 -1
- package/_cjs/data/Duration/definition.cjs +3 -17
- package/_cjs/data/Duration/definition.cjs.map +1 -1
- package/_cjs/data/Duration.cjs +0 -4
- package/_cjs/data/Duration.cjs.map +1 -1
- package/_cjs/data/Either/api/align.cjs +8 -8
- package/_cjs/data/Either/api/align.cjs.map +1 -1
- package/_cjs/data/Either/api/alignWith.cjs +8 -18
- package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
- package/_cjs/data/Either/api.cjs +171 -262
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/constructors.cjs +11 -28
- package/_cjs/data/Either/constructors.cjs.map +1 -1
- package/_cjs/data/Either/definition.cjs +4 -23
- package/_cjs/data/Either/definition.cjs.map +1 -1
- package/_cjs/data/Either/destructors.cjs +12 -17
- package/_cjs/data/Either/destructors.cjs.map +1 -1
- package/_cjs/data/Either/instances.cjs +21 -74
- package/_cjs/data/Either/instances.cjs.map +1 -1
- package/_cjs/data/Either.cjs +0 -10
- package/_cjs/data/Either.cjs.map +1 -1
- package/_cjs/data/EitherT/api.cjs +8 -32
- package/_cjs/data/EitherT/api.cjs.map +1 -1
- package/_cjs/data/EitherT/definition.cjs.map +1 -1
- package/_cjs/data/Encoder/api.cjs +324 -0
- package/_cjs/data/Encoder/api.cjs.map +1 -0
- package/_cjs/data/Encoder/definition.cjs +21 -0
- package/_cjs/data/Encoder/definition.cjs.map +1 -0
- package/_cjs/data/Encoder.cjs +28 -0
- package/_cjs/data/Encoder.cjs.map +1 -0
- package/_cjs/data/Environment/api.cjs +47 -65
- package/_cjs/data/Environment/api.cjs.map +1 -1
- package/_cjs/data/Environment/definition.cjs +5 -21
- package/_cjs/data/Environment/definition.cjs.map +1 -1
- package/_cjs/data/Environment.cjs +0 -4
- package/_cjs/data/Environment.cjs.map +1 -1
- package/_cjs/data/EnvironmentPatch.cjs +31 -93
- package/_cjs/data/EnvironmentPatch.cjs.map +1 -1
- package/_cjs/{typeclass → data}/Eq/definition.cjs +2 -4
- package/_cjs/data/Eq/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Eq/derivations.cjs +9 -18
- package/_cjs/data/Eq/derivations.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Eq.cjs +0 -2
- package/_cjs/data/Eq.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Equatable/api.cjs +2 -10
- package/_cjs/data/Equatable/api.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Equatable/definition.cjs +0 -6
- package/_cjs/data/Equatable/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Equatable/fast-equals.cjs +1 -83
- package/_cjs/data/Equatable/fast-equals.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Equatable.cjs +0 -6
- package/_cjs/data/Equatable.cjs.map +1 -0
- package/_cjs/data/ExecutionStrategy.cjs +20 -37
- package/_cjs/data/ExecutionStrategy.cjs.map +1 -1
- package/_cjs/data/Exit/api.cjs +143 -178
- package/_cjs/data/Exit/api.cjs.map +1 -1
- package/_cjs/data/Exit/constructors.cjs +4 -26
- package/_cjs/data/Exit/constructors.cjs.map +1 -1
- package/_cjs/data/Exit/definition.cjs +8 -48
- package/_cjs/data/Exit/definition.cjs.map +1 -1
- package/_cjs/data/Exit.cjs +0 -6
- package/_cjs/data/Exit.cjs.map +1 -1
- package/_cjs/data/FiberId/api.cjs +24 -38
- package/_cjs/data/FiberId/api.cjs.map +1 -1
- package/_cjs/data/FiberId/constructors.cjs +5 -19
- package/_cjs/data/FiberId/constructors.cjs.map +1 -1
- package/_cjs/data/FiberId/definition.cjs +7 -38
- package/_cjs/data/FiberId/definition.cjs.map +1 -1
- package/_cjs/data/FiberId.cjs +0 -6
- package/_cjs/data/FiberId.cjs.map +1 -1
- package/_cjs/data/Guard/api.cjs +419 -0
- package/_cjs/data/Guard/api.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Guard/definition.cjs +0 -6
- package/_cjs/data/Guard/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Guard.cjs +0 -4
- package/_cjs/data/Guard.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Hash.cjs +0 -2
- package/_cjs/data/Hash.cjs.map +1 -0
- package/_cjs/{typeclass → data}/HashEq.cjs +14 -25
- package/_cjs/data/HashEq.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Hashable/definition.cjs +0 -6
- package/_cjs/data/Hashable/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Hashable/hash.cjs +3 -65
- package/_cjs/data/Hashable/hash.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Hashable.cjs +0 -4
- package/_cjs/data/Hashable.cjs.map +1 -0
- package/_cjs/data/Identity/api.cjs +26 -35
- package/_cjs/data/Identity/api.cjs.map +1 -1
- package/_cjs/data/Identity/definition.cjs +0 -4
- package/_cjs/data/Identity/definition.cjs.map +1 -1
- package/_cjs/data/Identity/instances.cjs +7 -12
- package/_cjs/data/Identity/instances.cjs.map +1 -1
- package/_cjs/data/Identity.cjs +0 -6
- package/_cjs/data/Identity.cjs.map +1 -1
- package/_cjs/data/Interval.cjs +46 -67
- package/_cjs/data/Interval.cjs.map +1 -1
- package/_cjs/data/Intervals.cjs +45 -76
- package/_cjs/data/Intervals.cjs.map +1 -1
- package/_cjs/data/Maybe/api.cjs +126 -171
- package/_cjs/data/Maybe/api.cjs.map +1 -1
- package/_cjs/data/Maybe/constructors.cjs +2 -26
- package/_cjs/data/Maybe/constructors.cjs.map +1 -1
- package/_cjs/data/Maybe/definition.cjs +10 -51
- package/_cjs/data/Maybe/definition.cjs.map +1 -1
- package/_cjs/data/Maybe/destructors.cjs +7 -8
- package/_cjs/data/Maybe/destructors.cjs.map +1 -1
- package/_cjs/data/Maybe/instances.cjs +41 -35
- package/_cjs/data/Maybe/instances.cjs.map +1 -1
- package/_cjs/data/Maybe.cjs +0 -10
- package/_cjs/data/Maybe.cjs.map +1 -1
- package/_cjs/data/Newtype.cjs +0 -7
- package/_cjs/data/Newtype.cjs.map +1 -1
- package/_cjs/data/Ord/api/contramap.cjs +18 -0
- package/_cjs/data/Ord/api/contramap.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/api/max.cjs +3 -4
- package/_cjs/data/Ord/api/max.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/api/min.cjs +3 -4
- package/_cjs/data/Ord/api/min.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/api.cjs +0 -6
- package/_cjs/data/Ord/api.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/definition.cjs +5 -12
- package/_cjs/data/Ord/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord/instances.cjs +13 -23
- package/_cjs/data/Ord/instances.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ord.cjs +0 -6
- package/_cjs/data/Ord.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Ordering.cjs +0 -9
- package/_cjs/data/Ordering.cjs.map +1 -0
- package/_cjs/data/Predicate/api.cjs +10 -15
- package/_cjs/data/Predicate/api.cjs.map +1 -1
- package/_cjs/data/Predicate.cjs +0 -4
- package/_cjs/data/Predicate.cjs.map +1 -1
- package/_cjs/data/Refinement/api.cjs +15 -16
- package/_cjs/data/Refinement/api.cjs.map +1 -1
- package/_cjs/data/Refinement.cjs +0 -4
- package/_cjs/data/Refinement.cjs.map +1 -1
- package/_cjs/{typeclass → data}/Showable/definition.cjs +4 -11
- package/_cjs/data/Showable/definition.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Showable/show.cjs +118 -271
- package/_cjs/data/Showable/show.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Showable/styles.cjs +0 -6
- package/_cjs/data/Showable/styles.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Showable/util.cjs +51 -113
- package/_cjs/data/Showable/util.cjs.map +1 -0
- package/_cjs/{typeclass → data}/Showable.cjs +0 -4
- package/_cjs/data/Showable.cjs.map +1 -0
- package/_cjs/data/Struct/api.cjs +65 -85
- package/_cjs/data/Struct/api.cjs.map +1 -1
- package/_cjs/data/Struct/definition.cjs +0 -4
- package/_cjs/data/Struct/definition.cjs.map +1 -1
- package/_cjs/data/Tag/constructors.cjs +1 -7
- package/_cjs/data/Tag/constructors.cjs.map +1 -1
- package/_cjs/data/Tag/definition.cjs +3 -21
- package/_cjs/data/Tag/definition.cjs.map +1 -1
- package/_cjs/data/Tag.cjs +0 -4
- package/_cjs/data/Tag.cjs.map +1 -1
- package/_cjs/data/These/api.cjs +119 -226
- package/_cjs/data/These/api.cjs.map +1 -1
- package/_cjs/data/These/constructors.cjs +1 -13
- package/_cjs/data/These/constructors.cjs.map +1 -1
- package/_cjs/data/These/definition.cjs +3 -27
- package/_cjs/data/These/definition.cjs.map +1 -1
- package/_cjs/data/These/destructors.cjs +24 -52
- package/_cjs/data/These/destructors.cjs.map +1 -1
- package/_cjs/data/These/instances.cjs +2 -16
- package/_cjs/data/These/instances.cjs.map +1 -1
- package/_cjs/data/These.cjs +0 -10
- package/_cjs/data/These.cjs.map +1 -1
- package/_cjs/data/Trace/api.cjs +7 -14
- package/_cjs/data/Trace/api.cjs.map +1 -1
- package/_cjs/data/Trace/constructors.cjs +0 -8
- package/_cjs/data/Trace/constructors.cjs.map +1 -1
- package/_cjs/data/Trace/definition.cjs +0 -3
- package/_cjs/data/Trace/definition.cjs.map +1 -1
- package/_cjs/data/Trace.cjs +0 -6
- package/_cjs/data/Trace.cjs.map +1 -1
- package/_cjs/data/TraceElement/definition.cjs +0 -11
- package/_cjs/data/TraceElement/definition.cjs.map +1 -1
- package/_cjs/data/TraceElement.cjs +0 -2
- package/_cjs/data/TraceElement.cjs.map +1 -1
- package/_cjs/data/Zipped.cjs +2 -13
- package/_cjs/data/Zipped.cjs.map +1 -1
- package/_cjs/data/bigint/instances.cjs +2 -7
- package/_cjs/data/bigint/instances.cjs.map +1 -1
- package/_cjs/data/bigint.cjs +0 -4
- package/_cjs/data/bigint.cjs.map +1 -1
- package/_cjs/data/boolean/instances.cjs +2 -7
- package/_cjs/data/boolean/instances.cjs.map +1 -1
- package/_cjs/data/boolean.cjs +0 -4
- package/_cjs/data/boolean.cjs.map +1 -1
- package/_cjs/data/exceptions/ArrayIndexOutOfBoundsError.cjs +0 -3
- package/_cjs/data/exceptions/ArrayIndexOutOfBoundsError.cjs.map +1 -1
- package/_cjs/data/exceptions/IllegalArgumentError.cjs +0 -3
- package/_cjs/data/exceptions/IllegalArgumentError.cjs.map +1 -1
- package/_cjs/data/exceptions/IllegalStateError.cjs +0 -3
- package/_cjs/data/exceptions/IllegalStateError.cjs.map +1 -1
- package/_cjs/data/exceptions/IndexOutOfBoundsError.cjs +0 -3
- package/_cjs/data/exceptions/IndexOutOfBoundsError.cjs.map +1 -1
- package/_cjs/data/exceptions/InterruptedException.cjs +0 -6
- package/_cjs/data/exceptions/InterruptedException.cjs.map +1 -1
- package/_cjs/data/exceptions/InvalidCapacityError.cjs +0 -4
- package/_cjs/data/exceptions/InvalidCapacityError.cjs.map +1 -1
- package/_cjs/data/exceptions/NoSuchElementError.cjs +0 -3
- package/_cjs/data/exceptions/NoSuchElementError.cjs.map +1 -1
- package/_cjs/data/exceptions.cjs +0 -16
- package/_cjs/data/exceptions.cjs.map +1 -1
- package/_cjs/data/function/api.cjs +6 -15
- package/_cjs/data/function/api.cjs.map +1 -1
- package/_cjs/data/function/pipe.cjs +8 -21
- package/_cjs/data/function/pipe.cjs.map +1 -1
- package/_cjs/data/function.cjs +0 -6
- package/_cjs/data/function.cjs.map +1 -1
- package/_cjs/data/number/api.cjs +0 -1
- package/_cjs/data/number/api.cjs.map +1 -1
- package/_cjs/data/number/instances.cjs +10 -19
- package/_cjs/data/number/instances.cjs.map +1 -1
- package/_cjs/data/number.cjs +0 -6
- package/_cjs/data/number.cjs.map +1 -1
- package/_cjs/data/object/instances.cjs +1 -16
- package/_cjs/data/object/instances.cjs.map +1 -1
- package/_cjs/data/object.cjs +0 -4
- package/_cjs/data/object.cjs.map +1 -1
- package/_cjs/data/string/api.cjs +54 -130
- package/_cjs/data/string/api.cjs.map +1 -1
- package/_cjs/data/string/instances.cjs +11 -24
- package/_cjs/data/string/instances.cjs.map +1 -1
- package/_cjs/data/string.cjs +0 -6
- package/_cjs/data/string.cjs.map +1 -1
- package/_cjs/global/api.cjs +4 -3
- package/_cjs/global/api.cjs.map +1 -1
- package/_cjs/internal/AtomicBoolean.cjs +0 -4
- package/_cjs/internal/AtomicBoolean.cjs.map +1 -1
- package/_cjs/internal/AtomicNumber.cjs +0 -7
- package/_cjs/internal/AtomicNumber.cjs.map +1 -1
- package/_cjs/internal/AtomicReference.cjs +0 -8
- package/_cjs/internal/AtomicReference.cjs.map +1 -1
- package/_cjs/internal/Stack.cjs +2 -15
- package/_cjs/internal/Stack.cjs.map +1 -1
- package/_cjs/json/EitherJson.cjs +1 -7
- package/_cjs/json/EitherJson.cjs.map +1 -1
- package/_cjs/json/MaybeJson.cjs +1 -7
- package/_cjs/json/MaybeJson.cjs.map +1 -1
- package/_cjs/json/TheseJson.cjs +1 -7
- package/_cjs/json/TheseJson.cjs.map +1 -1
- package/_cjs/optics/At/api.cjs +1 -6
- package/_cjs/optics/At/api.cjs.map +1 -1
- package/_cjs/optics/At/definition.cjs +2 -9
- package/_cjs/optics/At/definition.cjs.map +1 -1
- package/_cjs/optics/At.cjs +0 -4
- package/_cjs/optics/At.cjs.map +1 -1
- package/_cjs/optics/Fold/definition.cjs +3 -6
- package/_cjs/optics/Fold/definition.cjs.map +1 -1
- package/_cjs/optics/Fold.cjs +0 -2
- package/_cjs/optics/Fold.cjs.map +1 -1
- package/_cjs/optics/Getter/definition.cjs +2 -5
- package/_cjs/optics/Getter/definition.cjs.map +1 -1
- package/_cjs/optics/Getter.cjs +0 -2
- package/_cjs/optics/Getter.cjs.map +1 -1
- package/_cjs/optics/Index/api.cjs +4 -12
- package/_cjs/optics/Index/api.cjs.map +1 -1
- package/_cjs/optics/Index/definition.cjs +2 -4
- package/_cjs/optics/Index/definition.cjs.map +1 -1
- package/_cjs/optics/Index.cjs +0 -4
- package/_cjs/optics/Index.cjs.map +1 -1
- package/_cjs/optics/Iso/api.cjs +9 -12
- package/_cjs/optics/Iso/api.cjs.map +1 -1
- package/_cjs/optics/Iso/definition.cjs +13 -25
- package/_cjs/optics/Iso/definition.cjs.map +1 -1
- package/_cjs/optics/Iso.cjs +0 -4
- package/_cjs/optics/Iso.cjs.map +1 -1
- package/_cjs/optics/Lens/api.cjs +53 -78
- package/_cjs/optics/Lens/api.cjs.map +1 -1
- package/_cjs/optics/Lens/definition.cjs +11 -23
- package/_cjs/optics/Lens/definition.cjs.map +1 -1
- package/_cjs/optics/Lens.cjs +0 -4
- package/_cjs/optics/Lens.cjs.map +1 -1
- package/_cjs/optics/Optional/api/compose.cjs +9 -13
- package/_cjs/optics/Optional/api/compose.cjs.map +1 -1
- package/_cjs/optics/Optional/definition.cjs +11 -27
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Optional.cjs +0 -4
- package/_cjs/optics/Optional.cjs.map +1 -1
- package/_cjs/optics/Prism/api/compose.cjs +9 -14
- package/_cjs/optics/Prism/api/compose.cjs.map +1 -1
- package/_cjs/optics/Prism/api/fromNullable.cjs +2 -8
- package/_cjs/optics/Prism/api/fromNullable.cjs.map +1 -1
- package/_cjs/optics/Prism/api/just.cjs +2 -9
- package/_cjs/optics/Prism/api/just.cjs.map +1 -1
- package/_cjs/optics/Prism/definition.cjs +9 -21
- package/_cjs/optics/Prism/definition.cjs.map +1 -1
- package/_cjs/optics/Prism.cjs +0 -8
- package/_cjs/optics/Prism.cjs.map +1 -1
- package/_cjs/optics/Setter/definition.cjs +8 -17
- package/_cjs/optics/Setter/definition.cjs.map +1 -1
- package/_cjs/optics/Setter.cjs +0 -2
- package/_cjs/optics/Setter.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/compose.cjs +8 -10
- package/_cjs/optics/Traversal/api/compose.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/fromTraversable.cjs +2 -6
- package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
- package/_cjs/optics/Traversal/definition.cjs +12 -28
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal.cjs +0 -6
- package/_cjs/optics/Traversal.cjs.map +1 -1
- package/_cjs/typeclass/Align.cjs.map +1 -1
- package/_cjs/typeclass/Alt.cjs.map +1 -1
- package/_cjs/typeclass/Alternative.cjs.map +1 -1
- package/_cjs/typeclass/Applicative.cjs.map +1 -1
- package/_cjs/typeclass/ApplicativeExcept.cjs +5 -18
- package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
- package/_cjs/typeclass/Apply.cjs +15 -47
- package/_cjs/typeclass/Apply.cjs.map +1 -1
- package/_cjs/typeclass/Chain.cjs +4 -13
- package/_cjs/typeclass/Chain.cjs.map +1 -1
- package/_cjs/typeclass/Closure.cjs +2 -4
- package/_cjs/typeclass/Closure.cjs.map +1 -1
- package/_cjs/typeclass/Filterable.cjs.map +1 -1
- package/_cjs/typeclass/FilterableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Foldable.cjs +1 -3
- package/_cjs/typeclass/Foldable.cjs.map +1 -1
- package/_cjs/typeclass/FoldableWithIndex.cjs +1 -3
- package/_cjs/typeclass/FoldableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Functor.cjs +0 -2
- package/_cjs/typeclass/Functor.cjs.map +1 -1
- package/_cjs/typeclass/FunctorWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Has.cjs +8 -6
- package/_cjs/typeclass/Has.cjs.map +1 -1
- package/_cjs/typeclass/Monad.cjs.map +1 -1
- package/_cjs/typeclass/MonadExcept.cjs +1 -6
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
- package/_cjs/typeclass/Monoid.cjs +6 -23
- package/_cjs/typeclass/Monoid.cjs.map +1 -1
- package/_cjs/typeclass/Pointed.cjs.map +1 -1
- package/_cjs/typeclass/Semialign.cjs +7 -25
- package/_cjs/typeclass/Semialign.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/api.cjs +6 -14
- package/_cjs/typeclass/Semigroup/api.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/definition.cjs +3 -6
- package/_cjs/typeclass/Semigroup/definition.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/derivations.cjs +7 -18
- package/_cjs/typeclass/Semigroup/derivations.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup.cjs +0 -4
- package/_cjs/typeclass/Semigroup.cjs.map +1 -1
- package/_cjs/typeclass/Semimonoidal.cjs.map +1 -1
- package/_cjs/typeclass/Traversable.cjs +1 -7
- package/_cjs/typeclass/Traversable.cjs.map +1 -1
- package/_cjs/typeclass/TraversableWithIndex.cjs +0 -1
- package/_cjs/typeclass/TraversableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Witherable.cjs +2 -7
- package/_cjs/typeclass/Witherable.cjs.map +1 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs +2 -8
- package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/builtin.cjs +0 -2
- package/_cjs/typeclass/builtin.cjs.map +1 -1
- package/_cjs/typeclass.cjs +95 -162
- package/_cjs/typeclass.cjs.map +1 -1
- package/_cjs/types.cjs +0 -6
- package/_cjs/types.cjs.map +1 -1
- package/_cjs/util/AnsiFormat.cjs +15 -57
- package/_cjs/util/AnsiFormat.cjs.map +1 -1
- package/_cjs/util/PCGRandom.cjs +16 -46
- package/_cjs/util/PCGRandom.cjs.map +1 -1
- package/_cjs/util/assert.cjs +0 -4
- package/_cjs/util/assert.cjs.map +1 -1
- package/_cjs/util/pattern.cjs +0 -4
- package/_cjs/util/pattern.cjs.map +1 -1
- package/_cjs/util/predicates.cjs +0 -32
- package/_cjs/util/predicates.cjs.map +1 -1
- package/_cjs/util/rand/Random.cjs +0 -21
- package/_cjs/util/rand/Random.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformArrayIntDistribution.cjs +0 -5
- package/_cjs/util/rand/distribution/UniformArrayIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformBigIntDistribution.cjs +4 -12
- package/_cjs/util/rand/distribution/UniformBigIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/UniformIntDistribution.cjs +0 -12
- package/_cjs/util/rand/distribution/UniformIntDistribution.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/ArrayInt.cjs +6 -42
- package/_cjs/util/rand/distribution/internals/ArrayInt.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.cjs +6 -10
- package/_cjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.cjs.map +1 -1
- package/_cjs/util/rand/distribution/internals/UniformIntDistributionInternal.cjs +8 -14
- package/_cjs/util/rand/distribution/internals/UniformIntDistributionInternal.cjs.map +1 -1
- package/_cjs/util/rand/generator/MersenneTwister.cjs +5 -25
- package/_cjs/util/rand/generator/MersenneTwister.cjs.map +1 -1
- package/_cjs/util/rand/generator/RandomGenerator.cjs +0 -4
- package/_cjs/util/rand/generator/RandomGenerator.cjs.map +1 -1
- package/_cjs/util/rand.cjs +0 -9
- package/_cjs/util/rand.cjs.map +1 -1
- package/_mjs/collection/Iterable/api/traverseConc.mjs +5 -10
- package/_mjs/collection/Iterable/api/traverseConc.mjs.map +1 -1
- package/_mjs/collection/Iterable/api.mjs +466 -551
- package/_mjs/collection/Iterable/api.mjs.map +1 -1
- package/_mjs/collection/Iterable/constructors.mjs +5 -20
- package/_mjs/collection/Iterable/constructors.mjs.map +1 -1
- package/_mjs/collection/Iterable/definition.mjs.map +1 -1
- package/_mjs/collection/Iterable.mjs.map +1 -1
- package/_mjs/collection/compat/Array/api.mjs +17 -21
- package/_mjs/collection/compat/Array/api.mjs.map +1 -1
- package/_mjs/collection/compat/Array/definition.mjs.map +1 -1
- package/_mjs/collection/compat/Array.mjs +0 -1
- package/_mjs/collection/compat/Array.mjs.map +1 -1
- package/_mjs/collection/compat/ArrayLike/api.mjs +3 -9
- package/_mjs/collection/compat/ArrayLike/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api/empty.mjs +0 -1
- package/_mjs/collection/immutable/Conc/api/empty.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs +1 -5
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api/replicate.mjs +0 -1
- package/_mjs/collection/immutable/Conc/api/replicate.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/api.mjs +733 -919
- package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/constructors.mjs +0 -5
- package/_mjs/collection/immutable/Conc/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs +74 -242
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs +1 -2
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary/api.mjs +47 -50
- package/_mjs/collection/immutable/Dictionary/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary.mjs +4 -0
- package/_mjs/collection/immutable/Dictionary.mjs.map +1 -0
- package/_mjs/collection/immutable/HashMap/api.mjs +328 -352
- package/_mjs/collection/immutable/HashMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/definition.mjs +17 -28
- package/_mjs/collection/immutable/HashMap/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/internal.mjs +4 -66
- package/_mjs/collection/immutable/HashMap/internal.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/api.mjs +249 -275
- package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/definition.mjs +14 -67
- package/_mjs/collection/immutable/HashSet/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs +5 -4
- package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs +5 -4
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs +5 -4
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs +13 -14
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +826 -942
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs +0 -10
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs +4 -10
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs +50 -59
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray.mjs +2 -3
- package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +303 -355
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs +0 -12
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs +0 -5
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs +2 -12
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +25 -29
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api/foldLeft.mjs +11 -12
- package/_mjs/collection/immutable/List/api/foldLeft.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api/unsafeTail.mjs +0 -2
- package/_mjs/collection/immutable/List/api/unsafeTail.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api.mjs +155 -203
- package/_mjs/collection/immutable/List/api.mjs.map +1 -1
- package/_mjs/collection/immutable/List/constructors.mjs +1 -11
- package/_mjs/collection/immutable/List/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/List/definition.mjs +2 -18
- package/_mjs/collection/immutable/List/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/List.mjs +2 -2
- package/_mjs/collection/immutable/List.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/api.mjs +78 -88
- package/_mjs/collection/immutable/Queue/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/constructors.mjs +0 -2
- package/_mjs/collection/immutable/Queue/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/definition.mjs +3 -9
- package/_mjs/collection/immutable/Queue/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue/guards.mjs +2 -3
- package/_mjs/collection/immutable/Queue/guards.mjs.map +1 -1
- package/_mjs/collection/immutable/Queue.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/api.mjs +76 -103
- package/_mjs/collection/immutable/RoseTree/api.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/definition.mjs +4 -8
- package/_mjs/collection/immutable/RoseTree/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/api.mjs +423 -493
- package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/definition.mjs +2 -3
- package/_mjs/collection/immutable/SortedMap/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/internal.mjs +56 -222
- package/_mjs/collection/immutable/SortedMap/internal.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/iterator.mjs +16 -97
- package/_mjs/collection/immutable/SortedMap/iterator.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/node.mjs +0 -1
- package/_mjs/collection/immutable/SortedMap/node.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/api.mjs +682 -756
- package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/definition.mjs +25 -35
- package/_mjs/collection/immutable/Vector/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/internal.mjs +79 -350
- package/_mjs/collection/immutable/Vector/internal.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector.mjs.map +1 -1
- package/_mjs/collection/mutable/HashMap.mjs +9 -79
- package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/mutable/HashSet.mjs +5 -59
- package/_mjs/collection/mutable/HashSet.mjs.map +1 -1
- package/_mjs/collection/mutable/ListBuffer.mjs +2 -28
- package/_mjs/collection/mutable/ListBuffer.mjs.map +1 -1
- package/_mjs/collection/mutable/internal.mjs +0 -4
- package/_mjs/collection/mutable/internal.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakMap.mjs +6 -28
- package/_mjs/collection/weak/IterableWeakMap.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakSet.mjs +6 -26
- package/_mjs/collection/weak/IterableWeakSet.mjs.map +1 -1
- package/_mjs/control/Eval/api/sequenceArray.mjs +0 -1
- package/_mjs/control/Eval/api/sequenceArray.mjs.map +1 -1
- package/_mjs/control/Eval/api.mjs +41 -48
- package/_mjs/control/Eval/api.mjs.map +1 -1
- package/_mjs/control/Eval/constructors.mjs +0 -6
- package/_mjs/control/Eval/constructors.mjs.map +1 -1
- package/_mjs/control/Eval/definition.mjs +6 -15
- package/_mjs/control/Eval/definition.mjs.map +1 -1
- package/_mjs/control/Eval/instance.mjs +7 -9
- package/_mjs/control/Eval/instance.mjs.map +1 -1
- package/_mjs/control/Eval/run.mjs +5 -24
- package/_mjs/control/Eval/run.mjs.map +1 -1
- package/_mjs/control/Eval.mjs.map +1 -1
- package/_mjs/control/LazyValue.mjs +0 -3
- package/_mjs/control/LazyValue.mjs.map +1 -1
- package/_mjs/control/Z/api.mjs +196 -216
- package/_mjs/control/Z/api.mjs.map +1 -1
- package/_mjs/control/Z/definition.mjs +23 -51
- package/_mjs/control/Z/definition.mjs.map +1 -1
- package/_mjs/control/Z/instances.mjs +4 -5
- package/_mjs/control/Z/instances.mjs.map +1 -1
- package/_mjs/control/Z/runtime.mjs +200 -266
- package/_mjs/control/Z/runtime.mjs.map +1 -1
- package/_mjs/control/Z.mjs.map +1 -1
- package/_mjs/data/Branded/definition.mjs +0 -2
- package/_mjs/data/Branded/definition.mjs.map +1 -1
- package/_mjs/data/Branded.mjs +0 -1
- package/_mjs/data/Branded.mjs.map +1 -1
- package/_mjs/data/CaseClass.mjs +13 -32
- package/_mjs/data/CaseClass.mjs.map +1 -1
- package/_mjs/data/Cause/api/fold.mjs +30 -65
- package/_mjs/data/Cause/api/fold.mjs.map +1 -1
- package/_mjs/data/Cause/api/isEmpty.mjs +7 -29
- package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -1
- package/_mjs/data/Cause/api/linearize.mjs +9 -10
- package/_mjs/data/Cause/api/linearize.mjs.map +1 -1
- package/_mjs/data/Cause/api/prettyPrint.mjs +1 -8
- package/_mjs/data/Cause/api/prettyPrint.mjs.map +1 -1
- package/_mjs/data/Cause/api/unified.mjs +14 -44
- package/_mjs/data/Cause/api/unified.mjs.map +1 -1
- package/_mjs/data/Cause/api.mjs +212 -490
- package/_mjs/data/Cause/api.mjs.map +1 -1
- package/_mjs/data/Cause/definition.mjs +63 -262
- package/_mjs/data/Cause/definition.mjs.map +1 -1
- package/_mjs/data/Cause.mjs +2 -2
- package/_mjs/data/Cause.mjs.map +1 -1
- package/_mjs/data/Const/api.mjs +6 -6
- package/_mjs/data/Const/api.mjs.map +1 -1
- package/_mjs/data/Const/definition.mjs +0 -1
- package/_mjs/data/Const/definition.mjs.map +1 -1
- package/_mjs/data/Const/instances.mjs +6 -8
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/Const.mjs.map +1 -1
- package/_mjs/data/Datum/api.mjs +198 -250
- package/_mjs/data/Datum/api.mjs.map +1 -1
- package/_mjs/data/Datum/definition.mjs +10 -35
- package/_mjs/data/Datum/definition.mjs.map +1 -1
- package/_mjs/data/Datum/instances.mjs +0 -5
- package/_mjs/data/Datum/instances.mjs.map +1 -1
- package/_mjs/data/DatumEither/api.mjs +158 -191
- package/_mjs/data/DatumEither/api.mjs.map +1 -1
- package/_mjs/data/DatumEither/definition.mjs.map +1 -1
- package/_mjs/data/DecodeError/definition.mjs +15 -43
- package/_mjs/data/DecodeError/definition.mjs.map +1 -1
- package/_mjs/data/DecodeError.mjs.map +1 -1
- package/_mjs/data/Decoder/api.mjs +400 -53
- package/_mjs/data/Decoder/api.mjs.map +1 -1
- package/_mjs/data/Decoder/definition.mjs +0 -3
- package/_mjs/data/Decoder/definition.mjs.map +1 -1
- package/_mjs/data/Decoder.mjs.map +1 -1
- package/_mjs/data/Duration/api.mjs +20 -21
- package/_mjs/data/Duration/api.mjs.map +1 -1
- package/_mjs/data/Duration/definition.mjs +3 -7
- package/_mjs/data/Duration/definition.mjs.map +1 -1
- package/_mjs/data/Duration.mjs.map +1 -1
- package/_mjs/data/Either/api/align.mjs +7 -2
- package/_mjs/data/Either/api/align.mjs.map +1 -1
- package/_mjs/data/Either/api/alignWith.mjs +7 -12
- package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
- package/_mjs/data/Either/api.mjs +139 -188
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/constructors.mjs +7 -16
- package/_mjs/data/Either/constructors.mjs.map +1 -1
- package/_mjs/data/Either/definition.mjs +4 -15
- package/_mjs/data/Either/definition.mjs.map +1 -1
- package/_mjs/data/Either/destructors.mjs +11 -15
- package/_mjs/data/Either/destructors.mjs.map +1 -1
- package/_mjs/data/Either/instances.mjs +22 -56
- package/_mjs/data/Either/instances.mjs.map +1 -1
- package/_mjs/data/Either.mjs.map +1 -1
- package/_mjs/data/EitherT/api.mjs +8 -17
- package/_mjs/data/EitherT/api.mjs.map +1 -1
- package/_mjs/data/EitherT/definition.mjs.map +1 -1
- package/_mjs/data/Encoder/api.mjs +273 -0
- package/_mjs/data/Encoder/api.mjs.map +1 -0
- package/_mjs/data/Encoder/definition.mjs +13 -0
- package/_mjs/data/Encoder/definition.mjs.map +1 -0
- package/_mjs/data/Encoder.mjs +4 -0
- package/_mjs/data/Encoder.mjs.map +1 -0
- package/_mjs/data/Environment/api.mjs +47 -50
- package/_mjs/data/Environment/api.mjs.map +1 -1
- package/_mjs/data/Environment/definition.mjs +5 -10
- package/_mjs/data/Environment/definition.mjs.map +1 -1
- package/_mjs/data/Environment.mjs.map +1 -1
- package/_mjs/data/EnvironmentPatch.mjs +35 -68
- package/_mjs/data/EnvironmentPatch.mjs.map +1 -1
- package/_mjs/{typeclass → data}/Eq/definition.mjs +1 -2
- package/_mjs/data/Eq/definition.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Eq/derivations.mjs +9 -15
- package/_mjs/data/Eq/derivations.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Eq.mjs +0 -0
- package/_mjs/data/Eq.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Equatable/api.mjs +3 -6
- package/_mjs/data/Equatable/api.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Equatable/definition.mjs +0 -1
- package/_mjs/data/Equatable/definition.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Equatable/fast-equals.mjs +1 -63
- package/_mjs/data/Equatable/fast-equals.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Equatable.mjs +0 -0
- package/_mjs/data/Equatable.mjs.map +1 -0
- package/_mjs/data/ExecutionStrategy.mjs +17 -30
- package/_mjs/data/ExecutionStrategy.mjs.map +1 -1
- package/_mjs/data/Exit/api.mjs +124 -135
- package/_mjs/data/Exit/api.mjs.map +1 -1
- package/_mjs/data/Exit/constructors.mjs +3 -14
- package/_mjs/data/Exit/constructors.mjs.map +1 -1
- package/_mjs/data/Exit/definition.mjs +8 -33
- package/_mjs/data/Exit/definition.mjs.map +1 -1
- package/_mjs/data/Exit.mjs.map +1 -1
- package/_mjs/data/FiberId/api.mjs +23 -31
- package/_mjs/data/FiberId/api.mjs.map +1 -1
- package/_mjs/data/FiberId/constructors.mjs +3 -9
- package/_mjs/data/FiberId/constructors.mjs.map +1 -1
- package/_mjs/data/FiberId/definition.mjs +7 -26
- package/_mjs/data/FiberId/definition.mjs.map +1 -1
- package/_mjs/data/FiberId.mjs.map +1 -1
- package/_mjs/data/Guard/api.mjs +369 -0
- package/_mjs/data/Guard/api.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Guard/definition.mjs +0 -3
- package/_mjs/data/Guard/definition.mjs.map +1 -0
- package/_mjs/data/Guard.mjs +4 -0
- package/_mjs/data/Guard.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Hash.mjs +0 -1
- package/_mjs/data/Hash.mjs.map +1 -0
- package/_mjs/data/HashEq.mjs +30 -0
- package/_mjs/data/HashEq.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Hashable/definition.mjs +0 -1
- package/_mjs/data/Hashable/definition.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Hashable/hash.mjs +4 -59
- package/_mjs/data/Hashable/hash.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Hashable.mjs +0 -0
- package/_mjs/data/Hashable.mjs.map +1 -0
- package/_mjs/data/Identity/api.mjs +21 -20
- package/_mjs/data/Identity/api.mjs.map +1 -1
- package/_mjs/data/Identity/definition.mjs.map +1 -1
- package/_mjs/data/Identity/instances.mjs +8 -9
- package/_mjs/data/Identity/instances.mjs.map +1 -1
- package/_mjs/data/Identity.mjs.map +1 -1
- package/_mjs/data/Interval.mjs +41 -47
- package/_mjs/data/Interval.mjs.map +1 -1
- package/_mjs/data/Intervals.mjs +45 -60
- package/_mjs/data/Intervals.mjs.map +1 -1
- package/_mjs/data/Maybe/api.mjs +107 -128
- package/_mjs/data/Maybe/api.mjs.map +1 -1
- package/_mjs/data/Maybe/constructors.mjs +1 -18
- package/_mjs/data/Maybe/constructors.mjs.map +1 -1
- package/_mjs/data/Maybe/definition.mjs +10 -36
- package/_mjs/data/Maybe/definition.mjs.map +1 -1
- package/_mjs/data/Maybe/destructors.mjs +6 -6
- package/_mjs/data/Maybe/destructors.mjs.map +1 -1
- package/_mjs/data/Maybe/instances.mjs +40 -21
- package/_mjs/data/Maybe/instances.mjs.map +1 -1
- package/_mjs/data/Maybe.mjs.map +1 -1
- package/_mjs/data/Newtype.mjs +0 -1
- package/_mjs/data/Newtype.mjs.map +1 -1
- package/_mjs/data/Ord/api/contramap.mjs +12 -0
- package/_mjs/data/Ord/api/contramap.mjs.map +1 -0
- package/_mjs/data/Ord/api/max.mjs +8 -0
- package/_mjs/data/Ord/api/max.mjs.map +1 -0
- package/_mjs/data/Ord/api/min.mjs +8 -0
- package/_mjs/data/Ord/api/min.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Ord/api.mjs +0 -0
- package/_mjs/data/Ord/api.mjs.map +1 -0
- package/_mjs/data/Ord/definition.mjs +12 -0
- package/_mjs/data/Ord/definition.mjs.map +1 -0
- package/_mjs/data/Ord/instances.mjs +34 -0
- package/_mjs/data/Ord/instances.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Ord.mjs +0 -0
- package/_mjs/data/Ord.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Ordering.mjs +0 -6
- package/_mjs/data/Ordering.mjs.map +1 -0
- package/_mjs/data/Predicate/api.mjs +10 -11
- package/_mjs/data/Predicate/api.mjs.map +1 -1
- package/_mjs/data/Predicate.mjs.map +1 -1
- package/_mjs/data/Refinement/api.mjs +15 -12
- package/_mjs/data/Refinement/api.mjs.map +1 -1
- package/_mjs/data/Refinement.mjs.map +1 -1
- package/_mjs/{typeclass → data}/Showable/definition.mjs +2 -3
- package/_mjs/data/Showable/definition.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Showable/show.mjs +119 -245
- package/_mjs/data/Showable/show.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Showable/styles.mjs +0 -0
- package/_mjs/data/Showable/styles.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Showable/util.mjs +53 -93
- package/_mjs/data/Showable/util.mjs.map +1 -0
- package/_mjs/{typeclass → data}/Showable.mjs +0 -0
- package/_mjs/data/Showable.mjs.map +1 -0
- package/_mjs/data/Struct/api.mjs +59 -63
- package/_mjs/data/Struct/api.mjs.map +1 -1
- package/_mjs/data/Struct/definition.mjs.map +1 -1
- package/_mjs/data/Tag/constructors.mjs +1 -3
- package/_mjs/data/Tag/constructors.mjs.map +1 -1
- package/_mjs/data/Tag/definition.mjs +3 -11
- package/_mjs/data/Tag/definition.mjs.map +1 -1
- package/_mjs/data/Tag.mjs.map +1 -1
- package/_mjs/data/These/api.mjs +118 -209
- package/_mjs/data/These/api.mjs.map +1 -1
- package/_mjs/data/These/constructors.mjs +1 -7
- package/_mjs/data/These/constructors.mjs.map +1 -1
- package/_mjs/data/These/definition.mjs +4 -16
- package/_mjs/data/These/definition.mjs.map +1 -1
- package/_mjs/data/These/destructors.mjs +23 -41
- package/_mjs/data/These/destructors.mjs.map +1 -1
- package/_mjs/data/These/instances.mjs +2 -7
- package/_mjs/data/These/instances.mjs.map +1 -1
- package/_mjs/data/These.mjs.map +1 -1
- package/_mjs/data/Trace/api.mjs +6 -6
- package/_mjs/data/Trace/api.mjs.map +1 -1
- package/_mjs/data/Trace/constructors.mjs +0 -2
- package/_mjs/data/Trace/constructors.mjs.map +1 -1
- package/_mjs/data/Trace/definition.mjs +0 -1
- package/_mjs/data/Trace/definition.mjs.map +1 -1
- package/_mjs/data/Trace.mjs.map +1 -1
- package/_mjs/data/TraceElement/definition.mjs +0 -9
- package/_mjs/data/TraceElement/definition.mjs.map +1 -1
- package/_mjs/data/TraceElement.mjs.map +1 -1
- package/_mjs/data/Zipped.mjs +2 -7
- package/_mjs/data/Zipped.mjs.map +1 -1
- package/_mjs/data/bigint/instances.mjs +2 -2
- package/_mjs/data/bigint/instances.mjs.map +1 -1
- package/_mjs/data/bigint.mjs.map +1 -1
- package/_mjs/data/boolean/instances.mjs +2 -2
- package/_mjs/data/boolean/instances.mjs.map +1 -1
- package/_mjs/data/boolean.mjs.map +1 -1
- package/_mjs/data/exceptions/ArrayIndexOutOfBoundsError.mjs +0 -1
- package/_mjs/data/exceptions/ArrayIndexOutOfBoundsError.mjs.map +1 -1
- package/_mjs/data/exceptions/IllegalArgumentError.mjs +0 -1
- package/_mjs/data/exceptions/IllegalArgumentError.mjs.map +1 -1
- package/_mjs/data/exceptions/IllegalStateError.mjs +0 -1
- package/_mjs/data/exceptions/IllegalStateError.mjs.map +1 -1
- package/_mjs/data/exceptions/IndexOutOfBoundsError.mjs +0 -1
- package/_mjs/data/exceptions/IndexOutOfBoundsError.mjs.map +1 -1
- package/_mjs/data/exceptions/InterruptedException.mjs +0 -1
- package/_mjs/data/exceptions/InterruptedException.mjs.map +1 -1
- package/_mjs/data/exceptions/InvalidCapacityError.mjs +0 -1
- package/_mjs/data/exceptions/InvalidCapacityError.mjs.map +1 -1
- package/_mjs/data/exceptions/NoSuchElementError.mjs +0 -1
- package/_mjs/data/exceptions/NoSuchElementError.mjs.map +1 -1
- package/_mjs/data/exceptions.mjs.map +1 -1
- package/_mjs/data/function/api.mjs +5 -8
- package/_mjs/data/function/api.mjs.map +1 -1
- package/_mjs/data/function/pipe.mjs +7 -20
- package/_mjs/data/function/pipe.mjs.map +1 -1
- package/_mjs/data/function.mjs.map +1 -1
- package/_mjs/data/number/api.mjs.map +1 -1
- package/_mjs/data/number/instances.mjs +10 -13
- package/_mjs/data/number/instances.mjs.map +1 -1
- package/_mjs/data/number.mjs.map +1 -1
- package/_mjs/data/object/instances.mjs +1 -9
- package/_mjs/data/object/instances.mjs.map +1 -1
- package/_mjs/data/object.mjs.map +1 -1
- package/_mjs/data/string/api.mjs +45 -83
- package/_mjs/data/string/api.mjs.map +1 -1
- package/_mjs/data/string/instances.mjs +11 -15
- package/_mjs/data/string/instances.mjs.map +1 -1
- package/_mjs/data/string.mjs.map +1 -1
- package/_mjs/global/api.mjs +4 -2
- package/_mjs/global/api.mjs.map +1 -1
- package/_mjs/internal/AtomicBoolean.mjs +0 -1
- package/_mjs/internal/AtomicBoolean.mjs.map +1 -1
- package/_mjs/internal/AtomicNumber.mjs +0 -4
- package/_mjs/internal/AtomicNumber.mjs.map +1 -1
- package/_mjs/internal/AtomicReference.mjs +0 -6
- package/_mjs/internal/AtomicReference.mjs.map +1 -1
- package/_mjs/internal/Stack.mjs +1 -10
- package/_mjs/internal/Stack.mjs.map +1 -1
- package/_mjs/json/EitherJson.mjs +1 -2
- package/_mjs/json/EitherJson.mjs.map +1 -1
- package/_mjs/json/MaybeJson.mjs +1 -2
- package/_mjs/json/MaybeJson.mjs.map +1 -1
- package/_mjs/json/TheseJson.mjs +1 -2
- package/_mjs/json/TheseJson.mjs.map +1 -1
- package/_mjs/optics/At/api.mjs +1 -2
- package/_mjs/optics/At/api.mjs.map +1 -1
- package/_mjs/optics/At/definition.mjs +2 -3
- package/_mjs/optics/At/definition.mjs.map +1 -1
- package/_mjs/optics/At.mjs.map +1 -1
- package/_mjs/optics/Fold/definition.mjs +2 -4
- package/_mjs/optics/Fold/definition.mjs.map +1 -1
- package/_mjs/optics/Fold.mjs.map +1 -1
- package/_mjs/optics/Getter/definition.mjs +1 -3
- package/_mjs/optics/Getter/definition.mjs.map +1 -1
- package/_mjs/optics/Getter.mjs.map +1 -1
- package/_mjs/optics/Index/api.mjs +4 -6
- package/_mjs/optics/Index/api.mjs.map +1 -1
- package/_mjs/optics/Index/definition.mjs +1 -2
- package/_mjs/optics/Index/definition.mjs.map +1 -1
- package/_mjs/optics/Index.mjs.map +1 -1
- package/_mjs/optics/Iso/api.mjs +8 -7
- package/_mjs/optics/Iso/api.mjs.map +1 -1
- package/_mjs/optics/Iso/definition.mjs +10 -12
- package/_mjs/optics/Iso/definition.mjs.map +1 -1
- package/_mjs/optics/Iso.mjs.map +1 -1
- package/_mjs/optics/Lens/api.mjs +48 -60
- package/_mjs/optics/Lens/api.mjs.map +1 -1
- package/_mjs/optics/Lens/definition.mjs +8 -10
- package/_mjs/optics/Lens/definition.mjs.map +1 -1
- package/_mjs/optics/Lens.mjs.map +1 -1
- package/_mjs/optics/Optional/api/compose.mjs +8 -7
- package/_mjs/optics/Optional/api/compose.mjs.map +1 -1
- package/_mjs/optics/Optional/definition.mjs +8 -14
- package/_mjs/optics/Optional/definition.mjs.map +1 -1
- package/_mjs/optics/Optional.mjs +2 -2
- package/_mjs/optics/Optional.mjs.map +1 -1
- package/_mjs/optics/Prism/api/compose.mjs +8 -7
- package/_mjs/optics/Prism/api/compose.mjs.map +1 -1
- package/_mjs/optics/Prism/api/fromNullable.mjs +2 -3
- package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -1
- package/_mjs/optics/Prism/api/just.mjs +2 -3
- package/_mjs/optics/Prism/api/just.mjs.map +1 -1
- package/_mjs/optics/Prism/definition.mjs +6 -9
- package/_mjs/optics/Prism/definition.mjs.map +1 -1
- package/_mjs/optics/Prism.mjs +2 -2
- package/_mjs/optics/Prism.mjs.map +1 -1
- package/_mjs/optics/Setter/definition.mjs +5 -13
- package/_mjs/optics/Setter/definition.mjs.map +1 -1
- package/_mjs/optics/Setter.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs +7 -6
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +2 -3
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
- package/_mjs/optics/Traversal/definition.mjs +9 -12
- package/_mjs/optics/Traversal/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal.mjs +2 -2
- package/_mjs/optics/Traversal.mjs.map +1 -1
- package/_mjs/typeclass/Align.mjs.map +1 -1
- package/_mjs/typeclass/Alt.mjs.map +1 -1
- package/_mjs/typeclass/Alternative.mjs.map +1 -1
- package/_mjs/typeclass/Applicative.mjs.map +1 -1
- package/_mjs/typeclass/ApplicativeExcept.mjs +6 -10
- package/_mjs/typeclass/ApplicativeExcept.mjs.map +1 -1
- package/_mjs/typeclass/Apply.mjs +14 -35
- package/_mjs/typeclass/Apply.mjs.map +1 -1
- package/_mjs/typeclass/Chain.mjs +5 -7
- package/_mjs/typeclass/Chain.mjs.map +1 -1
- package/_mjs/typeclass/Closure.mjs +1 -2
- package/_mjs/typeclass/Closure.mjs.map +1 -1
- package/_mjs/typeclass/Filterable.mjs.map +1 -1
- package/_mjs/typeclass/FilterableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Foldable.mjs +1 -2
- package/_mjs/typeclass/Foldable.mjs.map +1 -1
- package/_mjs/typeclass/FoldableWithIndex.mjs +1 -2
- package/_mjs/typeclass/FoldableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Functor.mjs +0 -1
- package/_mjs/typeclass/Functor.mjs.map +1 -1
- package/_mjs/typeclass/FunctorWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Has.mjs +8 -5
- package/_mjs/typeclass/Has.mjs.map +1 -1
- package/_mjs/typeclass/Monad.mjs.map +1 -1
- package/_mjs/typeclass/MonadExcept.mjs +1 -1
- package/_mjs/typeclass/MonadExcept.mjs.map +1 -1
- package/_mjs/typeclass/Monoid.mjs +6 -15
- package/_mjs/typeclass/Monoid.mjs.map +1 -1
- package/_mjs/typeclass/Pointed.mjs.map +1 -1
- package/_mjs/typeclass/Semialign.mjs +7 -14
- package/_mjs/typeclass/Semialign.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/api.mjs +6 -8
- package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/definition.mjs +2 -3
- package/_mjs/typeclass/Semigroup/definition.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/derivations.mjs +7 -14
- package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup.mjs.map +1 -1
- package/_mjs/typeclass/Semimonoidal.mjs.map +1 -1
- package/_mjs/typeclass/Traversable.mjs +1 -3
- package/_mjs/typeclass/Traversable.mjs.map +1 -1
- package/_mjs/typeclass/TraversableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Witherable.mjs +2 -2
- package/_mjs/typeclass/Witherable.mjs.map +1 -1
- package/_mjs/typeclass/WitherableWithIndex.mjs +2 -1
- package/_mjs/typeclass/WitherableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/builtin.mjs.map +1 -1
- package/_mjs/typeclass.mjs +9 -8
- package/_mjs/typeclass.mjs.map +1 -1
- package/_mjs/types.mjs.map +1 -1
- package/_mjs/util/AnsiFormat.mjs +15 -42
- package/_mjs/util/AnsiFormat.mjs.map +1 -1
- package/_mjs/util/PCGRandom.mjs +16 -43
- package/_mjs/util/PCGRandom.mjs.map +1 -1
- package/_mjs/util/assert.mjs +0 -1
- package/_mjs/util/assert.mjs.map +1 -1
- package/_mjs/util/pattern.mjs.map +1 -1
- package/_mjs/util/predicates.mjs +0 -1
- package/_mjs/util/predicates.mjs.map +1 -1
- package/_mjs/util/rand/Random.mjs +0 -17
- package/_mjs/util/rand/Random.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformArrayIntDistribution.mjs +0 -4
- package/_mjs/util/rand/distribution/UniformArrayIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformBigIntDistribution.mjs +4 -12
- package/_mjs/util/rand/distribution/UniformBigIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/UniformIntDistribution.mjs +0 -9
- package/_mjs/util/rand/distribution/UniformIntDistribution.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/ArrayInt.mjs +6 -36
- package/_mjs/util/rand/distribution/internals/ArrayInt.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.mjs +6 -9
- package/_mjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.mjs.map +1 -1
- package/_mjs/util/rand/distribution/internals/UniformIntDistributionInternal.mjs +8 -13
- package/_mjs/util/rand/distribution/internals/UniformIntDistributionInternal.mjs.map +1 -1
- package/_mjs/util/rand/generator/MersenneTwister.mjs +5 -23
- package/_mjs/util/rand/generator/MersenneTwister.mjs.map +1 -1
- package/_mjs/util/rand/generator/RandomGenerator.mjs +0 -4
- package/_mjs/util/rand/generator/RandomGenerator.mjs.map +1 -1
- package/_mjs/util/rand.mjs.map +1 -1
- package/_src/collection/Iterable/api/traverseConc.ts +3 -3
- package/_src/collection/Iterable/api.ts +458 -414
- package/_src/collection/Iterable/constructors.ts +3 -1
- package/_src/collection/compat/Array/api.ts +17 -14
- package/_src/collection/compat/Array.ts +0 -1
- package/_src/collection/compat/ArrayLike/api.ts +2 -2
- package/_src/collection/compat.ts +0 -1
- package/_src/collection/immutable/Conc/api.ts +716 -607
- package/_src/collection/immutable/Conc/definition.ts +62 -70
- package/_src/collection/immutable/Conc.ts +0 -1
- package/_src/collection/immutable/Dictionary/api.ts +44 -32
- package/_src/collection/immutable/Dictionary.ts +4 -0
- package/_src/collection/immutable/HashMap/api.ts +371 -263
- package/_src/collection/immutable/HashMap/definition.ts +17 -3
- package/_src/collection/immutable/HashMap/internal.ts +5 -9
- package/_src/collection/immutable/HashSet/api.ts +237 -190
- package/_src/collection/immutable/HashSet/definition.ts +23 -9
- package/_src/collection/immutable/ImmutableArray/api/chunksOf.ts +5 -3
- package/_src/collection/immutable/ImmutableArray/api/slice.ts +5 -3
- package/_src/collection/immutable/ImmutableArray/api/splitAt.ts +5 -3
- package/_src/collection/immutable/ImmutableArray/api/splitWhere.ts +13 -14
- package/_src/collection/immutable/ImmutableArray/api.ts +873 -723
- package/_src/collection/immutable/ImmutableArray/instances.ts +54 -73
- package/_src/collection/immutable/ImmutableArray.ts +0 -1
- package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +311 -273
- package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +19 -4
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +0 -1
- package/_src/collection/immutable/ImmutableNonEmptyArray/instances.ts +22 -23
- package/_src/collection/immutable/ImmutableNonEmptyArray.ts +0 -1
- package/_src/collection/immutable/List/api/foldLeft.ts +11 -9
- package/_src/collection/immutable/List/api.ts +156 -132
- package/_src/collection/immutable/List/constructors.ts +1 -1
- package/_src/collection/immutable/List.ts +0 -1
- package/_src/collection/immutable/Queue/api.ts +77 -61
- package/_src/collection/immutable/Queue/definition.ts +0 -1
- package/_src/collection/immutable/Queue/guards.ts +2 -2
- package/_src/collection/immutable/RoseTree/api.ts +38 -32
- package/_src/collection/immutable/RoseTree/definition.ts +2 -0
- package/_src/collection/immutable/SortedMap/api.ts +412 -381
- package/_src/collection/immutable/SortedMap/definition.ts +5 -0
- package/_src/collection/immutable/Vector/api.ts +640 -514
- package/_src/collection/immutable/Vector/definition.ts +11 -12
- package/_src/collection/immutable/Vector/internal.ts +37 -38
- package/_src/collection/immutable.ts +1 -0
- package/_src/collection/mutable/HashMap.ts +8 -11
- package/_src/collection/mutable/HashSet.ts +7 -8
- package/_src/collection/mutable/ListBuffer.ts +1 -1
- package/_src/collection/mutable/internal.ts +0 -2
- package/_src/collection/weak/IterableWeakMap.ts +11 -7
- package/_src/collection/weak/IterableWeakSet.ts +10 -5
- package/_src/control/Eval/api.ts +35 -19
- package/_src/control/Eval/instance.ts +5 -5
- package/_src/control/Z/api.ts +191 -208
- package/_src/control/Z/instances.ts +4 -5
- package/_src/control/Z/runtime.ts +190 -189
- package/_src/data/Branded/definition.ts +11 -12
- package/_src/data/Branded.ts +0 -1
- package/_src/data/CaseClass.ts +4 -1
- package/_src/data/Cause/api/fold.ts +13 -14
- package/_src/data/Cause/api/linearize.ts +4 -4
- package/_src/data/Cause/api/unified.ts +1 -1
- package/_src/data/Cause/api.ts +126 -108
- package/_src/data/Cause/definition.ts +2 -2
- package/_src/data/Cause.ts +0 -1
- package/_src/data/Const/api.ts +6 -4
- package/_src/data/Const/instances.ts +3 -3
- package/_src/data/Datum/api.ts +228 -198
- package/_src/data/Datum/definition.ts +2 -5
- package/_src/data/DatumEither/api.ts +208 -193
- package/_src/data/DecodeError/definition.ts +4 -2
- package/_src/data/Decoder/api.ts +498 -11
- package/_src/data/Duration/api.ts +24 -15
- package/_src/data/Either/api/align.ts +7 -2
- package/_src/data/Either/api/alignWith.ts +13 -15
- package/_src/data/Either/api.ts +141 -119
- package/_src/data/Either/constructors.ts +12 -10
- package/_src/data/Either/destructors.ts +11 -9
- package/_src/data/Either/instances.ts +27 -23
- package/_src/data/EitherT/api.ts +43 -49
- package/_src/data/Encoder/api.ts +375 -0
- package/_src/data/Encoder/definition.ts +16 -0
- package/_src/data/Encoder.ts +4 -0
- package/_src/data/Environment/api.ts +53 -45
- package/_src/data/Environment/definition.ts +1 -4
- package/_src/data/EnvironmentPatch.ts +10 -9
- package/_src/{typeclass → data}/Eq/definition.ts +2 -2
- package/_src/{typeclass → data}/Eq/derivations.ts +6 -6
- package/_src/{typeclass → data}/Eq.ts +0 -0
- package/_src/{typeclass → data}/Equatable/api.ts +2 -2
- package/_src/{typeclass → data}/Equatable/definition.ts +0 -0
- package/_src/{typeclass → data}/Equatable/fast-equals.ts +8 -61
- package/_src/{typeclass → data}/Equatable.ts +0 -0
- package/_src/data/ExecutionStrategy.ts +14 -24
- package/_src/data/Exit/api.ts +106 -75
- package/_src/data/Exit/constructors.ts +2 -2
- package/_src/data/FiberId/api.ts +21 -19
- package/_src/data/FiberId/constructors.ts +4 -5
- package/_src/data/FiberId/definition.ts +4 -1
- package/_src/data/Guard/api.ts +457 -0
- package/_src/{typeclass → data}/Guard/definition.ts +3 -1
- package/_src/data/Guard.ts +4 -0
- package/_src/{typeclass → data}/Hash.ts +0 -0
- package/_src/{typeclass → data}/HashEq.ts +4 -6
- package/_src/{typeclass → data}/Hashable/definition.ts +0 -0
- package/_src/{typeclass → data}/Hashable/hash.ts +1 -2
- package/_src/{typeclass → data}/Hashable.ts +0 -0
- package/_src/data/Identity/api.ts +20 -12
- package/_src/data/Identity/instances.ts +4 -7
- package/_src/data/Interval.ts +41 -31
- package/_src/data/Intervals.ts +31 -23
- package/_src/data/Maybe/api.ts +112 -79
- package/_src/data/Maybe/constructors.ts +3 -3
- package/_src/data/Maybe/definition.ts +11 -1
- package/_src/data/Maybe/destructors.ts +6 -4
- package/_src/data/Maybe/instances.ts +31 -21
- package/_src/data/Ord/api/contramap.ts +11 -0
- package/_src/data/Ord/api/max.ts +7 -0
- package/_src/data/Ord/api/min.ts +7 -0
- package/_src/{typeclass → data}/Ord/api.ts +0 -0
- package/_src/{typeclass → data}/Ord/definition.ts +2 -6
- package/_src/{typeclass → data}/Ord/instances.ts +6 -8
- package/_src/{typeclass → data}/Ord.ts +0 -0
- package/_src/{typeclass → data}/Ordering.ts +2 -0
- package/_src/data/Predicate/api.ts +14 -8
- package/_src/data/Refinement/api.ts +19 -13
- package/_src/{typeclass → data}/Showable/definition.ts +4 -4
- package/_src/{typeclass → data}/Showable/show.ts +23 -38
- package/_src/{typeclass → data}/Showable/styles.ts +0 -8
- package/_src/{typeclass → data}/Showable/util.ts +22 -57
- package/_src/{typeclass → data}/Showable.ts +0 -0
- package/_src/data/Struct/api.ts +75 -55
- package/_src/data/Tag/constructors.ts +1 -2
- package/_src/data/Tag/definition.ts +0 -1
- package/_src/data/These/api.ts +114 -114
- package/_src/data/These/destructors.ts +23 -24
- package/_src/data/Trace/api.ts +5 -3
- package/_src/data/Zipped.ts +3 -4
- package/_src/data/bigint/instances.ts +1 -0
- package/_src/data/boolean/instances.ts +1 -0
- package/_src/data/function/api.ts +6 -7
- package/_src/data/function/pipe.ts +9 -1
- package/_src/data/number/instances.ts +5 -5
- package/_src/data/object/instances.ts +0 -11
- package/_src/data/string/api.ts +40 -62
- package/_src/data/string/instances.ts +4 -4
- package/_src/data.ts +10 -0
- package/_src/global/api.ts +7 -12
- package/_src/global.ts +28 -12
- package/_src/internal/AtomicBoolean.ts +0 -1
- package/_src/internal/AtomicNumber.ts +0 -7
- package/_src/internal/AtomicReference.ts +0 -4
- package/_src/internal/Stack.ts +1 -7
- package/_src/optics/At/definition.ts +5 -3
- package/_src/optics/Fold/definition.ts +3 -10
- package/_src/optics/Getter/definition.ts +1 -2
- package/_src/optics/Index/definition.ts +1 -1
- package/_src/optics/Iso/api.ts +8 -6
- package/_src/optics/Iso/definition.ts +3 -3
- package/_src/optics/Lens/api.ts +44 -42
- package/_src/optics/Lens/definition.ts +5 -5
- package/_src/optics/Optional/api/compose.ts +9 -9
- package/_src/optics/Optional/definition.ts +9 -16
- package/_src/optics/Optional.ts +0 -1
- package/_src/optics/Prism/api/compose.ts +9 -6
- package/_src/optics/Prism/definition.ts +3 -3
- package/_src/optics/Prism.ts +0 -1
- package/_src/optics/Setter/definition.ts +3 -23
- package/_src/optics/Traversal/api/compose.ts +7 -8
- package/_src/optics/Traversal/api/fromTraversable.ts +1 -1
- package/_src/optics/Traversal/definition.ts +10 -15
- package/_src/optics/Traversal.ts +0 -1
- package/_src/typeclass/Align.ts +0 -3
- package/_src/typeclass/Alt.ts +2 -1
- package/_src/typeclass/Applicative.ts +0 -1
- package/_src/typeclass/ApplicativeExcept.ts +15 -10
- package/_src/typeclass/Apply.ts +34 -36
- package/_src/typeclass/Chain.ts +9 -12
- package/_src/typeclass/Closure.ts +2 -2
- package/_src/typeclass/Filterable.ts +19 -13
- package/_src/typeclass/FilterableWithIndex.ts +19 -13
- package/_src/typeclass/Foldable.ts +7 -10
- package/_src/typeclass/FoldableWithIndex.ts +7 -10
- package/_src/typeclass/Functor.ts +6 -4
- package/_src/typeclass/FunctorWithIndex.ts +3 -2
- package/_src/typeclass/Has.ts +6 -4
- package/_src/typeclass/MonadExcept.ts +1 -1
- package/_src/typeclass/Monoid.ts +2 -2
- package/_src/typeclass/Semialign.ts +43 -32
- package/_src/typeclass/Semigroup/api.ts +0 -2
- package/_src/typeclass/Semigroup/definition.ts +2 -2
- package/_src/typeclass/Semigroup/derivations.ts +5 -5
- package/_src/typeclass/Semimonoidal.ts +3 -2
- package/_src/typeclass/Traversable.ts +13 -18
- package/_src/typeclass/TraversableWithIndex.ts +5 -7
- package/_src/typeclass/Witherable.ts +21 -13
- package/_src/typeclass/WitherableWithIndex.ts +26 -17
- package/_src/typeclass/builtin/Symbol.ts +0 -1
- package/_src/typeclass.ts +9 -8
- package/_src/types/extractions.ts +12 -3
- package/_src/types/utility.ts +3 -5
- package/_src/util/AnsiFormat.ts +0 -25
- package/_src/util/PCGRandom.ts +4 -9
- package/_src/util/assert.ts +1 -2
- package/_src/util/pattern.ts +91 -12
- package/_src/util/predicates.ts +3 -1
- package/_src/util/rand/Random.ts +12 -16
- package/_src/util/rand/distribution/Distribution.ts +0 -1
- package/_src/util/rand/distribution/UniformArrayIntDistribution.ts +0 -3
- package/_src/util/rand/distribution/UniformBigIntDistribution.ts +0 -5
- package/_src/util/rand/distribution/UniformIntDistribution.ts +0 -7
- package/_src/util/rand/distribution/internals/ArrayInt.ts +3 -13
- package/_src/util/rand/distribution/internals/UniformArrayIntDistributionInternal.ts +0 -3
- package/_src/util/rand/distribution/internals/UniformIntDistributionInternal.ts +0 -4
- package/_src/util/rand/generator/MersenneTwister.ts +6 -29
- package/_src/util/rand/generator/RandomGenerator.ts +0 -3
- package/_src/util/rand.ts +0 -2
- package/collection/Iterable/api/traverseConc.d.ts +2 -2
- package/collection/Iterable/api.d.ts +71 -66
- package/collection/Iterable/constructors.d.ts +1 -1
- package/collection/compat/Array/api.d.ts +6 -6
- package/collection/compat/Array.d.ts +0 -1
- package/collection/compat/ArrayLike/api.d.ts +2 -2
- package/collection/compat.d.ts +0 -1
- package/collection/immutable/Conc/api.d.ts +108 -105
- package/collection/immutable/Conc/definition.d.ts +4 -4
- package/collection/immutable/Conc.d.ts +0 -1
- package/collection/immutable/Dictionary/api.d.ts +12 -12
- package/collection/immutable/Dictionary.d.ts +2 -0
- package/collection/immutable/HashMap/api.d.ts +91 -85
- package/collection/immutable/HashMap/definition.d.ts +13 -4
- package/collection/immutable/HashSet/api.d.ts +66 -51
- package/collection/immutable/HashSet/definition.d.ts +15 -6
- package/collection/immutable/ImmutableArray/api/chunksOf.d.ts +2 -2
- package/collection/immutable/ImmutableArray/api/slice.d.ts +2 -2
- package/collection/immutable/ImmutableArray/api/splitAt.d.ts +2 -2
- package/collection/immutable/ImmutableArray/api/splitWhere.d.ts +3 -3
- package/collection/immutable/ImmutableArray/api.d.ts +206 -206
- package/collection/immutable/ImmutableArray/definition.d.ts +2 -2
- package/collection/immutable/ImmutableArray.d.ts +0 -1
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +64 -63
- package/collection/immutable/ImmutableNonEmptyArray.d.ts +0 -1
- package/collection/immutable/List/api/foldLeft.d.ts +2 -2
- package/collection/immutable/List/api.d.ts +28 -26
- package/collection/immutable/List/constructors.d.ts +1 -1
- package/collection/immutable/Queue/api.d.ts +23 -23
- package/collection/immutable/Queue/guards.d.ts +1 -1
- package/collection/immutable/RoseTree/api.d.ts +14 -14
- package/collection/immutable/RoseTree/definition.d.ts +2 -2
- package/collection/immutable/SortedMap/api.d.ts +47 -46
- package/collection/immutable/SortedMap/definition.d.ts +3 -0
- package/collection/immutable/Vector/api.d.ts +136 -132
- package/collection/immutable/Vector/definition.d.ts +4 -4
- package/collection/immutable/Vector/internal.d.ts +2 -2
- package/collection/immutable.d.ts +1 -0
- package/collection/mutable/HashMap.d.ts +2 -2
- package/collection/mutable/HashSet.d.ts +2 -2
- package/collection/mutable/ListBuffer.d.ts +1 -1
- package/control/Eval/api.d.ts +12 -12
- package/control/Z/api.d.ts +68 -68
- package/control/Z/runtime.d.ts +10 -10
- package/data/Branded.d.ts +0 -1
- package/data/CaseClass.d.ts +2 -2
- package/data/Cause/api/fold.d.ts +3 -3
- package/data/Cause/api.d.ts +20 -20
- package/data/Const/api.d.ts +3 -3
- package/data/Datum/api.d.ts +44 -43
- package/data/Datum/definition.d.ts +2 -2
- package/data/DatumEither/api.d.ts +48 -46
- package/data/DecodeError/definition.d.ts +2 -1
- package/data/Decoder/api.d.ts +154 -6
- package/data/Duration/api.d.ts +12 -7
- package/data/Duration/definition.d.ts +2 -2
- package/data/Either/api/align.d.ts +5 -1
- package/data/Either/api/alignWith.d.ts +2 -2
- package/data/Either/api.d.ts +40 -46
- package/data/Either/constructors.d.ts +6 -6
- package/data/Either/destructors.d.ts +2 -2
- package/data/Either/instances.d.ts +1 -1
- package/data/EitherT/api.d.ts +6 -6
- package/data/Encoder/api.d.ts +214 -0
- package/data/Encoder/definition.d.ts +16 -0
- package/data/Encoder.d.ts +2 -0
- package/data/Environment/api.d.ts +14 -14
- package/data/Environment/definition.d.ts +2 -2
- package/data/EnvironmentPatch.d.ts +4 -4
- package/{typeclass → data}/Eq/definition.d.ts +3 -3
- package/{typeclass → data}/Eq/derivations.d.ts +3 -3
- package/{typeclass → data}/Eq.d.ts +0 -0
- package/{typeclass → data}/Equatable/api.d.ts +2 -2
- package/{typeclass → data}/Equatable/definition.d.ts +1 -1
- package/{typeclass → data}/Equatable/fast-equals.d.ts +0 -0
- package/{typeclass → data}/Equatable.d.ts +0 -0
- package/data/ExecutionStrategy.d.ts +1 -6
- package/data/Exit/api.d.ts +34 -34
- package/data/Exit/constructors.d.ts +2 -2
- package/data/Exit/definition.d.ts +1 -1
- package/data/FiberId/api.d.ts +2 -2
- package/data/FiberId/constructors.d.ts +1 -2
- package/data/FiberId/definition.d.ts +7 -5
- package/data/Guard/api.d.ts +242 -0
- package/{typeclass → data}/Guard/definition.d.ts +4 -2
- package/{typeclass → data}/Guard.d.ts +0 -0
- package/{typeclass → data}/Hash.d.ts +1 -1
- package/{typeclass → data}/HashEq.d.ts +6 -7
- package/{typeclass → data}/Hashable/definition.d.ts +1 -1
- package/{typeclass → data}/Hashable/hash.d.ts +11 -11
- package/{typeclass → data}/Hashable.d.ts +0 -0
- package/data/Identity/api.d.ts +8 -8
- package/data/Interval.d.ts +13 -12
- package/data/Intervals.d.ts +11 -11
- package/data/Maybe/api.d.ts +36 -37
- package/data/Maybe/constructors.d.ts +2 -2
- package/data/Maybe/definition.d.ts +9 -5
- package/data/Maybe/destructors.d.ts +2 -2
- package/data/Maybe/instances.d.ts +7 -1
- package/data/Ord/api/contramap.d.ts +6 -0
- package/data/Ord/api/max.d.ts +7 -0
- package/data/Ord/api/min.d.ts +7 -0
- package/{typeclass → data}/Ord/api.d.ts +0 -0
- package/data/Ord/definition.d.ts +19 -0
- package/{typeclass → data}/Ord/instances.d.ts +3 -3
- package/{typeclass → data}/Ord.d.ts +0 -0
- package/{typeclass → data}/Ordering.d.ts +5 -5
- package/data/Predicate/api.d.ts +5 -5
- package/data/Refinement/api.d.ts +9 -9
- package/data/Showable/definition.d.ts +17 -0
- package/{typeclass → data}/Showable/show.d.ts +1 -1
- package/{typeclass → data}/Showable/styles.d.ts +0 -0
- package/{typeclass → data}/Showable/util.d.ts +0 -0
- package/{typeclass → data}/Showable.d.ts +0 -0
- package/data/Struct/api.d.ts +13 -23
- package/data/Tag/constructors.d.ts +1 -2
- package/data/Tag/definition.d.ts +2 -3
- package/data/These/api.d.ts +18 -22
- package/data/These/destructors.d.ts +4 -4
- package/data/These/instances.d.ts +1 -1
- package/data/Trace/api.d.ts +2 -2
- package/data/bigint/instances.d.ts +1 -0
- package/data/boolean/instances.d.ts +1 -0
- package/data/function/api.d.ts +3 -3
- package/data/function/pipe.d.ts +7 -1
- package/data/number/instances.d.ts +1 -1
- package/data/object/instances.d.ts +0 -6
- package/data/string/api.d.ts +9 -49
- package/data.d.ts +10 -0
- package/global/api.d.ts +3 -3
- package/global.d.ts +28 -12
- package/internal/Stack.d.ts +1 -1
- package/optics/At/definition.d.ts +1 -1
- package/optics/Fold/definition.d.ts +2 -6
- package/optics/Getter/definition.d.ts +1 -1
- package/optics/Index/definition.d.ts +1 -1
- package/optics/Iso/api.d.ts +2 -2
- package/optics/Iso/definition.d.ts +2 -2
- package/optics/Lens/api.d.ts +10 -10
- package/optics/Lens/definition.d.ts +4 -4
- package/optics/Optional/api/compose.d.ts +2 -2
- package/optics/Optional/definition.d.ts +4 -8
- package/optics/Prism/api/compose.d.ts +2 -2
- package/optics/Prism/definition.d.ts +2 -2
- package/optics/Setter/definition.d.ts +2 -14
- package/optics/Traversal/api/compose.d.ts +2 -2
- package/optics/Traversal/definition.d.ts +4 -4
- package/package.json +2 -2
- package/typeclass/Alt.d.ts +1 -1
- package/typeclass/ApplicativeExcept.d.ts +2 -6
- package/typeclass/Apply.d.ts +7 -7
- package/typeclass/Chain.d.ts +4 -4
- package/typeclass/Closure.d.ts +2 -2
- package/typeclass/Filterable.d.ts +6 -6
- package/typeclass/FilterableWithIndex.d.ts +6 -6
- package/typeclass/Foldable.d.ts +4 -4
- package/typeclass/FoldableWithIndex.d.ts +4 -4
- package/typeclass/Functor.d.ts +2 -2
- package/typeclass/FunctorWithIndex.d.ts +1 -1
- package/typeclass/Has.d.ts +3 -3
- package/typeclass/Semialign.d.ts +14 -14
- package/typeclass/Semigroup/api.d.ts +1 -1
- package/typeclass/Semigroup/definition.d.ts +2 -2
- package/typeclass/Semimonoidal.d.ts +1 -1
- package/typeclass/Traversable.d.ts +4 -6
- package/typeclass/TraversableWithIndex.d.ts +2 -2
- package/typeclass/Witherable.d.ts +3 -3
- package/typeclass/WitherableWithIndex.d.ts +5 -5
- package/typeclass.d.ts +8 -8
- package/types/extractions.d.ts +10 -6
- package/util/assert.d.ts +1 -1
- package/_cjs/collection/compat/Array/derivations.cjs +0 -96
- package/_cjs/collection/compat/Array/derivations.cjs.map +0 -1
- package/_cjs/collection/compat/Record/instances.cjs +0 -128
- package/_cjs/collection/compat/Record/instances.cjs.map +0 -1
- package/_cjs/collection/compat/Record.cjs +0 -19
- package/_cjs/collection/compat/Record.cjs.map +0 -1
- package/_cjs/collection/immutable/Conc/derivations.cjs +0 -45
- package/_cjs/collection/immutable/Conc/derivations.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs +0 -41
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs +0 -62
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs.map +0 -1
- package/_cjs/data/Branded/derivations.cjs +0 -58
- package/_cjs/data/Branded/derivations.cjs.map +0 -1
- package/_cjs/typeclass/Eq/definition.cjs.map +0 -1
- package/_cjs/typeclass/Eq/derivations.cjs.map +0 -1
- package/_cjs/typeclass/Eq.cjs.map +0 -1
- package/_cjs/typeclass/Equatable/api.cjs.map +0 -1
- package/_cjs/typeclass/Equatable/definition.cjs.map +0 -1
- package/_cjs/typeclass/Equatable/fast-equals.cjs.map +0 -1
- package/_cjs/typeclass/Equatable.cjs.map +0 -1
- package/_cjs/typeclass/Guard/api.cjs +0 -40
- package/_cjs/typeclass/Guard/api.cjs.map +0 -1
- package/_cjs/typeclass/Guard/definition.cjs.map +0 -1
- package/_cjs/typeclass/Guard/derivations.cjs +0 -85
- package/_cjs/typeclass/Guard/derivations.cjs.map +0 -1
- package/_cjs/typeclass/Guard.cjs.map +0 -1
- package/_cjs/typeclass/Hash.cjs.map +0 -1
- package/_cjs/typeclass/HashEq.cjs.map +0 -1
- package/_cjs/typeclass/Hashable/definition.cjs.map +0 -1
- package/_cjs/typeclass/Hashable/hash.cjs.map +0 -1
- package/_cjs/typeclass/Hashable.cjs.map +0 -1
- package/_cjs/typeclass/Ord/api/contramap.cjs +0 -17
- package/_cjs/typeclass/Ord/api/contramap.cjs.map +0 -1
- package/_cjs/typeclass/Ord/api/max.cjs.map +0 -1
- package/_cjs/typeclass/Ord/api/min.cjs.map +0 -1
- package/_cjs/typeclass/Ord/api.cjs.map +0 -1
- package/_cjs/typeclass/Ord/definition.cjs.map +0 -1
- package/_cjs/typeclass/Ord/instances.cjs.map +0 -1
- package/_cjs/typeclass/Ord.cjs.map +0 -1
- package/_cjs/typeclass/Ordering.cjs.map +0 -1
- package/_cjs/typeclass/Showable/definition.cjs.map +0 -1
- package/_cjs/typeclass/Showable/show.cjs.map +0 -1
- package/_cjs/typeclass/Showable/styles.cjs.map +0 -1
- package/_cjs/typeclass/Showable/util.cjs.map +0 -1
- package/_cjs/typeclass/Showable.cjs.map +0 -1
- package/_mjs/collection/compat/Array/derivations.mjs +0 -70
- package/_mjs/collection/compat/Array/derivations.mjs.map +0 -1
- package/_mjs/collection/compat/Record/instances.mjs +0 -105
- package/_mjs/collection/compat/Record/instances.mjs.map +0 -1
- package/_mjs/collection/compat/Record.mjs +0 -3
- package/_mjs/collection/compat/Record.mjs.map +0 -1
- package/_mjs/collection/immutable/Conc/derivations.mjs +0 -27
- package/_mjs/collection/immutable/Conc/derivations.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs +0 -25
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs +0 -39
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs.map +0 -1
- package/_mjs/data/Branded/derivations.mjs +0 -40
- package/_mjs/data/Branded/derivations.mjs.map +0 -1
- package/_mjs/typeclass/Eq/definition.mjs.map +0 -1
- package/_mjs/typeclass/Eq/derivations.mjs.map +0 -1
- package/_mjs/typeclass/Eq.mjs.map +0 -1
- package/_mjs/typeclass/Equatable/api.mjs.map +0 -1
- package/_mjs/typeclass/Equatable/definition.mjs.map +0 -1
- package/_mjs/typeclass/Equatable/fast-equals.mjs.map +0 -1
- package/_mjs/typeclass/Equatable.mjs.map +0 -1
- package/_mjs/typeclass/Guard/api.mjs +0 -24
- package/_mjs/typeclass/Guard/api.mjs.map +0 -1
- package/_mjs/typeclass/Guard/definition.mjs.map +0 -1
- package/_mjs/typeclass/Guard/derivations.mjs +0 -67
- package/_mjs/typeclass/Guard/derivations.mjs.map +0 -1
- package/_mjs/typeclass/Guard.mjs +0 -4
- package/_mjs/typeclass/Guard.mjs.map +0 -1
- package/_mjs/typeclass/Hash.mjs.map +0 -1
- package/_mjs/typeclass/HashEq.mjs +0 -33
- package/_mjs/typeclass/HashEq.mjs.map +0 -1
- package/_mjs/typeclass/Hashable/definition.mjs.map +0 -1
- package/_mjs/typeclass/Hashable/hash.mjs.map +0 -1
- package/_mjs/typeclass/Hashable.mjs.map +0 -1
- package/_mjs/typeclass/Ord/api/contramap.mjs +0 -10
- package/_mjs/typeclass/Ord/api/contramap.mjs.map +0 -1
- package/_mjs/typeclass/Ord/api/max.mjs +0 -8
- package/_mjs/typeclass/Ord/api/max.mjs.map +0 -1
- package/_mjs/typeclass/Ord/api/min.mjs +0 -8
- package/_mjs/typeclass/Ord/api/min.mjs.map +0 -1
- package/_mjs/typeclass/Ord/api.mjs.map +0 -1
- package/_mjs/typeclass/Ord/definition.mjs +0 -13
- package/_mjs/typeclass/Ord/definition.mjs.map +0 -1
- package/_mjs/typeclass/Ord/instances.mjs +0 -37
- package/_mjs/typeclass/Ord/instances.mjs.map +0 -1
- package/_mjs/typeclass/Ord.mjs.map +0 -1
- package/_mjs/typeclass/Ordering.mjs.map +0 -1
- package/_mjs/typeclass/Showable/definition.mjs.map +0 -1
- package/_mjs/typeclass/Showable/show.mjs.map +0 -1
- package/_mjs/typeclass/Showable/styles.mjs.map +0 -1
- package/_mjs/typeclass/Showable/util.mjs.map +0 -1
- package/_mjs/typeclass/Showable.mjs.map +0 -1
- package/_src/collection/compat/Array/derivations.ts +0 -85
- package/_src/collection/compat/Record/instances.ts +0 -102
- package/_src/collection/compat/Record.ts +0 -3
- package/_src/collection/immutable/Conc/derivations.ts +0 -28
- package/_src/collection/immutable/ImmutableArray/derivations.ts +0 -28
- package/_src/collection/immutable/ImmutableNonEmptyArray/derivations.ts +0 -44
- package/_src/data/Branded/derivations.ts +0 -58
- package/_src/typeclass/Guard/api.ts +0 -32
- package/_src/typeclass/Guard/derivations.ts +0 -81
- package/_src/typeclass/Guard.ts +0 -4
- package/_src/typeclass/Ord/api/contramap.ts +0 -11
- package/_src/typeclass/Ord/api/max.ts +0 -9
- package/_src/typeclass/Ord/api/min.ts +0 -9
- package/collection/compat/Array/derivations.d.ts +0 -24
- package/collection/compat/Record/instances.d.ts +0 -22
- package/collection/compat/Record.d.ts +0 -1
- package/collection/immutable/Conc/derivations.d.ts +0 -14
- package/collection/immutable/ImmutableArray/derivations.d.ts +0 -14
- package/collection/immutable/ImmutableNonEmptyArray/derivations.d.ts +0 -14
- package/data/Branded/derivations.d.ts +0 -24
- package/typeclass/Guard/api.d.ts +0 -20
- package/typeclass/Guard/derivations.d.ts +0 -36
- package/typeclass/Ord/api/contramap.d.ts +0 -6
- package/typeclass/Ord/api/max.d.ts +0 -7
- package/typeclass/Ord/api/min.d.ts +0 -7
- package/typeclass/Ord/definition.d.ts +0 -19
- package/typeclass/Showable/definition.d.ts +0 -17
|
@@ -12,995 +12,912 @@ import * as tsplus_module_11 from "@fncts/base/data/Maybe/constructors";
|
|
|
12
12
|
import * as tsplus_module_12 from "@fncts/base/collection/immutable/ImmutableNonEmptyArray/constructors";
|
|
13
13
|
import * as tsplus_module_13 from "@fncts/base/collection/immutable/Dictionary/definition";
|
|
14
14
|
import * as tsplus_module_14 from "@fncts/base/collection/immutable/Dictionary/api";
|
|
15
|
-
import * as tsplus_module_15 from "@fncts/base/
|
|
16
|
-
import * as tsplus_module_16 from "@fncts/base/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const flatMapWithIndex_ = flatMapWithIndex_1;
|
|
23
|
-
export const flatMap_ = flatMap_1;
|
|
15
|
+
import * as tsplus_module_15 from "@fncts/base/data/Ord/instances";
|
|
16
|
+
import * as tsplus_module_16 from "@fncts/base/data/Either/destructors";
|
|
17
|
+
export const alignWith = alignWith_1;
|
|
18
|
+
export const append = append_1;
|
|
19
|
+
export const crossWith = crossWith_1;
|
|
20
|
+
export const flatMapWithIndex = flatMapWithIndex_1;
|
|
21
|
+
export const flatMap = flatMap_1;
|
|
24
22
|
export const flatten = flatten_1;
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
33
|
-
export const
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
36
|
-
export const
|
|
23
|
+
export const chop = chop_1;
|
|
24
|
+
export const concat = concat_1;
|
|
25
|
+
export const elem = elem_1;
|
|
26
|
+
export const everyWithIndex = everyWithIndex_1;
|
|
27
|
+
export const filter = filter_1;
|
|
28
|
+
export const filterWithIndex = filterWithIndex_1;
|
|
29
|
+
export const filterMapWithIndex = filterMapWithIndex_1;
|
|
30
|
+
export const findWithIndex = findWithIndex_1;
|
|
31
|
+
export const findMapWithIndex = findMapWithIndex_1;
|
|
32
|
+
export const findLastMapWithIndex = findLastMapWithIndex_1;
|
|
33
|
+
export const foldLeftWithIndex = foldLeftWithIndex_1;
|
|
34
|
+
export const foldLeft = foldLeft_1;
|
|
35
|
+
export const foldLeftWithIndexWhile = foldLeftWithIndexWhile_1;
|
|
37
36
|
export const fold = fold_1;
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
41
|
-
export const
|
|
42
|
-
export const
|
|
37
|
+
export const foldMapWithIndex = foldMapWithIndex_1;
|
|
38
|
+
export const foldRightWithIndex = foldRightWithIndex_1;
|
|
39
|
+
export const foldRightWithIndexWhile = foldRightWithIndexWhile_1;
|
|
40
|
+
export const forEach = forEach_1;
|
|
41
|
+
export const get = get_1;
|
|
43
42
|
export const isEmpty = isEmpty_1;
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
43
|
+
export const isOutOfBound = isOutOfBound_1;
|
|
44
|
+
export const map = map_1;
|
|
45
|
+
export const mapWithIndex = mapWithIndex_1;
|
|
46
|
+
export const mutate = mutate_1;
|
|
48
47
|
export const mutableClone = mutableClone_1;
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
52
|
-
export const
|
|
53
|
-
export const
|
|
48
|
+
export const partitionWithIndex = partitionWithIndex_1;
|
|
49
|
+
export const partitionMapWithIndex = partitionMapWithIndex_1;
|
|
50
|
+
export const prepend = prepend_1;
|
|
51
|
+
export const prependAll = prependAll_1;
|
|
52
|
+
export const rotate = rotate_1;
|
|
54
53
|
export const sort = sort_1;
|
|
55
|
-
export const
|
|
56
|
-
export const
|
|
54
|
+
export const spanIndexLeft = spanIndexLeft_1;
|
|
55
|
+
export const spanIndexRight = spanIndexRight_1;
|
|
56
|
+
export const _traverseWithIndex = _traverseWithIndex_1;
|
|
57
|
+
export const _traverse = _traverse_1;
|
|
57
58
|
export const unsafeGet = unsafeGet_1;
|
|
58
59
|
export const unsafeAsMutable = unsafeAsMutable_1;
|
|
59
|
-
export const
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
63
|
-
export const
|
|
64
|
-
|
|
60
|
+
export const unsafeDeleteAt = unsafeDeleteAt_1;
|
|
61
|
+
export const unsafeInsertAt = unsafeInsertAt_1;
|
|
62
|
+
export const unsafeModifyAt = unsafeModifyAt_1;
|
|
63
|
+
export const unsafeUpdateAt = unsafeUpdateAt_1;
|
|
64
|
+
export const _wiltWithIndex = _wiltWithIndex_1;
|
|
65
|
+
export const _witherWithIndex = _witherWithIndex_1;
|
|
66
|
+
export const zipWith = zipWith_1;
|
|
67
|
+
import { identity, pipe, tuple } from "@fncts/base/data/function";
|
|
65
68
|
import * as P from "@fncts/base/typeclass";
|
|
66
69
|
/**
|
|
67
|
-
* @tsplus
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
ret[i] = f(tsplus_module_1.both(selfArray[i], thatArray[i]));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (minlen === maxlen) {
|
|
82
|
-
return tsplus_module_2.asImmutableArray(ret);
|
|
83
|
-
} else if (selfArray.length > thatArray.length) {
|
|
84
|
-
for (let i = minlen; i < maxlen; i++) {
|
|
85
|
-
ret[i] = f(tsplus_module_1.left(selfArray[i]));
|
|
70
|
+
* @tsplus pipeable fncts.ImmutableArray alignWith
|
|
71
|
+
*/
|
|
72
|
+
function alignWith_1(fb, f) {
|
|
73
|
+
return self => {
|
|
74
|
+
const selfArray = self._array;
|
|
75
|
+
const thatArray = fb._array;
|
|
76
|
+
const minlen = Math.min(selfArray.length, thatArray.length);
|
|
77
|
+
const maxlen = Math.max(selfArray.length, thatArray.length);
|
|
78
|
+
const ret = Array(maxlen);
|
|
79
|
+
for (let i = 0; i < minlen; i++) {
|
|
80
|
+
ret[i] = f(tsplus_module_1.both(selfArray[i], thatArray[i]));
|
|
86
81
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
if (minlen === maxlen) {
|
|
83
|
+
return tsplus_module_2.asImmutableArray(ret);
|
|
84
|
+
} else if (selfArray.length > thatArray.length) {
|
|
85
|
+
for (let i = minlen; i < maxlen; i++) {
|
|
86
|
+
ret[i] = f(tsplus_module_1.left(selfArray[i]));
|
|
87
|
+
}
|
|
88
|
+
} else {
|
|
89
|
+
for (let i = minlen; i < maxlen; i++) {
|
|
90
|
+
ret[i] = f(tsplus_module_1.right(thatArray[i]));
|
|
91
|
+
}
|
|
90
92
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
return tsplus_module_2.asImmutableArray(ret);
|
|
93
|
+
return tsplus_module_2.asImmutableArray(ret);
|
|
94
|
+
};
|
|
94
95
|
}
|
|
95
96
|
/**
|
|
96
|
-
* @tsplus
|
|
97
|
+
* @tsplus pipeable fncts.ImmutableArray align
|
|
97
98
|
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
export function align(fb) {
|
|
100
|
+
return self => {
|
|
101
|
+
return alignWith_1(fb, identity)(self);
|
|
102
|
+
};
|
|
102
103
|
}
|
|
103
104
|
/**
|
|
104
|
-
* @tsplus
|
|
105
|
+
* @tsplus pipeable fncts.ImmutableArray alt
|
|
105
106
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
export function alt(that) {
|
|
108
|
+
return self => {
|
|
109
|
+
return concat_1(that())(self);
|
|
110
|
+
};
|
|
109
111
|
}
|
|
110
112
|
/**
|
|
111
|
-
* @tsplus
|
|
113
|
+
* @tsplus pipeable fncts.ImmutableArray ap
|
|
112
114
|
*/
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
export function ap(fa) {
|
|
116
|
+
return self => {
|
|
117
|
+
return flatMap_1(f => map_1(f)(fa))(self);
|
|
118
|
+
};
|
|
116
119
|
}
|
|
117
120
|
/**
|
|
118
|
-
* @tsplus
|
|
121
|
+
* @tsplus pipeable fncts.ImmutableArray append
|
|
119
122
|
*/
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
return tsplus_module_2.asImmutableArray(r);
|
|
123
|
+
function append_1(last) {
|
|
124
|
+
return self => {
|
|
125
|
+
const selfArray = self._array;
|
|
126
|
+
const len = selfArray.length;
|
|
127
|
+
const r = Array(len + 1);
|
|
128
|
+
r[len] = last;
|
|
129
|
+
for (let i = 0; i < len; i++) {
|
|
130
|
+
r[i] = selfArray[i];
|
|
131
|
+
}
|
|
132
|
+
return tsplus_module_2.asImmutableArray(r);
|
|
133
|
+
};
|
|
132
134
|
}
|
|
133
135
|
/**
|
|
134
|
-
* @tsplus
|
|
136
|
+
* @tsplus pipeable fncts.ImmutableArray crossWith
|
|
135
137
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
function crossWith_1(fb, f) {
|
|
139
|
+
return self => {
|
|
140
|
+
return flatMap_1(a => map_1(b => f(a, b))(fb))(self);
|
|
141
|
+
};
|
|
140
142
|
}
|
|
141
143
|
/**
|
|
142
|
-
* @tsplus
|
|
144
|
+
* @tsplus pipeable fncts.ImmutableArray cross
|
|
143
145
|
*/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
export function cross(fb) {
|
|
147
|
+
return self => {
|
|
148
|
+
return crossWith_1(fb, (a, b) => tsplus_module_3.make(a, b))(self);
|
|
149
|
+
};
|
|
148
150
|
}
|
|
149
151
|
/**
|
|
150
152
|
* @tsplus static fncts.ImmutableArrayOps chainRecDepthFirst
|
|
151
153
|
*/
|
|
152
|
-
|
|
153
154
|
export function chainRecDepthFirst(a, f) {
|
|
154
|
-
const buffer = unsafeAsMutable_1(tsplus_module_4.
|
|
155
|
+
const buffer = unsafeAsMutable_1(tsplus_module_4.slice()(f(a)));
|
|
155
156
|
const out = [];
|
|
156
|
-
|
|
157
157
|
while (buffer.length > 0) {
|
|
158
158
|
const e = buffer.shift();
|
|
159
159
|
void 0;
|
|
160
|
-
|
|
161
|
-
if (e._tag === "Left"
|
|
162
|
-
/* EitherTag.Left */
|
|
163
|
-
) {
|
|
160
|
+
if (e._tag === "Left" /* EitherTag.Left */) {
|
|
164
161
|
buffer.unshift(...f(e.left));
|
|
165
162
|
} else {
|
|
166
163
|
out.push(e.right);
|
|
167
164
|
}
|
|
168
165
|
}
|
|
169
|
-
|
|
170
166
|
return tsplus_module_2.asImmutableArray(out);
|
|
171
167
|
}
|
|
172
168
|
/**
|
|
173
169
|
* @tsplus static fncts.ImmutableArrayOps chainRecBreadthFirst
|
|
174
170
|
*/
|
|
175
|
-
|
|
176
171
|
export function chainRecBreadthFirst(a, f) {
|
|
177
172
|
const initial = f(a);
|
|
178
173
|
const buffer = [];
|
|
179
174
|
const out = [];
|
|
180
|
-
|
|
181
175
|
function go(e) {
|
|
182
176
|
void 0;
|
|
183
|
-
|
|
184
177
|
if (e._tag === "Left") {
|
|
185
|
-
forEach_1(
|
|
178
|
+
forEach_1(v => buffer.push(v))(f(e.left));
|
|
186
179
|
} else {
|
|
187
180
|
out.push(e.right);
|
|
188
181
|
}
|
|
189
182
|
}
|
|
190
|
-
|
|
191
183
|
for (const e of initial) {
|
|
192
184
|
go(e);
|
|
193
185
|
}
|
|
194
|
-
|
|
195
186
|
while (buffer.length > 0) {
|
|
196
187
|
go(buffer.shift());
|
|
197
188
|
}
|
|
198
|
-
|
|
199
189
|
return tsplus_module_2.asImmutableArray(out);
|
|
200
190
|
}
|
|
201
191
|
/**
|
|
202
|
-
* @tsplus
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
outLen += arr.length;
|
|
217
|
-
temp[i] = arr;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
const out = Array(outLen);
|
|
221
|
-
let start = 0;
|
|
222
|
-
|
|
223
|
-
for (let i = 0; i < len; i++) {
|
|
224
|
-
const arr = temp[i];
|
|
225
|
-
const l = arr.length;
|
|
226
|
-
|
|
227
|
-
for (let j = 0; j < l; j++) {
|
|
228
|
-
out[j + start] = arr[j];
|
|
192
|
+
* @tsplus pipeable fncts.ImmutableArray flatMapWithIndex
|
|
193
|
+
*/
|
|
194
|
+
function flatMapWithIndex_1(f) {
|
|
195
|
+
return self => {
|
|
196
|
+
let outLen = 0;
|
|
197
|
+
const selfArray = self._array;
|
|
198
|
+
const len = selfArray.length;
|
|
199
|
+
const temp = Array(len);
|
|
200
|
+
for (let i = 0; i < len; i++) {
|
|
201
|
+
const e = selfArray[i];
|
|
202
|
+
const arr = f(i, e)._array;
|
|
203
|
+
outLen += arr.length;
|
|
204
|
+
temp[i] = arr;
|
|
229
205
|
}
|
|
230
|
-
|
|
231
|
-
start
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
206
|
+
const out = Array(outLen);
|
|
207
|
+
let start = 0;
|
|
208
|
+
for (let i = 0; i < len; i++) {
|
|
209
|
+
const arr = temp[i];
|
|
210
|
+
const l = arr.length;
|
|
211
|
+
for (let j = 0; j < l; j++) {
|
|
212
|
+
out[j + start] = arr[j];
|
|
213
|
+
}
|
|
214
|
+
start += l;
|
|
215
|
+
}
|
|
216
|
+
return tsplus_module_2.asImmutableArray(out);
|
|
217
|
+
};
|
|
235
218
|
}
|
|
236
219
|
/**
|
|
237
|
-
* @tsplus
|
|
220
|
+
* @tsplus pipeable fncts.ImmutableArray flatMap
|
|
238
221
|
*/
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
222
|
+
function flatMap_1(f) {
|
|
223
|
+
return self => {
|
|
224
|
+
return flatMapWithIndex_1((_, a) => f(a))(self);
|
|
225
|
+
};
|
|
243
226
|
}
|
|
244
227
|
/**
|
|
245
228
|
* @tsplus getter fncts.ImmutableArray flatten
|
|
246
229
|
*/
|
|
247
|
-
|
|
248
|
-
|
|
249
230
|
function flatten_1(self) {
|
|
250
|
-
return flatMap_1(
|
|
231
|
+
return flatMap_1(identity)(self);
|
|
251
232
|
}
|
|
252
233
|
/**
|
|
253
234
|
* A useful recursion pattern for processing a `Array` to produce a new `Array`,
|
|
254
235
|
* often used for "chopping" up the input `Array`. Typically chop is called with some function
|
|
255
236
|
* that will consume an initial prefix of the `Array` and produce a value and the rest of the `Array`.
|
|
256
237
|
*
|
|
257
|
-
* @tsplus
|
|
258
|
-
*/
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
result.push(b);
|
|
268
|
-
cs = c;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
return tsplus_module_2.asImmutableArray(result);
|
|
272
|
-
}
|
|
273
|
-
export const chop = f => as => chop_(as, f);
|
|
274
|
-
/**
|
|
275
|
-
* @tsplus fluent fncts.ImmutableArray collectWhile
|
|
276
|
-
*/
|
|
277
|
-
|
|
278
|
-
export function collectWhile_(as, f) {
|
|
279
|
-
const result = [];
|
|
280
|
-
|
|
281
|
-
for (let i = 0; i < tsplus_module_5.length(as); i++) {
|
|
282
|
-
const o = f(as._array[i]);
|
|
283
|
-
|
|
284
|
-
if (tsplus_module_6.isJust(o)) {
|
|
285
|
-
result.push(o.value);
|
|
286
|
-
} else {
|
|
287
|
-
break;
|
|
238
|
+
* @tsplus pipeable fncts.ImmutableArray chop
|
|
239
|
+
*/
|
|
240
|
+
function chop_1(f) {
|
|
241
|
+
return as => {
|
|
242
|
+
const result = [];
|
|
243
|
+
let cs = as;
|
|
244
|
+
while (tsplus_module_5.isNonEmpty(cs)) {
|
|
245
|
+
const [b, c] = f(cs);
|
|
246
|
+
result.push(b);
|
|
247
|
+
cs = c;
|
|
288
248
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
249
|
+
return tsplus_module_2.asImmutableArray(result);
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* @tsplus pipeable fncts.ImmutableArray collectWhile
|
|
254
|
+
*/
|
|
255
|
+
export function collectWhile(f) {
|
|
256
|
+
return as => {
|
|
257
|
+
const result = [];
|
|
258
|
+
for (let i = 0; i < tsplus_module_5.length(as); i++) {
|
|
259
|
+
const o = f(as._array[i]);
|
|
260
|
+
if (tsplus_module_6.isJust(o)) {
|
|
261
|
+
result.push(o.value);
|
|
262
|
+
} else {
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return tsplus_module_2.asImmutableArray(result);
|
|
267
|
+
};
|
|
292
268
|
}
|
|
293
|
-
|
|
294
269
|
function comprehensionLoop(scope, input, f, g) {
|
|
295
270
|
if (input.length === 0) {
|
|
296
271
|
return g(...scope) ? tsplus_module_7.now(tsplus_module_2.make(f(...scope))) : tsplus_module_7.now(tsplus_module_2.empty());
|
|
297
272
|
} else {
|
|
298
|
-
return tsplus_module_9.
|
|
273
|
+
return tsplus_module_9.map(rs => flatten_1(rs))(_traverse_1(input[0])(tsplus_module_8.Applicative)(a => comprehensionLoop(append_1(a)(scope), input.slice(1), f, g)));
|
|
299
274
|
}
|
|
300
275
|
}
|
|
301
|
-
|
|
302
276
|
export function comprehension(input, f, g = () => true) {
|
|
303
277
|
return tsplus_module_10.run(comprehensionLoop(tsplus_module_2.empty(), input, f, g));
|
|
304
278
|
}
|
|
305
279
|
/**
|
|
306
|
-
* @tsplus
|
|
307
|
-
* @tsplus operator fncts.ImmutableArray +
|
|
280
|
+
* @tsplus pipeable fncts.ImmutableArray concat
|
|
281
|
+
* @tsplus pipeable-operator fncts.ImmutableArray +
|
|
308
282
|
*/
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
for (let i = 0; i < leny; i++) {
|
|
330
|
-
r[i + lenx] = that._array[i];
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return tsplus_module_2.asImmutableArray(r);
|
|
283
|
+
function concat_1(that) {
|
|
284
|
+
return self => {
|
|
285
|
+
const lenx = self._array.length;
|
|
286
|
+
if (lenx === 0) {
|
|
287
|
+
return that;
|
|
288
|
+
}
|
|
289
|
+
const leny = that._array.length;
|
|
290
|
+
if (leny === 0) {
|
|
291
|
+
return self;
|
|
292
|
+
}
|
|
293
|
+
const r = Array(lenx + leny);
|
|
294
|
+
for (let i = 0; i < lenx; i++) {
|
|
295
|
+
r[i] = self._array[i];
|
|
296
|
+
}
|
|
297
|
+
for (let i = 0; i < leny; i++) {
|
|
298
|
+
r[i + lenx] = that._array[i];
|
|
299
|
+
}
|
|
300
|
+
return tsplus_module_2.asImmutableArray(r);
|
|
301
|
+
};
|
|
334
302
|
}
|
|
335
303
|
/**
|
|
336
|
-
* @tsplus
|
|
304
|
+
* @tsplus pipeable fncts.ImmutableArray deleteAt
|
|
337
305
|
*/
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
306
|
+
export function deleteAt(i) {
|
|
307
|
+
return as => {
|
|
308
|
+
return isOutOfBound_1(i)(as) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeDeleteAt_1(i)(as));
|
|
309
|
+
};
|
|
342
310
|
}
|
|
343
311
|
/**
|
|
344
|
-
* @tsplus
|
|
312
|
+
* @tsplus pipeable fncts.ImmutableArray difference
|
|
345
313
|
*/
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
return filter_1(self, a => !elem_1(ys, a, E));
|
|
314
|
+
export function difference(ys, /** @tsplus auto */E) {
|
|
315
|
+
return self => {
|
|
316
|
+
return filter_1(a => !elem_1(a, E)(ys))(self);
|
|
317
|
+
};
|
|
351
318
|
}
|
|
352
319
|
/**
|
|
353
|
-
* @tsplus
|
|
320
|
+
* @tsplus pipeable fncts.ImmutableArray drop
|
|
354
321
|
*/
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
322
|
+
export function drop(n) {
|
|
323
|
+
return self => {
|
|
324
|
+
return tsplus_module_4.slice(n)(self);
|
|
325
|
+
};
|
|
358
326
|
}
|
|
359
327
|
/**
|
|
360
|
-
* @tsplus
|
|
328
|
+
* @tsplus pipeable fncts.ImmutableArray dropLast
|
|
361
329
|
*/
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
330
|
+
export function dropLast(n) {
|
|
331
|
+
return self => {
|
|
332
|
+
return tsplus_module_4.slice(0, tsplus_module_5.length(self) - n)(self);
|
|
333
|
+
};
|
|
365
334
|
}
|
|
366
335
|
/**
|
|
367
|
-
* @tsplus
|
|
336
|
+
* @tsplus pipeable fncts.ImmutableArray dropWhile
|
|
368
337
|
*/
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
338
|
+
export function dropWhile(p) {
|
|
339
|
+
return self => {
|
|
340
|
+
return tsplus_module_4.slice(spanIndexLeft_1(p)(self))(self);
|
|
341
|
+
};
|
|
372
342
|
}
|
|
373
343
|
/**
|
|
374
|
-
* @tsplus
|
|
344
|
+
* @tsplus pipeable fncts.ImmutableArray dropLastWhile
|
|
375
345
|
*/
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
346
|
+
export function dropLastWhile(p) {
|
|
347
|
+
return as => {
|
|
348
|
+
return tsplus_module_4.slice(0, spanIndexRight_1(p)(as) + 1)(as);
|
|
349
|
+
};
|
|
379
350
|
}
|
|
380
351
|
/**
|
|
381
352
|
* Test if a value is a member of an array. Takes an `Eq<A>` as a single
|
|
382
353
|
* argument which returns the function to use to search for a value of type `A` in
|
|
383
354
|
* an array of type `ImmutableArray<A>`.
|
|
384
355
|
*
|
|
385
|
-
* @tsplus
|
|
386
|
-
*/
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
for (let i = 0; i < len; i++) {
|
|
396
|
-
if (predicate(as._array[i])) {
|
|
397
|
-
return true;
|
|
356
|
+
* @tsplus pipeable fncts.ImmutableArray elem
|
|
357
|
+
*/
|
|
358
|
+
function elem_1(a, /** @tsplus auto */E) {
|
|
359
|
+
return as => {
|
|
360
|
+
const predicate = element => E.equals(a)(element);
|
|
361
|
+
const len = tsplus_module_5.length(as);
|
|
362
|
+
for (let i = 0; i < len; i++) {
|
|
363
|
+
if (predicate(as._array[i])) {
|
|
364
|
+
return true;
|
|
365
|
+
}
|
|
398
366
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
return result;
|
|
367
|
+
return false;
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
export function every(p) {
|
|
371
|
+
return self => {
|
|
372
|
+
return everyWithIndex_1((_, a) => p(a))(self);
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
function everyWithIndex_1(p) {
|
|
376
|
+
return self => {
|
|
377
|
+
let result = true;
|
|
378
|
+
let i = 0;
|
|
379
|
+
while (result && i < tsplus_module_5.length(self)) {
|
|
380
|
+
result = p(i, self._array[i]);
|
|
381
|
+
i++;
|
|
382
|
+
}
|
|
383
|
+
return result;
|
|
384
|
+
};
|
|
418
385
|
}
|
|
419
386
|
/**
|
|
420
|
-
* @tsplus
|
|
387
|
+
* @tsplus pipeable fncts.ImmutableArray some
|
|
421
388
|
*/
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
result = p(self._array[i]);
|
|
430
|
-
i++;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
return result;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
function filter_1(self, p) {
|
|
437
|
-
return filterWithIndex_1(self, (_, a) => p(a));
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
function filterWithIndex_1(self, p) {
|
|
441
|
-
const result = [];
|
|
442
|
-
|
|
443
|
-
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
444
|
-
const a = self._array[i];
|
|
445
|
-
|
|
446
|
-
if (p(i, a)) {
|
|
447
|
-
result.push(a);
|
|
389
|
+
export function some(p) {
|
|
390
|
+
return self => {
|
|
391
|
+
let result = false;
|
|
392
|
+
let i = 0;
|
|
393
|
+
while (!result && i < tsplus_module_5.length(self)) {
|
|
394
|
+
result = p(self._array[i]);
|
|
395
|
+
i++;
|
|
448
396
|
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
397
|
+
return result;
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
function filter_1(p) {
|
|
401
|
+
return self => {
|
|
402
|
+
return filterWithIndex_1((_, a) => p(a))(self);
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
function filterWithIndex_1(p) {
|
|
406
|
+
return self => {
|
|
407
|
+
const result = [];
|
|
408
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
409
|
+
const a = self._array[i];
|
|
410
|
+
if (p(i, a)) {
|
|
411
|
+
result.push(a);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
return tsplus_module_2.asImmutableArray(result);
|
|
415
|
+
};
|
|
452
416
|
}
|
|
453
417
|
/**
|
|
454
|
-
* @tsplus
|
|
418
|
+
* @tsplus pipeable fncts.ImmutableArray filterMapWithIndex
|
|
455
419
|
*/
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
if (tsplus_module_6.isJust(maybeB)) {
|
|
465
|
-
result.push(maybeB.value);
|
|
420
|
+
function filterMapWithIndex_1(f) {
|
|
421
|
+
return fa => {
|
|
422
|
+
const result = [];
|
|
423
|
+
for (let i = 0; i < tsplus_module_5.length(fa); i++) {
|
|
424
|
+
const maybeB = f(i, unsafeGet_1(fa, i));
|
|
425
|
+
if (tsplus_module_6.isJust(maybeB)) {
|
|
426
|
+
result.push(maybeB.value);
|
|
427
|
+
}
|
|
466
428
|
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
return tsplus_module_2.asImmutableArray(result);
|
|
429
|
+
return tsplus_module_2.asImmutableArray(result);
|
|
430
|
+
};
|
|
470
431
|
}
|
|
471
432
|
/**
|
|
472
|
-
* @tsplus
|
|
433
|
+
* @tsplus pipeable fncts.ImmutableArray filterMap
|
|
473
434
|
*/
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
435
|
+
export function filterMap(f) {
|
|
436
|
+
return self => {
|
|
437
|
+
return filterMapWithIndex_1((_, a) => f(a))(self);
|
|
438
|
+
};
|
|
478
439
|
}
|
|
479
|
-
export function
|
|
480
|
-
return
|
|
440
|
+
export function find(p) {
|
|
441
|
+
return self => {
|
|
442
|
+
return findWithIndex_1((_, a) => p(a))(self);
|
|
443
|
+
};
|
|
481
444
|
}
|
|
482
445
|
/**
|
|
483
|
-
* @tsplus
|
|
446
|
+
* @tsplus pipeable fncts.ImmutableArray findIndex
|
|
484
447
|
*/
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
448
|
+
export function findIndex(predicate) {
|
|
449
|
+
return as => {
|
|
450
|
+
return findMapWithIndex_1((i, a) => predicate(a) ? tsplus_module_11.just(i) : tsplus_module_11.nothing())(as);
|
|
451
|
+
};
|
|
488
452
|
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
453
|
+
function findWithIndex_1(p) {
|
|
454
|
+
return as => {
|
|
455
|
+
const len = tsplus_module_5.length(as);
|
|
456
|
+
for (let i = 0; i < len; i++) {
|
|
457
|
+
if (p(i, as._array[i])) {
|
|
458
|
+
return tsplus_module_11.just(as._array[i]);
|
|
459
|
+
}
|
|
496
460
|
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
return tsplus_module_11.nothing();
|
|
461
|
+
return tsplus_module_11.nothing();
|
|
462
|
+
};
|
|
500
463
|
}
|
|
501
464
|
/**
|
|
502
|
-
* @tsplus
|
|
465
|
+
* @tsplus pipeable fncts.ImmutableArray findMap
|
|
503
466
|
*/
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
467
|
+
export function findMap(f) {
|
|
468
|
+
return as => {
|
|
469
|
+
return findMapWithIndex_1((_, a) => f(a))(as);
|
|
470
|
+
};
|
|
508
471
|
}
|
|
509
472
|
/**
|
|
510
|
-
* @tsplus
|
|
473
|
+
* @tsplus pipeable fncts.ImmutableArray findMapWithIndex
|
|
511
474
|
*/
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
return v;
|
|
475
|
+
function findMapWithIndex_1(f) {
|
|
476
|
+
return as => {
|
|
477
|
+
const len = tsplus_module_5.length(as);
|
|
478
|
+
for (let i = 0; i < len; i++) {
|
|
479
|
+
const v = f(i, as._array[i]);
|
|
480
|
+
if (tsplus_module_6.isJust(v)) {
|
|
481
|
+
return v;
|
|
482
|
+
}
|
|
521
483
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
return tsplus_module_11.just(as._array[i]);
|
|
484
|
+
return tsplus_module_11.nothing();
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
export function findLast(p) {
|
|
488
|
+
return as => {
|
|
489
|
+
const len = tsplus_module_5.length(as);
|
|
490
|
+
for (let i = len - 1; i >= 0; i--) {
|
|
491
|
+
if (p(as._array[i])) {
|
|
492
|
+
return tsplus_module_11.just(as._array[i]);
|
|
493
|
+
}
|
|
533
494
|
}
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
return tsplus_module_11.nothing();
|
|
495
|
+
return tsplus_module_11.nothing();
|
|
496
|
+
};
|
|
537
497
|
}
|
|
538
498
|
/**
|
|
539
|
-
* @tsplus
|
|
499
|
+
* @tsplus pipeable fncts.ImmutableArray findLastIndex
|
|
540
500
|
*/
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
501
|
+
export function findLastIndex(p) {
|
|
502
|
+
return self => {
|
|
503
|
+
return findLastMapWithIndex_1((i, a) => p(a) ? tsplus_module_11.just(i) : tsplus_module_11.nothing())(self);
|
|
504
|
+
};
|
|
544
505
|
}
|
|
545
506
|
/**
|
|
546
|
-
* @tsplus
|
|
507
|
+
* @tsplus pipeable fncts.ImmutableArray findLastMap
|
|
547
508
|
*/
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
509
|
+
export function findLastMap(f) {
|
|
510
|
+
return as => {
|
|
511
|
+
return findLastMapWithIndex_1((_, a) => f(a))(as);
|
|
512
|
+
};
|
|
551
513
|
}
|
|
552
514
|
/**
|
|
553
|
-
* @tsplus
|
|
515
|
+
* @tsplus pipeable fncts.ImmutableArray findLastMapWithIndex
|
|
554
516
|
*/
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
return v;
|
|
517
|
+
function findLastMapWithIndex_1(f) {
|
|
518
|
+
return as => {
|
|
519
|
+
const len = tsplus_module_5.length(as);
|
|
520
|
+
for (let i = len - 1; i >= 0; i--) {
|
|
521
|
+
const v = f(i, as._array[i]);
|
|
522
|
+
if (tsplus_module_6.isJust(v)) {
|
|
523
|
+
return v;
|
|
524
|
+
}
|
|
564
525
|
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
return tsplus_module_11.nothing();
|
|
526
|
+
return tsplus_module_11.nothing();
|
|
527
|
+
};
|
|
568
528
|
}
|
|
569
529
|
/**
|
|
570
|
-
* @tsplus
|
|
571
|
-
* @tsplus
|
|
530
|
+
* @tsplus pipeable fncts.ImmutableArray foldLeftWithIndex
|
|
531
|
+
* @tsplus pipeable fncts.MutableArray foldLeftWithIndex
|
|
572
532
|
*/
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
return r;
|
|
533
|
+
function foldLeftWithIndex_1(b, f) {
|
|
534
|
+
return self => {
|
|
535
|
+
const len = tsplus_module_5.length(self);
|
|
536
|
+
let r = b;
|
|
537
|
+
for (let i = 0; i < len; i++) {
|
|
538
|
+
r = f(i, r, self._array[i]);
|
|
539
|
+
}
|
|
540
|
+
return r;
|
|
541
|
+
};
|
|
584
542
|
}
|
|
585
543
|
/**
|
|
586
|
-
* @tsplus
|
|
587
|
-
* @tsplus
|
|
544
|
+
* @tsplus pipeable fncts.ImmutableArray foldLeft
|
|
545
|
+
* @tsplus pipeable fncts.MutableArray foldLeft
|
|
588
546
|
*/
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
547
|
+
function foldLeft_1(b, f) {
|
|
548
|
+
return self => {
|
|
549
|
+
return foldLeftWithIndex_1(b, (_, b, a) => f(b, a))(self);
|
|
550
|
+
};
|
|
593
551
|
}
|
|
594
552
|
/**
|
|
595
|
-
* @tsplus
|
|
596
|
-
* @tsplus
|
|
553
|
+
* @tsplus pipeable fncts.ImmutableArray foldLeftWhile
|
|
554
|
+
* @tsplus pipeable fncts.MutableArray foldLeftWhile
|
|
597
555
|
*/
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
556
|
+
export function foldLeftWhile(b, p, f) {
|
|
557
|
+
return self => {
|
|
558
|
+
return foldLeftWithIndexWhile_1(b, p, (_, b, a) => f(b, a))(self);
|
|
559
|
+
};
|
|
602
560
|
}
|
|
603
561
|
/**
|
|
604
|
-
* @tsplus
|
|
605
|
-
* @tsplus
|
|
562
|
+
* @tsplus pipeable fncts.ImmutableArray foldLeftWithIndexWhile
|
|
563
|
+
* @tsplus pipeable fncts.MutableArray foldLeftWithIndexWhile
|
|
606
564
|
*/
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
return out;
|
|
565
|
+
function foldLeftWithIndexWhile_1(b, p, f) {
|
|
566
|
+
return self => {
|
|
567
|
+
let out = b;
|
|
568
|
+
let cont = p(out);
|
|
569
|
+
for (let i = 0; cont && i < tsplus_module_5.length(self); i++) {
|
|
570
|
+
out = f(i, out, self._array[i]);
|
|
571
|
+
cont = p(out);
|
|
572
|
+
}
|
|
573
|
+
return out;
|
|
574
|
+
};
|
|
618
575
|
}
|
|
619
576
|
/**
|
|
620
|
-
* @tsplus
|
|
577
|
+
* @tsplus pipeable fncts.ImmutableArray fold
|
|
621
578
|
*/
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
M) {
|
|
627
|
-
return foldLeft_1(self, M.nat, M.combine);
|
|
579
|
+
function fold_1( /** @tsplus auto */M) {
|
|
580
|
+
return self => {
|
|
581
|
+
return foldLeft_1(M.nat, (b, a) => M.combine(a)(b))(self);
|
|
582
|
+
};
|
|
628
583
|
}
|
|
629
584
|
/**
|
|
630
|
-
* @tsplus
|
|
585
|
+
* @tsplus pipeable fncts.ImmutableArray foldMapWithIndex
|
|
631
586
|
*/
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
M) {
|
|
637
|
-
return foldLeftWithIndex_1(self, M.nat, (i, b, a) => M.combine(b, f(i, a)));
|
|
587
|
+
function foldMapWithIndex_1(f, /** @tsplus auto */M) {
|
|
588
|
+
return self => {
|
|
589
|
+
return foldLeftWithIndex_1(M.nat, (i, b, a) => M.combine(f(i, a))(b))(self);
|
|
590
|
+
};
|
|
638
591
|
}
|
|
639
592
|
/**
|
|
640
|
-
* @tsplus
|
|
593
|
+
* @tsplus pipeable fncts.ImmutableArray foldMap
|
|
641
594
|
*/
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
M) {
|
|
647
|
-
return foldMapWithIndex_1(self, (_, a) => f(a), M);
|
|
595
|
+
export function foldMap(f, /** @tsplus auto */M) {
|
|
596
|
+
return self => {
|
|
597
|
+
return foldMapWithIndex_1((_, a) => f(a), M)(self);
|
|
598
|
+
};
|
|
648
599
|
}
|
|
649
600
|
/**
|
|
650
|
-
* @tsplus
|
|
601
|
+
* @tsplus pipeable fncts.ImmutableArray foldRightWithIndex
|
|
651
602
|
*/
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
return r;
|
|
603
|
+
function foldRightWithIndex_1(b, f) {
|
|
604
|
+
return self => {
|
|
605
|
+
let r = b;
|
|
606
|
+
for (let i = tsplus_module_5.length(self) - 1; i >= 0; i--) {
|
|
607
|
+
r = f(i, self._array[i], r);
|
|
608
|
+
}
|
|
609
|
+
return r;
|
|
610
|
+
};
|
|
661
611
|
}
|
|
662
612
|
/**
|
|
663
|
-
* @tsplus
|
|
613
|
+
* @tsplus pipeable fncts.ImmutableArray foldRight
|
|
664
614
|
*/
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
615
|
+
export function foldRight(b, f) {
|
|
616
|
+
return self => {
|
|
617
|
+
return foldRightWithIndex_1(b, (_, a, b) => f(a, b))(self);
|
|
618
|
+
};
|
|
669
619
|
}
|
|
670
620
|
/**
|
|
671
|
-
* @tsplus
|
|
621
|
+
* @tsplus pipeable fncts.ImmutableArray foldRighWhile
|
|
672
622
|
*/
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
623
|
+
export function foldRightWhile(b, p, f) {
|
|
624
|
+
return self => {
|
|
625
|
+
return foldRightWithIndexWhile_1(b, p, (_, a, b) => f(a, b))(self);
|
|
626
|
+
};
|
|
676
627
|
}
|
|
677
628
|
/**
|
|
678
|
-
* @tsplus
|
|
629
|
+
* @tsplus pipeable fncts.ImmutableArray foldRightWithIndexWhile
|
|
679
630
|
*/
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
return out;
|
|
631
|
+
function foldRightWithIndexWhile_1(b, predicate, f) {
|
|
632
|
+
return self => {
|
|
633
|
+
let out = b;
|
|
634
|
+
let cont = predicate(out);
|
|
635
|
+
for (let i = tsplus_module_5.length(self) - 1; cont && i >= 0; i--) {
|
|
636
|
+
out = f(i, self._array[i], out);
|
|
637
|
+
cont = predicate(out);
|
|
638
|
+
}
|
|
639
|
+
return out;
|
|
640
|
+
};
|
|
691
641
|
}
|
|
692
642
|
/**
|
|
693
|
-
* @tsplus
|
|
643
|
+
* @tsplus pipeable fncts.ImmutableArray forEach
|
|
694
644
|
*/
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
645
|
+
function forEach_1(f) {
|
|
646
|
+
return self => {
|
|
647
|
+
return forEach_1(f)(self);
|
|
648
|
+
};
|
|
699
649
|
}
|
|
700
650
|
/**
|
|
701
|
-
* @tsplus
|
|
702
|
-
* @tsplus
|
|
651
|
+
* @tsplus pipeable fncts.ImmutableArray get
|
|
652
|
+
* @tsplus pipeable fncts.MutableArray get
|
|
703
653
|
*/
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
654
|
+
function get_1(i) {
|
|
655
|
+
return self => {
|
|
656
|
+
return isOutOfBound_1(i)(self) ? tsplus_module_11.nothing() : tsplus_module_11.just(self._array[i]);
|
|
657
|
+
};
|
|
708
658
|
}
|
|
709
|
-
|
|
659
|
+
/**
|
|
660
|
+
* @tsplus pipeable fncts.ImmutableArray group
|
|
661
|
+
*/
|
|
710
662
|
export function group(E) {
|
|
711
|
-
return
|
|
663
|
+
return chop_1(self => {
|
|
712
664
|
const h = self._array[0];
|
|
713
665
|
const out = [h];
|
|
714
666
|
let i = 1;
|
|
715
|
-
|
|
716
667
|
for (; i < tsplus_module_5.length(self); i++) {
|
|
717
668
|
const a = self._array[i];
|
|
718
|
-
|
|
719
|
-
if (E.equals(a, h)) {
|
|
669
|
+
if (E.equals(h)(a)) {
|
|
720
670
|
out.push(a);
|
|
721
671
|
} else {
|
|
722
672
|
break;
|
|
723
673
|
}
|
|
724
674
|
}
|
|
725
|
-
|
|
726
|
-
return [tsplus_module_12.unsafeAsNonEmptyArray(out), tsplus_module_4.slice_(self, i)];
|
|
675
|
+
return [tsplus_module_12.unsafeAsNonEmptyArray(out), tsplus_module_4.slice(i)(self)];
|
|
727
676
|
});
|
|
728
677
|
}
|
|
729
678
|
/**
|
|
730
|
-
* @tsplus
|
|
679
|
+
* @tsplus pipeable fncts.ImmutableArray groupBy
|
|
731
680
|
*/
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
744
|
-
const a = self._array[i];
|
|
745
|
-
const k = f(a);
|
|
746
|
-
|
|
747
|
-
if (Object.prototype.hasOwnProperty.call(out, k)) {
|
|
748
|
-
out[k].push(a);
|
|
749
|
-
} else {
|
|
750
|
-
out[k] = [a];
|
|
681
|
+
export function groupBy(f) {
|
|
682
|
+
return self => {
|
|
683
|
+
const out = {};
|
|
684
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
685
|
+
const a = self._array[i];
|
|
686
|
+
const k = f(a);
|
|
687
|
+
if (Object.prototype.hasOwnProperty.call(out, k)) {
|
|
688
|
+
out[k].push(a);
|
|
689
|
+
} else {
|
|
690
|
+
out[k] = [a];
|
|
691
|
+
}
|
|
751
692
|
}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
return tsplus_module_14.map_(tsplus_module_13.Dictionary.get(out), tsplus_module_12.from);
|
|
693
|
+
return tsplus_module_14.map(tsplus_module_12.from)(tsplus_module_13.Dictionary.get(out));
|
|
694
|
+
};
|
|
755
695
|
}
|
|
756
696
|
/**
|
|
757
697
|
* @tsplus getter fncts.ImmutableArray head
|
|
758
698
|
*/
|
|
759
|
-
|
|
760
699
|
export function head(self) {
|
|
761
700
|
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just(self._array[0]) : tsplus_module_11.nothing();
|
|
762
701
|
}
|
|
763
702
|
/**
|
|
764
703
|
* @tsplus getter fncts.ImmutableArray init
|
|
765
704
|
*/
|
|
766
|
-
|
|
767
705
|
export function init(self) {
|
|
768
706
|
const len = tsplus_module_5.length(self);
|
|
769
|
-
return len === 0 ? tsplus_module_11.nothing() : tsplus_module_11.just(tsplus_module_4.
|
|
707
|
+
return len === 0 ? tsplus_module_11.nothing() : tsplus_module_11.just(tsplus_module_4.slice(0, len - 1)(self));
|
|
770
708
|
}
|
|
771
709
|
/**
|
|
772
|
-
* @tsplus
|
|
710
|
+
* @tsplus pipeable fncts.ImmutableArray insertAt
|
|
773
711
|
*/
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
712
|
+
export function insertAt(i, a) {
|
|
713
|
+
return self => {
|
|
714
|
+
return isOutOfBound_1(i)(self) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeInsertAt_1(i, a)(self));
|
|
715
|
+
};
|
|
777
716
|
}
|
|
778
717
|
/**
|
|
779
|
-
* @tsplus
|
|
718
|
+
* @tsplus pipeable fncts.ImmutableArray intersection
|
|
780
719
|
*/
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
return filter_1(self, a => elem_1(that, a, E));
|
|
720
|
+
export function intersection(that, /** @tsplus auto */E) {
|
|
721
|
+
return self => {
|
|
722
|
+
return filter_1(a => elem_1(a, E)(that))(self);
|
|
723
|
+
};
|
|
786
724
|
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
725
|
+
/**
|
|
726
|
+
* @tsplus pipeable fncts.ImmutableArray intersperse
|
|
727
|
+
*/
|
|
728
|
+
export function intersperse(a) {
|
|
729
|
+
return self => {
|
|
730
|
+
const len = tsplus_module_5.length(self);
|
|
731
|
+
return len === 0 ? self : prepend_1(unsafeGet_1(self, 0))(prependAll_1(a)(tsplus_module_4.slice(1, len)(self)));
|
|
732
|
+
};
|
|
790
733
|
}
|
|
791
734
|
/**
|
|
792
735
|
* @tsplus fluent fncts.ImmutableArray isEmpty
|
|
793
736
|
*/
|
|
794
|
-
|
|
795
737
|
function isEmpty_1(self) {
|
|
796
738
|
return tsplus_module_5.length(self) === 0;
|
|
797
739
|
}
|
|
798
740
|
/**
|
|
799
|
-
* @tsplus
|
|
741
|
+
* @tsplus pipeable fncts.ImmutableArray isOutOfBound
|
|
800
742
|
*/
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
743
|
+
function isOutOfBound_1(i) {
|
|
744
|
+
return self => {
|
|
745
|
+
return i < 0 || i >= tsplus_module_5.length(self);
|
|
746
|
+
};
|
|
805
747
|
}
|
|
806
748
|
/**
|
|
807
|
-
* @tsplus
|
|
749
|
+
* @tsplus pipeable fncts.ImmutableArray join
|
|
808
750
|
*/
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
751
|
+
export function join(separator) {
|
|
752
|
+
return self => {
|
|
753
|
+
return self._array.join(separator);
|
|
754
|
+
};
|
|
813
755
|
}
|
|
814
756
|
/**
|
|
815
757
|
* @tsplus getter fncts.ImmutableArray last
|
|
816
758
|
*/
|
|
817
|
-
|
|
818
759
|
export function last(self) {
|
|
819
|
-
return get_1(
|
|
760
|
+
return get_1(tsplus_module_5.length(self) - 1)(self);
|
|
820
761
|
}
|
|
821
762
|
/**
|
|
822
763
|
* @tsplus getter fncts.ImmutableArray length
|
|
823
764
|
*/
|
|
824
|
-
|
|
825
765
|
export function length(self) {
|
|
826
766
|
return self._array.length;
|
|
827
767
|
}
|
|
828
768
|
/**
|
|
829
769
|
* @tsplus getter fncts.ImmutableArray lefts
|
|
830
770
|
*/
|
|
831
|
-
|
|
832
771
|
export function lefts(self) {
|
|
833
772
|
const ls = [];
|
|
834
|
-
|
|
835
773
|
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
836
774
|
const a = self._array[i];
|
|
837
775
|
void 0;
|
|
838
|
-
|
|
839
|
-
if (a._tag === "Left"
|
|
840
|
-
/* EitherTag.Left */
|
|
841
|
-
) {
|
|
776
|
+
if (a._tag === "Left" /* EitherTag.Left */) {
|
|
842
777
|
ls.push(a.left);
|
|
843
778
|
}
|
|
844
779
|
}
|
|
845
|
-
|
|
846
780
|
return tsplus_module_2.asImmutableArray(ls);
|
|
847
781
|
}
|
|
848
782
|
/**
|
|
849
|
-
* @tsplus
|
|
783
|
+
* @tsplus pipeable fncts.ImmutableArray map
|
|
850
784
|
*/
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
785
|
+
function map_1(f) {
|
|
786
|
+
return self => {
|
|
787
|
+
return mapWithIndex_1((_, a) => f(a))(self);
|
|
788
|
+
};
|
|
854
789
|
}
|
|
855
790
|
/**
|
|
856
|
-
* @tsplus
|
|
791
|
+
* @tsplus pipeable fncts.ImmutableArray mapAccum
|
|
857
792
|
*/
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
return [tsplus_module_2.asImmutableArray(bs), state];
|
|
793
|
+
export function mapAccum(s, f) {
|
|
794
|
+
return self => {
|
|
795
|
+
const bs = Array(tsplus_module_5.length(self));
|
|
796
|
+
let state = s;
|
|
797
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
798
|
+
const result = f(state, self._array[i]);
|
|
799
|
+
bs[i] = result[0];
|
|
800
|
+
state = result[1];
|
|
801
|
+
}
|
|
802
|
+
return [tsplus_module_2.asImmutableArray(bs), state];
|
|
803
|
+
};
|
|
871
804
|
}
|
|
872
805
|
/**
|
|
873
|
-
* @tsplus
|
|
806
|
+
* @tsplus pipeable fncts.ImmutableArray mapWithIndex
|
|
874
807
|
*/
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
return tsplus_module_2.asImmutableArray(bs);
|
|
808
|
+
function mapWithIndex_1(f) {
|
|
809
|
+
return self => {
|
|
810
|
+
const len = self._array.length;
|
|
811
|
+
const bs = Array(len);
|
|
812
|
+
for (let i = 0; i < len; i++) {
|
|
813
|
+
bs[i] = f(i, self._array[i]);
|
|
814
|
+
}
|
|
815
|
+
return tsplus_module_2.asImmutableArray(bs);
|
|
816
|
+
};
|
|
885
817
|
}
|
|
886
818
|
/**
|
|
887
|
-
* @tsplus
|
|
819
|
+
* @tsplus pipeable fncts.ImmutableArray modifyAt
|
|
888
820
|
*/
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
821
|
+
export function modifyAt(i, f) {
|
|
822
|
+
return self => {
|
|
823
|
+
return isOutOfBound_1(i)(self) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeModifyAt_1(i, f)(self));
|
|
824
|
+
};
|
|
893
825
|
}
|
|
894
826
|
/**
|
|
895
|
-
* @tsplus
|
|
827
|
+
* @tsplus pipeable fncts.ImmutableArray mutate
|
|
896
828
|
*/
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
829
|
+
function mutate_1(f) {
|
|
830
|
+
return self => {
|
|
831
|
+
const mut = mutableClone_1(self);
|
|
832
|
+
f(mut);
|
|
833
|
+
return tsplus_module_2.asImmutableArray(mut);
|
|
834
|
+
};
|
|
902
835
|
}
|
|
903
836
|
/**
|
|
904
837
|
* @tsplus getter fncts.ImmutableArray mutableClone
|
|
905
838
|
*/
|
|
906
|
-
|
|
907
|
-
|
|
908
839
|
function mutableClone_1(self) {
|
|
909
|
-
return tsplus_module_4.
|
|
840
|
+
return tsplus_module_4.slice(0)(self)._array;
|
|
910
841
|
}
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
left.push(a);
|
|
842
|
+
function partitionWithIndex_1(p) {
|
|
843
|
+
return self => {
|
|
844
|
+
const left = [];
|
|
845
|
+
const right = [];
|
|
846
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
847
|
+
const a = self._array[i];
|
|
848
|
+
if (p(i, a)) {
|
|
849
|
+
right.push(a);
|
|
850
|
+
} else {
|
|
851
|
+
left.push(a);
|
|
852
|
+
}
|
|
923
853
|
}
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
}
|
|
932
|
-
/**
|
|
933
|
-
* @tsplus
|
|
934
|
-
*/
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
case "Right"
|
|
952
|
-
/* EitherTag.Right */
|
|
953
|
-
:
|
|
954
|
-
right.push(ea.right);
|
|
955
|
-
break;
|
|
854
|
+
return [tsplus_module_2.asImmutableArray(left), tsplus_module_2.asImmutableArray(right)];
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
export function partition(p) {
|
|
858
|
+
return self => {
|
|
859
|
+
return partitionWithIndex_1((_, a) => p(a))(self);
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* @tsplus pipeable fncts.ImmutableArray partitionMapWithIndex
|
|
864
|
+
*/
|
|
865
|
+
function partitionMapWithIndex_1(f) {
|
|
866
|
+
return self => {
|
|
867
|
+
const left = [];
|
|
868
|
+
const right = [];
|
|
869
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
870
|
+
const ea = f(i, self._array[i]);
|
|
871
|
+
void 0;
|
|
872
|
+
switch (ea._tag) {
|
|
873
|
+
case "Left" /* EitherTag.Left */:
|
|
874
|
+
left.push(ea.left);
|
|
875
|
+
break;
|
|
876
|
+
case "Right" /* EitherTag.Right */:
|
|
877
|
+
right.push(ea.right);
|
|
878
|
+
break;
|
|
879
|
+
}
|
|
956
880
|
}
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
return [tsplus_module_2.asImmutableArray(left), tsplus_module_2.asImmutableArray(right)];
|
|
881
|
+
return [tsplus_module_2.asImmutableArray(left), tsplus_module_2.asImmutableArray(right)];
|
|
882
|
+
};
|
|
960
883
|
}
|
|
961
884
|
/**
|
|
962
|
-
* @tsplus
|
|
885
|
+
* @tsplus pipeable fncts.ImmutableArray partitionMap
|
|
963
886
|
*/
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
887
|
+
export function partitionMap(f) {
|
|
888
|
+
return self => {
|
|
889
|
+
return partitionMapWithIndex_1((_, a) => f(a))(self);
|
|
890
|
+
};
|
|
968
891
|
}
|
|
969
892
|
/**
|
|
970
|
-
* @tsplus
|
|
893
|
+
* @tsplus pipeable fncts.ImmutableArray prepend
|
|
971
894
|
*/
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
return tsplus_module_2.asImmutableArray(out);
|
|
895
|
+
function prepend_1(head) {
|
|
896
|
+
return self => {
|
|
897
|
+
const len = tsplus_module_5.length(self);
|
|
898
|
+
const out = Array(len + 1);
|
|
899
|
+
out[0] = head;
|
|
900
|
+
for (let i = 0; i < len; i++) {
|
|
901
|
+
out[i + 1] = self._array[i];
|
|
902
|
+
}
|
|
903
|
+
return tsplus_module_2.asImmutableArray(out);
|
|
904
|
+
};
|
|
983
905
|
}
|
|
984
906
|
/**
|
|
985
|
-
* @tsplus
|
|
986
|
-
* @tsplus fluent fncts.MutableArray prependAll
|
|
907
|
+
* @tsplus pipeable fncts.ImmutableArray prependAll
|
|
987
908
|
*/
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
return tsplus_module_2.asImmutableArray(out);
|
|
909
|
+
function prependAll_1(a) {
|
|
910
|
+
return self => {
|
|
911
|
+
const out = [];
|
|
912
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
913
|
+
out.push(a, self._array[i]);
|
|
914
|
+
}
|
|
915
|
+
return tsplus_module_2.asImmutableArray(out);
|
|
916
|
+
};
|
|
998
917
|
}
|
|
999
918
|
/**
|
|
1000
919
|
* @tsplus getter fncts.ImmutableArray reverse
|
|
1001
920
|
*/
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
921
|
export function reverse(self) {
|
|
1005
922
|
if (isEmpty_1(self)) {
|
|
1006
923
|
return self;
|
|
@@ -1008,391 +925,358 @@ export function reverse(self) {
|
|
|
1008
925
|
return tsplus_module_2.make(self._array[0]);
|
|
1009
926
|
} else {
|
|
1010
927
|
const out = Array(tsplus_module_5.length(self));
|
|
1011
|
-
|
|
1012
928
|
for (let j = 0, i = tsplus_module_5.length(self) - 1; i >= 0; i--, j++) {
|
|
1013
929
|
out[j] = self._array[i];
|
|
1014
930
|
}
|
|
1015
|
-
|
|
1016
931
|
return tsplus_module_2.asImmutableArray(out);
|
|
1017
932
|
}
|
|
1018
933
|
}
|
|
1019
934
|
/**
|
|
1020
935
|
* @tsplus getter fncts.ImmutableArray rights
|
|
1021
936
|
*/
|
|
1022
|
-
|
|
1023
937
|
export function rights(self) {
|
|
1024
938
|
const rs = [];
|
|
1025
|
-
|
|
1026
939
|
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
1027
940
|
const a = self._array[i];
|
|
1028
941
|
void 0;
|
|
1029
|
-
|
|
1030
|
-
if (a._tag === "Right"
|
|
1031
|
-
/* EitherTag.Right */
|
|
1032
|
-
) {
|
|
942
|
+
if (a._tag === "Right" /* EitherTag.Right */) {
|
|
1033
943
|
rs.push(a.right);
|
|
1034
944
|
}
|
|
1035
945
|
}
|
|
1036
|
-
|
|
1037
946
|
return tsplus_module_2.asImmutableArray(rs);
|
|
1038
947
|
}
|
|
1039
948
|
/**
|
|
1040
|
-
* @tsplus
|
|
949
|
+
* @tsplus pipeable fncts.ImmutableArray rotate
|
|
1041
950
|
*/
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
}
|
|
951
|
+
function rotate_1(n) {
|
|
952
|
+
return self => {
|
|
953
|
+
const len = tsplus_module_5.length(self);
|
|
954
|
+
if (n === 0 || len <= 1 || len === Math.abs(n)) {
|
|
955
|
+
return self;
|
|
956
|
+
} else if (n < 0) {
|
|
957
|
+
return rotate_1(len + n)(self);
|
|
958
|
+
} else {
|
|
959
|
+
return concat_1(tsplus_module_4.slice(0, len - n)(self))(tsplus_module_4.slice(-n)(self));
|
|
960
|
+
}
|
|
961
|
+
};
|
|
1053
962
|
}
|
|
1054
963
|
/**
|
|
1055
|
-
* @tsplus
|
|
964
|
+
* @tsplus pipeable fncts.ImmutableArray scanLeft
|
|
1056
965
|
*/
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
return tsplus_module_2.asImmutableArray(r);
|
|
966
|
+
export function scanLeft(b, f) {
|
|
967
|
+
return self => {
|
|
968
|
+
const l = tsplus_module_5.length(self);
|
|
969
|
+
const r = Array(l + 1);
|
|
970
|
+
r[0] = b;
|
|
971
|
+
for (let i = 0; i < l; i++) {
|
|
972
|
+
r[i + 1] = f(r[i], self._array[i]);
|
|
973
|
+
}
|
|
974
|
+
return tsplus_module_2.asImmutableArray(r);
|
|
975
|
+
};
|
|
1069
976
|
}
|
|
1070
977
|
/**
|
|
1071
|
-
* @tsplus
|
|
978
|
+
* @tsplus pipeable fncts.ImmutableArray scanRight
|
|
1072
979
|
*/
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
return tsplus_module_2.asImmutableArray(r);
|
|
980
|
+
export function scanRight(b, f) {
|
|
981
|
+
return self => {
|
|
982
|
+
const l = tsplus_module_5.length(self);
|
|
983
|
+
const r = Array(l + 1);
|
|
984
|
+
r[l] = b;
|
|
985
|
+
for (let i = l - 1; i >= 0; i--) {
|
|
986
|
+
r[i] = f(self._array[i], r[i + 1]);
|
|
987
|
+
}
|
|
988
|
+
return tsplus_module_2.asImmutableArray(r);
|
|
989
|
+
};
|
|
1084
990
|
}
|
|
1085
991
|
/**
|
|
1086
|
-
* @tsplus
|
|
992
|
+
* @tsplus pipeable fncts.ImmutableArray sort
|
|
1087
993
|
*/
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
return isEmpty_1(self) || tsplus_module_5.length(self) === 1 ? self : tsplus_module_2.asImmutableArray(self._array.slice().sort(O.compare));
|
|
994
|
+
function sort_1( /** @tsplus auto */O) {
|
|
995
|
+
return self => {
|
|
996
|
+
return isEmpty_1(self) || tsplus_module_5.length(self) === 1 ? self : tsplus_module_2.asImmutableArray(self._array.slice().sort((a, b) => O.compare(b)(a)));
|
|
997
|
+
};
|
|
1093
998
|
}
|
|
1094
999
|
/**
|
|
1095
|
-
* @tsplus
|
|
1000
|
+
* @tsplus pipeable fncts.ImmutableArray sortBy
|
|
1096
1001
|
*/
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1002
|
+
export function sortBy(Os) {
|
|
1003
|
+
return self => {
|
|
1004
|
+
return sort_1(fold_1(tsplus_module_15.getMonoid())(Os))(self);
|
|
1005
|
+
};
|
|
1101
1006
|
}
|
|
1102
|
-
export function
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
rest[j] = self._array[j];
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
return [tsplus_module_2.asImmutableArray(rest), tsplus_module_2.asImmutableArray(tail)];
|
|
1007
|
+
export function spanLeft(p) {
|
|
1008
|
+
return self => {
|
|
1009
|
+
const i = spanIndexLeft_1(p)(self);
|
|
1010
|
+
const init = Array(i);
|
|
1011
|
+
for (let j = 0; j < i; j++) {
|
|
1012
|
+
init[j] = self._array[j];
|
|
1013
|
+
}
|
|
1014
|
+
const l = tsplus_module_5.length(self);
|
|
1015
|
+
const rest = Array(l - i);
|
|
1016
|
+
for (let j = i; j < l; j++) {
|
|
1017
|
+
rest[j - i] = self._array[j];
|
|
1018
|
+
}
|
|
1019
|
+
return [tsplus_module_2.asImmutableArray(init), tsplus_module_2.asImmutableArray(rest)];
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
export function spanRight(p) {
|
|
1023
|
+
return self => {
|
|
1024
|
+
const i = spanIndexRight_1(p)(self);
|
|
1025
|
+
const l = tsplus_module_5.length(self);
|
|
1026
|
+
const tail = Array(l - i - 1);
|
|
1027
|
+
for (let j = l - 1; j > i; j--) {
|
|
1028
|
+
tail[j - i - 1] = self._array[j];
|
|
1029
|
+
}
|
|
1030
|
+
const rest = Array(i);
|
|
1031
|
+
for (let j = i; j >= 0; j--) {
|
|
1032
|
+
rest[j] = self._array[j];
|
|
1033
|
+
}
|
|
1034
|
+
return [tsplus_module_2.asImmutableArray(rest), tsplus_module_2.asImmutableArray(tail)];
|
|
1035
|
+
};
|
|
1135
1036
|
}
|
|
1136
1037
|
/**
|
|
1137
|
-
* @tsplus
|
|
1038
|
+
* @tsplus pipeable fncts.ImmutableArray spanIndexLeft
|
|
1138
1039
|
*/
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1040
|
+
function spanIndexLeft_1(p) {
|
|
1041
|
+
return self => {
|
|
1042
|
+
const l = tsplus_module_5.length(self);
|
|
1043
|
+
let i = 0;
|
|
1044
|
+
for (; i < l; i++) {
|
|
1045
|
+
if (!p(self._array[i])) {
|
|
1046
|
+
break;
|
|
1047
|
+
}
|
|
1147
1048
|
}
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
return i;
|
|
1049
|
+
return i;
|
|
1050
|
+
};
|
|
1151
1051
|
}
|
|
1152
1052
|
/**
|
|
1153
|
-
* @tsplus
|
|
1053
|
+
* @tsplus pipeable fncts.ImmutableArray spanIndexRight
|
|
1154
1054
|
*/
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
break;
|
|
1055
|
+
function spanIndexRight_1(predicate) {
|
|
1056
|
+
return as => {
|
|
1057
|
+
let i = tsplus_module_5.length(as) - 1;
|
|
1058
|
+
for (; i >= 0; i--) {
|
|
1059
|
+
if (!predicate(as._array[i])) {
|
|
1060
|
+
break;
|
|
1061
|
+
}
|
|
1163
1062
|
}
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
return i;
|
|
1063
|
+
return i;
|
|
1064
|
+
};
|
|
1167
1065
|
}
|
|
1168
1066
|
/**
|
|
1169
1067
|
* @tsplus getter fncts.ImmutableArray tail
|
|
1170
1068
|
*/
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
1069
|
export function tail(self) {
|
|
1174
|
-
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just(tsplus_module_4.
|
|
1070
|
+
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just(tsplus_module_4.slice(1)(self)) : tsplus_module_11.nothing();
|
|
1175
1071
|
}
|
|
1176
1072
|
/**
|
|
1177
|
-
* @tsplus
|
|
1073
|
+
* @tsplus pipeable fncts.ImmutableArray take
|
|
1178
1074
|
*/
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1075
|
+
export function take(n) {
|
|
1076
|
+
return self => {
|
|
1077
|
+
return tsplus_module_4.slice(0, n)(self);
|
|
1078
|
+
};
|
|
1182
1079
|
}
|
|
1183
1080
|
/**
|
|
1184
|
-
* @tsplus
|
|
1081
|
+
* @tsplus pipeable fncts.ImmutableArray takeLast
|
|
1185
1082
|
*/
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1083
|
+
export function takeLast(n) {
|
|
1084
|
+
return as => {
|
|
1085
|
+
return isEmpty_1(as) ? tsplus_module_2.empty() : tsplus_module_4.slice(-n)(as);
|
|
1086
|
+
};
|
|
1189
1087
|
}
|
|
1190
|
-
export function
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1088
|
+
export function takeWhile(p) {
|
|
1089
|
+
return self => {
|
|
1090
|
+
const i = spanIndexLeft_1(p)(self);
|
|
1091
|
+
const init = Array(i);
|
|
1092
|
+
for (let j = 0; j < i; j++) {
|
|
1093
|
+
init[j] = self._array[j];
|
|
1094
|
+
}
|
|
1095
|
+
return tsplus_module_2.asImmutableArray(init);
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
function _traverseWithIndex_1(self) {
|
|
1099
|
+
return G => f => foldLeftWithIndex_1(G.pure(tsplus_module_2.empty()), (i, fbs, a) => G.zipWith(f(i, a), (bs, b) => append_1(b)(bs))(fbs))(self);
|
|
1199
1100
|
}
|
|
1200
|
-
/**
|
|
1201
|
-
* @tsplus getter fncts.ImmutableArray traverseWithIndex
|
|
1202
|
-
*/
|
|
1203
|
-
|
|
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))));
|
|
1205
|
-
export const traverseWithIndex_ = traverseWithIndex_1;
|
|
1206
1101
|
/**
|
|
1207
1102
|
* @tsplus getter fncts.ImmutableArray traverse
|
|
1208
1103
|
*/
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
export const
|
|
1104
|
+
function _traverse_1(self) {
|
|
1105
|
+
return G => f => _traverseWithIndex_1(self)(G)((_, a) => f(a));
|
|
1106
|
+
}
|
|
1107
|
+
export const traverseWithIndex = G => f => self => _traverseWithIndex_1(self)(G)(f);
|
|
1108
|
+
export const traverse = G => f => self => _traverseWithIndex_1(self)(G)((_, a) => f(a));
|
|
1213
1109
|
/**
|
|
1214
|
-
* @tsplus
|
|
1110
|
+
* @tsplus pipeable fncts.ImmutableArray union
|
|
1215
1111
|
*/
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
return concat_1(self, filter_1(that, a => !elem_1(self, a, E)));
|
|
1112
|
+
export function union(that, /** @tsplus auto */E) {
|
|
1113
|
+
return self => {
|
|
1114
|
+
return concat_1(filter_1(a => !elem_1(a, E)(self))(that))(self);
|
|
1115
|
+
};
|
|
1221
1116
|
}
|
|
1222
1117
|
/**
|
|
1223
|
-
* @tsplus
|
|
1118
|
+
* @tsplus pipeable fncts.ImmutableArray uniq
|
|
1224
1119
|
*/
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
if (tsplus_module_5.length(self) === 1) {
|
|
1230
|
-
return self;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
const out = [];
|
|
1234
|
-
const len = tsplus_module_5.length(self);
|
|
1235
|
-
|
|
1236
|
-
for (let i = 0; i < len; i++) {
|
|
1237
|
-
const a = self._array[i];
|
|
1238
|
-
|
|
1239
|
-
if (!elem_1(tsplus_module_2.asImmutableArray(out), a, E)) {
|
|
1240
|
-
out.push(a);
|
|
1120
|
+
export function uniq( /** @tsplus auto */E) {
|
|
1121
|
+
return self => {
|
|
1122
|
+
if (tsplus_module_5.length(self) === 1) {
|
|
1123
|
+
return self;
|
|
1241
1124
|
}
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1125
|
+
const out = [];
|
|
1126
|
+
const len = tsplus_module_5.length(self);
|
|
1127
|
+
for (let i = 0; i < len; i++) {
|
|
1128
|
+
const a = self._array[i];
|
|
1129
|
+
if (!elem_1(a, E)(tsplus_module_2.asImmutableArray(out))) {
|
|
1130
|
+
out.push(a);
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
return tsplus_module_2.asImmutableArray(out);
|
|
1134
|
+
};
|
|
1245
1135
|
}
|
|
1246
1136
|
/**
|
|
1247
1137
|
* @tsplus getter fncts.ImmutableArray unprepend
|
|
1248
1138
|
*/
|
|
1249
|
-
|
|
1250
1139
|
export function unprepend(self) {
|
|
1251
|
-
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just([unsafeGet_1(self, 0), tsplus_module_4.
|
|
1140
|
+
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just([unsafeGet_1(self, 0), tsplus_module_4.slice(1)(self)]) : tsplus_module_11.nothing();
|
|
1252
1141
|
}
|
|
1253
1142
|
/**
|
|
1254
1143
|
* @tsplus index fncts.ImmutableArray
|
|
1255
1144
|
*/
|
|
1256
|
-
|
|
1257
1145
|
function unsafeGet_1(self, i) {
|
|
1258
1146
|
return self._array[i];
|
|
1259
1147
|
}
|
|
1260
1148
|
/**
|
|
1261
1149
|
* @tsplus getter fncts.ImmutableArray unsafeAsMutable
|
|
1262
1150
|
*/
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
1151
|
function unsafeAsMutable_1(self) {
|
|
1266
1152
|
return self._array;
|
|
1267
1153
|
}
|
|
1268
1154
|
/**
|
|
1269
|
-
* @tsplus
|
|
1155
|
+
* @tsplus pipeable fncts.ImmutableArray unsafeDeleteAt
|
|
1270
1156
|
*/
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
}
|
|
1157
|
+
function unsafeDeleteAt_1(i) {
|
|
1158
|
+
return self => {
|
|
1159
|
+
return mutate_1(xs => {
|
|
1160
|
+
xs.splice(i, 1);
|
|
1161
|
+
})(self);
|
|
1162
|
+
};
|
|
1277
1163
|
}
|
|
1278
1164
|
/**
|
|
1279
|
-
* @tsplus
|
|
1165
|
+
* @tsplus pipeable fncts.ImmutableArray unsafeInsertAt
|
|
1280
1166
|
*/
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1167
|
+
function unsafeInsertAt_1(i, a) {
|
|
1168
|
+
return as => {
|
|
1169
|
+
return mutate_1(xs => {
|
|
1170
|
+
xs.splice(i, 0, a);
|
|
1171
|
+
})(as);
|
|
1172
|
+
};
|
|
1287
1173
|
}
|
|
1288
1174
|
/**
|
|
1289
|
-
* @tsplus
|
|
1175
|
+
* @tsplus pipeable fncts.ImmutableArray unsafeModifyAt
|
|
1290
1176
|
*/
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
return
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
xs[i] = next;
|
|
1302
|
-
});
|
|
1177
|
+
function unsafeModifyAt_1(i, f) {
|
|
1178
|
+
return as => {
|
|
1179
|
+
const next = f(unsafeGet_1(as, i));
|
|
1180
|
+
if (unsafeGet_1(as, i) === next) {
|
|
1181
|
+
return as;
|
|
1182
|
+
}
|
|
1183
|
+
return mutate_1(xs => {
|
|
1184
|
+
xs[i] = next;
|
|
1185
|
+
})(as);
|
|
1186
|
+
};
|
|
1303
1187
|
}
|
|
1304
1188
|
/**
|
|
1305
|
-
* @tsplus
|
|
1189
|
+
* @tsplus pipeable fncts.ImmutableArray unsafeUpdateAt
|
|
1306
1190
|
*/
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1191
|
+
function unsafeUpdateAt_1(i, a) {
|
|
1192
|
+
return as => {
|
|
1193
|
+
if (unsafeGet_1(as, i) === a) {
|
|
1194
|
+
return as;
|
|
1195
|
+
} else {
|
|
1196
|
+
return mutate_1(xs => {
|
|
1197
|
+
xs[i] = a;
|
|
1198
|
+
})(as);
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1317
1201
|
}
|
|
1318
1202
|
/**
|
|
1319
1203
|
* @tsplus getter fncts.ImmutableArray unzip
|
|
1320
1204
|
*/
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
1205
|
export function unzip(self) {
|
|
1324
1206
|
const fa = Array(tsplus_module_5.length(self));
|
|
1325
1207
|
const fb = Array(tsplus_module_5.length(self));
|
|
1326
|
-
|
|
1327
1208
|
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
1328
1209
|
fa[i] = self._array[i][0];
|
|
1329
1210
|
fb[i] = self._array[i][1];
|
|
1330
1211
|
}
|
|
1331
|
-
|
|
1332
1212
|
return [tsplus_module_2.asImmutableArray(fa), tsplus_module_2.asImmutableArray(fb)];
|
|
1333
1213
|
}
|
|
1334
1214
|
/**
|
|
1335
|
-
* @tsplus
|
|
1215
|
+
* @tsplus pipeable fncts.ImmutableArray updateAt
|
|
1336
1216
|
*/
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1217
|
+
export function updateAt(i, a) {
|
|
1218
|
+
return as => {
|
|
1219
|
+
return isOutOfBound_1(i)(as) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeUpdateAt_1(i, a)(as));
|
|
1220
|
+
};
|
|
1340
1221
|
}
|
|
1341
1222
|
/**
|
|
1342
1223
|
* @tsplus getter fncts.ImmutableArray wiltWithIndex
|
|
1343
1224
|
*/
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
}, b2 => {
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
})))
|
|
1352
|
-
|
|
1225
|
+
function _wiltWithIndex_1(self) {
|
|
1226
|
+
return G => f => G.map(([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)])(foldLeftWithIndex_1(G.pure([[], []]), (i, fbs, a) => G.zipWith(fbs, (eb, r) => tsplus_module_16.match(b1 => {
|
|
1227
|
+
r[0].push(b1);
|
|
1228
|
+
return r;
|
|
1229
|
+
}, b2 => {
|
|
1230
|
+
r[1].push(b2);
|
|
1231
|
+
return r;
|
|
1232
|
+
})(eb))(f(i, a)))(self));
|
|
1233
|
+
}
|
|
1353
1234
|
/**
|
|
1354
1235
|
* @tsplus getter fncts.ImmutableArray wilt
|
|
1355
1236
|
*/
|
|
1356
|
-
|
|
1357
|
-
|
|
1237
|
+
export function _wilt(self) {
|
|
1238
|
+
return G => f => _wiltWithIndex_1(self)(G)((_, a) => f(a));
|
|
1239
|
+
}
|
|
1358
1240
|
/**
|
|
1359
1241
|
* @tsplus getter fncts.ImmutableArray witherWithIndex
|
|
1360
1242
|
*/
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
return G.map(foldLeftWithIndex_1(self, G.pure([]), (i, b, a) => G.zipWith(f(i, a), b, (maybeB, bs) => {
|
|
1243
|
+
function _witherWithIndex_1(self) {
|
|
1244
|
+
return G => f => G.map(bs => tsplus_module_2.asImmutableArray(bs))(foldLeftWithIndex_1(G.pure([]), (i, b, a) => G.zipWith(b, (maybeB, bs) => {
|
|
1364
1245
|
if (tsplus_module_6.isJust(maybeB)) {
|
|
1365
1246
|
bs.push(maybeB.value);
|
|
1366
1247
|
}
|
|
1367
|
-
|
|
1368
1248
|
return bs;
|
|
1369
|
-
})
|
|
1370
|
-
}
|
|
1371
|
-
export const witherWithIndex = witherWithIndex_1;
|
|
1249
|
+
})(f(i, a)))(self));
|
|
1250
|
+
}
|
|
1372
1251
|
/**
|
|
1373
1252
|
* @tsplus getter fncts.ImmutableArray wither
|
|
1374
1253
|
*/
|
|
1375
|
-
|
|
1376
|
-
|
|
1254
|
+
export function _wither(self) {
|
|
1255
|
+
return G => f => _witherWithIndex_1(self)(G)((_, a) => f(a));
|
|
1256
|
+
}
|
|
1257
|
+
export const wiltWithIndex = G => f => self => _wiltWithIndex_1(self)(G)(f);
|
|
1258
|
+
export const wilt = G => f => self => _wiltWithIndex_1(self)(G)((_, a) => f(a));
|
|
1259
|
+
export const witherWithIndex = G => f => self => _witherWithIndex_1(self)(G)(f);
|
|
1260
|
+
export const wither = G => f => self => _witherWithIndex_1(self)(G)((_, a) => f(a));
|
|
1377
1261
|
/**
|
|
1378
|
-
* @tsplus
|
|
1262
|
+
* @tsplus pipeable fncts.ImmutableArray zip
|
|
1379
1263
|
*/
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1264
|
+
export function zip(that) {
|
|
1265
|
+
return self => {
|
|
1266
|
+
return zipWith_1(that, tuple)(self);
|
|
1267
|
+
};
|
|
1383
1268
|
}
|
|
1384
1269
|
/**
|
|
1385
|
-
* @tsplus
|
|
1270
|
+
* @tsplus pipeable fncts.ImmutableArray zipWith
|
|
1386
1271
|
*/
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
return tsplus_module_2.asImmutableArray(fc);
|
|
1272
|
+
function zipWith_1(fb, f) {
|
|
1273
|
+
return self => {
|
|
1274
|
+
const len = Math.min(tsplus_module_5.length(self), tsplus_module_5.length(fb));
|
|
1275
|
+
const fc = Array(len);
|
|
1276
|
+
for (let i = 0; i < len; i++) {
|
|
1277
|
+
fc[i] = f(self._array[i], fb._array[i]);
|
|
1278
|
+
}
|
|
1279
|
+
return tsplus_module_2.asImmutableArray(fc);
|
|
1280
|
+
};
|
|
1397
1281
|
}
|
|
1398
1282
|
//# sourceMappingURL=api.mjs.map
|