@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
|
@@ -3,1209 +3,1067 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
6
|
+
exports._traverseWithIndex = exports._traverse = void 0;
|
|
7
|
+
exports._wilt = _wilt;
|
|
8
|
+
exports._wiltWithIndex = void 0;
|
|
9
|
+
exports._wither = _wither;
|
|
10
|
+
exports._witherWithIndex = void 0;
|
|
11
|
+
exports.align = align;
|
|
12
|
+
exports.alignWith = void 0;
|
|
13
|
+
exports.alt = alt;
|
|
14
|
+
exports.ap = ap;
|
|
15
|
+
exports.append = void 0;
|
|
11
16
|
exports.chainRecBreadthFirst = chainRecBreadthFirst;
|
|
12
17
|
exports.chainRecDepthFirst = chainRecDepthFirst;
|
|
13
18
|
exports.chop = void 0;
|
|
14
|
-
exports.
|
|
15
|
-
exports.chop_ = chop_;
|
|
16
|
-
exports.collectWhile_ = collectWhile_;
|
|
19
|
+
exports.collectWhile = collectWhile;
|
|
17
20
|
exports.comprehension = comprehension;
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.foldRight_ = foldRight_;
|
|
48
|
-
exports.get_ = exports.forEach_ = void 0;
|
|
21
|
+
exports.concat = void 0;
|
|
22
|
+
exports.cross = cross;
|
|
23
|
+
exports.crossWith = void 0;
|
|
24
|
+
exports.deleteAt = deleteAt;
|
|
25
|
+
exports.difference = difference;
|
|
26
|
+
exports.drop = drop;
|
|
27
|
+
exports.dropLast = dropLast;
|
|
28
|
+
exports.dropLastWhile = dropLastWhile;
|
|
29
|
+
exports.dropWhile = dropWhile;
|
|
30
|
+
exports.elem = void 0;
|
|
31
|
+
exports.every = every;
|
|
32
|
+
exports.filter = exports.everyWithIndex = void 0;
|
|
33
|
+
exports.filterMap = filterMap;
|
|
34
|
+
exports.filterWithIndex = exports.filterMapWithIndex = void 0;
|
|
35
|
+
exports.find = find;
|
|
36
|
+
exports.findIndex = findIndex;
|
|
37
|
+
exports.findLast = findLast;
|
|
38
|
+
exports.findLastIndex = findLastIndex;
|
|
39
|
+
exports.findLastMap = findLastMap;
|
|
40
|
+
exports.findLastMapWithIndex = void 0;
|
|
41
|
+
exports.findMap = findMap;
|
|
42
|
+
exports.foldLeft = exports.fold = exports.flatten = exports.flatMapWithIndex = exports.flatMap = exports.findWithIndex = exports.findMapWithIndex = void 0;
|
|
43
|
+
exports.foldLeftWhile = foldLeftWhile;
|
|
44
|
+
exports.foldLeftWithIndexWhile = exports.foldLeftWithIndex = void 0;
|
|
45
|
+
exports.foldMap = foldMap;
|
|
46
|
+
exports.foldMapWithIndex = void 0;
|
|
47
|
+
exports.foldRight = foldRight;
|
|
48
|
+
exports.foldRightWhile = foldRightWhile;
|
|
49
|
+
exports.get = exports.forEach = exports.foldRightWithIndexWhile = exports.foldRightWithIndex = void 0;
|
|
49
50
|
exports.group = group;
|
|
50
|
-
exports.
|
|
51
|
+
exports.groupBy = groupBy;
|
|
51
52
|
exports.head = head;
|
|
52
53
|
exports.init = init;
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
54
|
+
exports.insertAt = insertAt;
|
|
55
|
+
exports.intersection = intersection;
|
|
56
|
+
exports.intersperse = intersperse;
|
|
57
|
+
exports.isOutOfBound = exports.isEmpty = void 0;
|
|
57
58
|
exports.join = join;
|
|
58
59
|
exports.last = last;
|
|
59
60
|
exports.lefts = lefts;
|
|
60
61
|
exports.length = length;
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
62
|
+
exports.map = void 0;
|
|
63
|
+
exports.mapAccum = mapAccum;
|
|
64
|
+
exports.mapWithIndex = void 0;
|
|
65
|
+
exports.modifyAt = modifyAt;
|
|
66
|
+
exports.mutate = exports.mutableClone = void 0;
|
|
67
|
+
exports.partition = partition;
|
|
68
|
+
exports.partitionMap = partitionMap;
|
|
69
|
+
exports.prependAll = exports.prepend = exports.partitionWithIndex = exports.partitionMapWithIndex = void 0;
|
|
69
70
|
exports.reverse = reverse;
|
|
70
71
|
exports.rights = rights;
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
72
|
+
exports.rotate = void 0;
|
|
73
|
+
exports.scanLeft = scanLeft;
|
|
74
|
+
exports.scanRight = scanRight;
|
|
75
|
+
exports.some = some;
|
|
74
76
|
exports.sort = void 0;
|
|
75
77
|
exports.sortBy = sortBy;
|
|
76
|
-
exports.
|
|
77
|
-
exports.
|
|
78
|
-
exports.
|
|
78
|
+
exports.spanIndexRight = exports.spanIndexLeft = void 0;
|
|
79
|
+
exports.spanLeft = spanLeft;
|
|
80
|
+
exports.spanRight = spanRight;
|
|
79
81
|
exports.tail = tail;
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
82
|
+
exports.take = take;
|
|
83
|
+
exports.takeLast = takeLast;
|
|
84
|
+
exports.takeWhile = takeWhile;
|
|
85
|
+
exports.traverseWithIndex = exports.traverse = void 0;
|
|
86
|
+
exports.union = union;
|
|
85
87
|
exports.uniq = uniq;
|
|
86
88
|
exports.unprepend = unprepend;
|
|
87
|
-
exports.unsafeAsMutable = void 0;
|
|
88
|
-
exports.unsafeUpdateAt_ = exports.unsafeModifyAt_ = exports.unsafeInsertAt_ = exports.unsafeGet = exports.unsafeDeleteAt_ = void 0;
|
|
89
|
+
exports.unsafeUpdateAt = exports.unsafeModifyAt = exports.unsafeInsertAt = exports.unsafeGet = exports.unsafeDeleteAt = exports.unsafeAsMutable = void 0;
|
|
89
90
|
exports.unzip = unzip;
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
exports.
|
|
93
|
-
|
|
91
|
+
exports.updateAt = updateAt;
|
|
92
|
+
exports.witherWithIndex = exports.wither = exports.wiltWithIndex = exports.wilt = void 0;
|
|
93
|
+
exports.zip = zip;
|
|
94
|
+
exports.zipWith = void 0;
|
|
94
95
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/These/constructors"));
|
|
95
|
-
|
|
96
96
|
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/ImmutableArray/constructors"));
|
|
97
|
-
|
|
98
97
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Zipped"));
|
|
99
|
-
|
|
100
98
|
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/ImmutableArray/api/slice"));
|
|
101
|
-
|
|
102
99
|
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/ImmutableNonEmptyArray/definition"));
|
|
103
|
-
|
|
104
100
|
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/definition"));
|
|
105
|
-
|
|
106
101
|
var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/constructors"));
|
|
107
|
-
|
|
108
102
|
var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/instance"));
|
|
109
|
-
|
|
110
103
|
var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/api"));
|
|
111
|
-
|
|
112
104
|
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/run"));
|
|
113
|
-
|
|
114
105
|
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
|
115
|
-
|
|
116
106
|
var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/ImmutableNonEmptyArray/constructors"));
|
|
117
|
-
|
|
118
107
|
var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Dictionary/definition"));
|
|
119
|
-
|
|
120
108
|
var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Dictionary/api"));
|
|
121
|
-
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
var tsplus_module_16 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass/TraversableWithIndex"));
|
|
125
|
-
|
|
126
|
-
var tsplus_module_17 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/destructors"));
|
|
127
|
-
|
|
128
|
-
var tsplus_module_18 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass/WitherableWithIndex"));
|
|
129
|
-
|
|
109
|
+
var tsplus_module_15 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Ord/instances"));
|
|
110
|
+
var tsplus_module_16 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/destructors"));
|
|
130
111
|
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
|
131
|
-
|
|
132
112
|
var P = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass"));
|
|
133
|
-
|
|
134
113
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
135
|
-
|
|
136
114
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
exports.flatMap_ = flatMap_;
|
|
115
|
+
const alignWith = alignWith_1;
|
|
116
|
+
exports.alignWith = alignWith;
|
|
117
|
+
const append = append_1;
|
|
118
|
+
exports.append = append;
|
|
119
|
+
const crossWith = crossWith_1;
|
|
120
|
+
exports.crossWith = crossWith;
|
|
121
|
+
const flatMapWithIndex = flatMapWithIndex_1;
|
|
122
|
+
exports.flatMapWithIndex = flatMapWithIndex;
|
|
123
|
+
const flatMap = flatMap_1;
|
|
124
|
+
exports.flatMap = flatMap;
|
|
148
125
|
const flatten = flatten_1;
|
|
149
126
|
exports.flatten = flatten;
|
|
150
|
-
const
|
|
151
|
-
exports.
|
|
152
|
-
const
|
|
153
|
-
exports.
|
|
154
|
-
const
|
|
155
|
-
exports.
|
|
156
|
-
const
|
|
157
|
-
exports.
|
|
158
|
-
const
|
|
159
|
-
exports.
|
|
160
|
-
const
|
|
161
|
-
exports.
|
|
162
|
-
const
|
|
163
|
-
exports.
|
|
164
|
-
const
|
|
165
|
-
exports.
|
|
166
|
-
const
|
|
167
|
-
exports.
|
|
168
|
-
const
|
|
169
|
-
exports.
|
|
170
|
-
const
|
|
171
|
-
exports.
|
|
172
|
-
const
|
|
173
|
-
exports.
|
|
127
|
+
const chop = chop_1;
|
|
128
|
+
exports.chop = chop;
|
|
129
|
+
const concat = concat_1;
|
|
130
|
+
exports.concat = concat;
|
|
131
|
+
const elem = elem_1;
|
|
132
|
+
exports.elem = elem;
|
|
133
|
+
const everyWithIndex = everyWithIndex_1;
|
|
134
|
+
exports.everyWithIndex = everyWithIndex;
|
|
135
|
+
const filter = filter_1;
|
|
136
|
+
exports.filter = filter;
|
|
137
|
+
const filterWithIndex = filterWithIndex_1;
|
|
138
|
+
exports.filterWithIndex = filterWithIndex;
|
|
139
|
+
const filterMapWithIndex = filterMapWithIndex_1;
|
|
140
|
+
exports.filterMapWithIndex = filterMapWithIndex;
|
|
141
|
+
const findWithIndex = findWithIndex_1;
|
|
142
|
+
exports.findWithIndex = findWithIndex;
|
|
143
|
+
const findMapWithIndex = findMapWithIndex_1;
|
|
144
|
+
exports.findMapWithIndex = findMapWithIndex;
|
|
145
|
+
const findLastMapWithIndex = findLastMapWithIndex_1;
|
|
146
|
+
exports.findLastMapWithIndex = findLastMapWithIndex;
|
|
147
|
+
const foldLeftWithIndex = foldLeftWithIndex_1;
|
|
148
|
+
exports.foldLeftWithIndex = foldLeftWithIndex;
|
|
149
|
+
const foldLeft = foldLeft_1;
|
|
150
|
+
exports.foldLeft = foldLeft;
|
|
151
|
+
const foldLeftWithIndexWhile = foldLeftWithIndexWhile_1;
|
|
152
|
+
exports.foldLeftWithIndexWhile = foldLeftWithIndexWhile;
|
|
174
153
|
const fold = fold_1;
|
|
175
154
|
exports.fold = fold;
|
|
176
|
-
const
|
|
177
|
-
exports.
|
|
178
|
-
const
|
|
179
|
-
exports.
|
|
180
|
-
const
|
|
181
|
-
exports.
|
|
182
|
-
const
|
|
183
|
-
exports.
|
|
184
|
-
const
|
|
185
|
-
exports.
|
|
155
|
+
const foldMapWithIndex = foldMapWithIndex_1;
|
|
156
|
+
exports.foldMapWithIndex = foldMapWithIndex;
|
|
157
|
+
const foldRightWithIndex = foldRightWithIndex_1;
|
|
158
|
+
exports.foldRightWithIndex = foldRightWithIndex;
|
|
159
|
+
const foldRightWithIndexWhile = foldRightWithIndexWhile_1;
|
|
160
|
+
exports.foldRightWithIndexWhile = foldRightWithIndexWhile;
|
|
161
|
+
const forEach = forEach_1;
|
|
162
|
+
exports.forEach = forEach;
|
|
163
|
+
const get = get_1;
|
|
164
|
+
exports.get = get;
|
|
186
165
|
const isEmpty = isEmpty_1;
|
|
187
166
|
exports.isEmpty = isEmpty;
|
|
188
|
-
const
|
|
189
|
-
exports.
|
|
190
|
-
const
|
|
191
|
-
exports.
|
|
192
|
-
const
|
|
193
|
-
exports.
|
|
194
|
-
const
|
|
195
|
-
exports.
|
|
167
|
+
const isOutOfBound = isOutOfBound_1;
|
|
168
|
+
exports.isOutOfBound = isOutOfBound;
|
|
169
|
+
const map = map_1;
|
|
170
|
+
exports.map = map;
|
|
171
|
+
const mapWithIndex = mapWithIndex_1;
|
|
172
|
+
exports.mapWithIndex = mapWithIndex;
|
|
173
|
+
const mutate = mutate_1;
|
|
174
|
+
exports.mutate = mutate;
|
|
196
175
|
const mutableClone = mutableClone_1;
|
|
197
176
|
exports.mutableClone = mutableClone;
|
|
198
|
-
const
|
|
199
|
-
exports.
|
|
200
|
-
const
|
|
201
|
-
exports.
|
|
202
|
-
const
|
|
203
|
-
exports.
|
|
204
|
-
const
|
|
205
|
-
exports.
|
|
206
|
-
const
|
|
207
|
-
exports.
|
|
177
|
+
const partitionWithIndex = partitionWithIndex_1;
|
|
178
|
+
exports.partitionWithIndex = partitionWithIndex;
|
|
179
|
+
const partitionMapWithIndex = partitionMapWithIndex_1;
|
|
180
|
+
exports.partitionMapWithIndex = partitionMapWithIndex;
|
|
181
|
+
const prepend = prepend_1;
|
|
182
|
+
exports.prepend = prepend;
|
|
183
|
+
const prependAll = prependAll_1;
|
|
184
|
+
exports.prependAll = prependAll;
|
|
185
|
+
const rotate = rotate_1;
|
|
186
|
+
exports.rotate = rotate;
|
|
208
187
|
const sort = sort_1;
|
|
209
188
|
exports.sort = sort;
|
|
210
|
-
const
|
|
211
|
-
exports.
|
|
212
|
-
const
|
|
213
|
-
exports.
|
|
189
|
+
const spanIndexLeft = spanIndexLeft_1;
|
|
190
|
+
exports.spanIndexLeft = spanIndexLeft;
|
|
191
|
+
const spanIndexRight = spanIndexRight_1;
|
|
192
|
+
exports.spanIndexRight = spanIndexRight;
|
|
193
|
+
const _traverseWithIndex = _traverseWithIndex_1;
|
|
194
|
+
exports._traverseWithIndex = _traverseWithIndex;
|
|
195
|
+
const _traverse = _traverse_1;
|
|
196
|
+
exports._traverse = _traverse;
|
|
214
197
|
const unsafeGet = unsafeGet_1;
|
|
215
198
|
exports.unsafeGet = unsafeGet;
|
|
216
199
|
const unsafeAsMutable = unsafeAsMutable_1;
|
|
217
200
|
exports.unsafeAsMutable = unsafeAsMutable;
|
|
218
|
-
const
|
|
219
|
-
exports.
|
|
220
|
-
const
|
|
221
|
-
exports.
|
|
222
|
-
const
|
|
223
|
-
exports.
|
|
224
|
-
const
|
|
225
|
-
exports.
|
|
226
|
-
const
|
|
227
|
-
exports.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
return tsplus_module_2.asImmutableArray(ret);
|
|
245
|
-
} else if (selfArray.length > thatArray.length) {
|
|
246
|
-
for (let i = minlen; i < maxlen; i++) {
|
|
247
|
-
ret[i] = f(tsplus_module_1.left(selfArray[i]));
|
|
201
|
+
const unsafeDeleteAt = unsafeDeleteAt_1;
|
|
202
|
+
exports.unsafeDeleteAt = unsafeDeleteAt;
|
|
203
|
+
const unsafeInsertAt = unsafeInsertAt_1;
|
|
204
|
+
exports.unsafeInsertAt = unsafeInsertAt;
|
|
205
|
+
const unsafeModifyAt = unsafeModifyAt_1;
|
|
206
|
+
exports.unsafeModifyAt = unsafeModifyAt;
|
|
207
|
+
const unsafeUpdateAt = unsafeUpdateAt_1;
|
|
208
|
+
exports.unsafeUpdateAt = unsafeUpdateAt;
|
|
209
|
+
const _wiltWithIndex = _wiltWithIndex_1;
|
|
210
|
+
exports._wiltWithIndex = _wiltWithIndex;
|
|
211
|
+
const _witherWithIndex = _witherWithIndex_1;
|
|
212
|
+
exports._witherWithIndex = _witherWithIndex;
|
|
213
|
+
const zipWith = zipWith_1;
|
|
214
|
+
exports.zipWith = zipWith;
|
|
215
|
+
/**
|
|
216
|
+
* @tsplus pipeable fncts.ImmutableArray alignWith
|
|
217
|
+
*/
|
|
218
|
+
function alignWith_1(fb, f) {
|
|
219
|
+
return self => {
|
|
220
|
+
const selfArray = self._array;
|
|
221
|
+
const thatArray = fb._array;
|
|
222
|
+
const minlen = Math.min(selfArray.length, thatArray.length);
|
|
223
|
+
const maxlen = Math.max(selfArray.length, thatArray.length);
|
|
224
|
+
const ret = Array(maxlen);
|
|
225
|
+
for (let i = 0; i < minlen; i++) {
|
|
226
|
+
ret[i] = f(tsplus_module_1.both(selfArray[i], thatArray[i]));
|
|
248
227
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
228
|
+
if (minlen === maxlen) {
|
|
229
|
+
return tsplus_module_2.asImmutableArray(ret);
|
|
230
|
+
} else if (selfArray.length > thatArray.length) {
|
|
231
|
+
for (let i = minlen; i < maxlen; i++) {
|
|
232
|
+
ret[i] = f(tsplus_module_1.left(selfArray[i]));
|
|
233
|
+
}
|
|
234
|
+
} else {
|
|
235
|
+
for (let i = minlen; i < maxlen; i++) {
|
|
236
|
+
ret[i] = f(tsplus_module_1.right(thatArray[i]));
|
|
237
|
+
}
|
|
252
238
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
return tsplus_module_2.asImmutableArray(ret);
|
|
239
|
+
return tsplus_module_2.asImmutableArray(ret);
|
|
240
|
+
};
|
|
256
241
|
}
|
|
257
242
|
/**
|
|
258
|
-
* @tsplus
|
|
243
|
+
* @tsplus pipeable fncts.ImmutableArray align
|
|
259
244
|
*/
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
245
|
+
function align(fb) {
|
|
246
|
+
return self => {
|
|
247
|
+
return alignWith_1(fb, _function.identity)(self);
|
|
248
|
+
};
|
|
264
249
|
}
|
|
265
250
|
/**
|
|
266
|
-
* @tsplus
|
|
251
|
+
* @tsplus pipeable fncts.ImmutableArray alt
|
|
267
252
|
*/
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
253
|
+
function alt(that) {
|
|
254
|
+
return self => {
|
|
255
|
+
return concat_1(that())(self);
|
|
256
|
+
};
|
|
272
257
|
}
|
|
273
258
|
/**
|
|
274
|
-
* @tsplus
|
|
259
|
+
* @tsplus pipeable fncts.ImmutableArray ap
|
|
275
260
|
*/
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
261
|
+
function ap(fa) {
|
|
262
|
+
return self => {
|
|
263
|
+
return flatMap_1(f => map_1(f)(fa))(self);
|
|
264
|
+
};
|
|
280
265
|
}
|
|
281
266
|
/**
|
|
282
|
-
* @tsplus
|
|
267
|
+
* @tsplus pipeable fncts.ImmutableArray append
|
|
283
268
|
*/
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
r
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
return tsplus_module_2.asImmutableArray(r);
|
|
269
|
+
function append_1(last) {
|
|
270
|
+
return self => {
|
|
271
|
+
const selfArray = self._array;
|
|
272
|
+
const len = selfArray.length;
|
|
273
|
+
const r = Array(len + 1);
|
|
274
|
+
r[len] = last;
|
|
275
|
+
for (let i = 0; i < len; i++) {
|
|
276
|
+
r[i] = selfArray[i];
|
|
277
|
+
}
|
|
278
|
+
return tsplus_module_2.asImmutableArray(r);
|
|
279
|
+
};
|
|
297
280
|
}
|
|
298
281
|
/**
|
|
299
|
-
* @tsplus
|
|
282
|
+
* @tsplus pipeable fncts.ImmutableArray crossWith
|
|
300
283
|
*/
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
284
|
+
function crossWith_1(fb, f) {
|
|
285
|
+
return self => {
|
|
286
|
+
return flatMap_1(a => map_1(b => f(a, b))(fb))(self);
|
|
287
|
+
};
|
|
305
288
|
}
|
|
306
289
|
/**
|
|
307
|
-
* @tsplus
|
|
290
|
+
* @tsplus pipeable fncts.ImmutableArray cross
|
|
308
291
|
*/
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
292
|
+
function cross(fb) {
|
|
293
|
+
return self => {
|
|
294
|
+
return crossWith_1(fb, (a, b) => tsplus_module_3.make(a, b))(self);
|
|
295
|
+
};
|
|
313
296
|
}
|
|
314
297
|
/**
|
|
315
298
|
* @tsplus static fncts.ImmutableArrayOps chainRecDepthFirst
|
|
316
299
|
*/
|
|
317
|
-
|
|
318
|
-
|
|
319
300
|
function chainRecDepthFirst(a, f) {
|
|
320
|
-
const buffer = unsafeAsMutable_1(tsplus_module_4.
|
|
301
|
+
const buffer = unsafeAsMutable_1(tsplus_module_4.slice()(f(a)));
|
|
321
302
|
const out = [];
|
|
322
|
-
|
|
323
303
|
while (buffer.length > 0) {
|
|
324
304
|
const e = buffer.shift();
|
|
325
305
|
void 0;
|
|
326
|
-
|
|
327
|
-
if (e._tag === "Left"
|
|
328
|
-
/* EitherTag.Left */
|
|
329
|
-
) {
|
|
306
|
+
if (e._tag === "Left" /* EitherTag.Left */) {
|
|
330
307
|
buffer.unshift(...f(e.left));
|
|
331
308
|
} else {
|
|
332
309
|
out.push(e.right);
|
|
333
310
|
}
|
|
334
311
|
}
|
|
335
|
-
|
|
336
312
|
return tsplus_module_2.asImmutableArray(out);
|
|
337
313
|
}
|
|
338
314
|
/**
|
|
339
315
|
* @tsplus static fncts.ImmutableArrayOps chainRecBreadthFirst
|
|
340
316
|
*/
|
|
341
|
-
|
|
342
|
-
|
|
343
317
|
function chainRecBreadthFirst(a, f) {
|
|
344
318
|
const initial = f(a);
|
|
345
319
|
const buffer = [];
|
|
346
320
|
const out = [];
|
|
347
|
-
|
|
348
321
|
function go(e) {
|
|
349
322
|
void 0;
|
|
350
|
-
|
|
351
323
|
if (e._tag === "Left") {
|
|
352
|
-
forEach_1(
|
|
324
|
+
forEach_1(v => buffer.push(v))(f(e.left));
|
|
353
325
|
} else {
|
|
354
326
|
out.push(e.right);
|
|
355
327
|
}
|
|
356
328
|
}
|
|
357
|
-
|
|
358
329
|
for (const e of initial) {
|
|
359
330
|
go(e);
|
|
360
331
|
}
|
|
361
|
-
|
|
362
332
|
while (buffer.length > 0) {
|
|
363
333
|
go(buffer.shift());
|
|
364
334
|
}
|
|
365
|
-
|
|
366
335
|
return tsplus_module_2.asImmutableArray(out);
|
|
367
336
|
}
|
|
368
337
|
/**
|
|
369
|
-
* @tsplus
|
|
338
|
+
* @tsplus pipeable fncts.ImmutableArray flatMapWithIndex
|
|
370
339
|
*/
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
const arr = f(i, e)._array;
|
|
383
|
-
|
|
384
|
-
outLen += arr.length;
|
|
385
|
-
temp[i] = arr;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
const out = Array(outLen);
|
|
389
|
-
let start = 0;
|
|
390
|
-
|
|
391
|
-
for (let i = 0; i < len; i++) {
|
|
392
|
-
const arr = temp[i];
|
|
393
|
-
const l = arr.length;
|
|
394
|
-
|
|
395
|
-
for (let j = 0; j < l; j++) {
|
|
396
|
-
out[j + start] = arr[j];
|
|
340
|
+
function flatMapWithIndex_1(f) {
|
|
341
|
+
return self => {
|
|
342
|
+
let outLen = 0;
|
|
343
|
+
const selfArray = self._array;
|
|
344
|
+
const len = selfArray.length;
|
|
345
|
+
const temp = Array(len);
|
|
346
|
+
for (let i = 0; i < len; i++) {
|
|
347
|
+
const e = selfArray[i];
|
|
348
|
+
const arr = f(i, e)._array;
|
|
349
|
+
outLen += arr.length;
|
|
350
|
+
temp[i] = arr;
|
|
397
351
|
}
|
|
398
|
-
|
|
399
|
-
start
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
352
|
+
const out = Array(outLen);
|
|
353
|
+
let start = 0;
|
|
354
|
+
for (let i = 0; i < len; i++) {
|
|
355
|
+
const arr = temp[i];
|
|
356
|
+
const l = arr.length;
|
|
357
|
+
for (let j = 0; j < l; j++) {
|
|
358
|
+
out[j + start] = arr[j];
|
|
359
|
+
}
|
|
360
|
+
start += l;
|
|
361
|
+
}
|
|
362
|
+
return tsplus_module_2.asImmutableArray(out);
|
|
363
|
+
};
|
|
403
364
|
}
|
|
404
365
|
/**
|
|
405
|
-
* @tsplus
|
|
366
|
+
* @tsplus pipeable fncts.ImmutableArray flatMap
|
|
406
367
|
*/
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
368
|
+
function flatMap_1(f) {
|
|
369
|
+
return self => {
|
|
370
|
+
return flatMapWithIndex_1((_, a) => f(a))(self);
|
|
371
|
+
};
|
|
411
372
|
}
|
|
412
373
|
/**
|
|
413
374
|
* @tsplus getter fncts.ImmutableArray flatten
|
|
414
375
|
*/
|
|
415
|
-
|
|
416
|
-
|
|
417
376
|
function flatten_1(self) {
|
|
418
|
-
return flatMap_1(
|
|
377
|
+
return flatMap_1(_function.identity)(self);
|
|
419
378
|
}
|
|
420
379
|
/**
|
|
421
380
|
* A useful recursion pattern for processing a `Array` to produce a new `Array`,
|
|
422
381
|
* often used for "chopping" up the input `Array`. Typically chop is called with some function
|
|
423
382
|
* that will consume an initial prefix of the `Array` and produce a value and the rest of the `Array`.
|
|
424
383
|
*
|
|
425
|
-
* @tsplus
|
|
426
|
-
*/
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
return tsplus_module_2.asImmutableArray(result);
|
|
384
|
+
* @tsplus pipeable fncts.ImmutableArray chop
|
|
385
|
+
*/
|
|
386
|
+
function chop_1(f) {
|
|
387
|
+
return as => {
|
|
388
|
+
const result = [];
|
|
389
|
+
let cs = as;
|
|
390
|
+
while (tsplus_module_5.isNonEmpty(cs)) {
|
|
391
|
+
const [b, c] = f(cs);
|
|
392
|
+
result.push(b);
|
|
393
|
+
cs = c;
|
|
394
|
+
}
|
|
395
|
+
return tsplus_module_2.asImmutableArray(result);
|
|
396
|
+
};
|
|
440
397
|
}
|
|
441
|
-
|
|
442
|
-
const chop = f => as => chop_(as, f);
|
|
443
398
|
/**
|
|
444
|
-
* @tsplus
|
|
399
|
+
* @tsplus pipeable fncts.ImmutableArray collectWhile
|
|
445
400
|
*/
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
if (tsplus_module_6.isJust(o)) {
|
|
457
|
-
result.push(o.value);
|
|
458
|
-
} else {
|
|
459
|
-
break;
|
|
401
|
+
function collectWhile(f) {
|
|
402
|
+
return as => {
|
|
403
|
+
const result = [];
|
|
404
|
+
for (let i = 0; i < tsplus_module_5.length(as); i++) {
|
|
405
|
+
const o = f(as._array[i]);
|
|
406
|
+
if (tsplus_module_6.isJust(o)) {
|
|
407
|
+
result.push(o.value);
|
|
408
|
+
} else {
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
460
411
|
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
return tsplus_module_2.asImmutableArray(result);
|
|
412
|
+
return tsplus_module_2.asImmutableArray(result);
|
|
413
|
+
};
|
|
464
414
|
}
|
|
465
|
-
|
|
466
415
|
function comprehensionLoop(scope, input, f, g) {
|
|
467
416
|
if (input.length === 0) {
|
|
468
417
|
return g(...scope) ? tsplus_module_7.now(tsplus_module_2.make(f(...scope))) : tsplus_module_7.now(tsplus_module_2.empty());
|
|
469
418
|
} else {
|
|
470
|
-
return tsplus_module_9.
|
|
419
|
+
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)));
|
|
471
420
|
}
|
|
472
421
|
}
|
|
473
|
-
|
|
474
422
|
function comprehension(input, f, g = () => true) {
|
|
475
423
|
return tsplus_module_10.run(comprehensionLoop(tsplus_module_2.empty(), input, f, g));
|
|
476
424
|
}
|
|
477
425
|
/**
|
|
478
|
-
* @tsplus
|
|
479
|
-
* @tsplus operator fncts.ImmutableArray +
|
|
426
|
+
* @tsplus pipeable fncts.ImmutableArray concat
|
|
427
|
+
* @tsplus pipeable-operator fncts.ImmutableArray +
|
|
480
428
|
*/
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
for (let i = 0; i < leny; i++) {
|
|
503
|
-
r[i + lenx] = that._array[i];
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
return tsplus_module_2.asImmutableArray(r);
|
|
429
|
+
function concat_1(that) {
|
|
430
|
+
return self => {
|
|
431
|
+
const lenx = self._array.length;
|
|
432
|
+
if (lenx === 0) {
|
|
433
|
+
return that;
|
|
434
|
+
}
|
|
435
|
+
const leny = that._array.length;
|
|
436
|
+
if (leny === 0) {
|
|
437
|
+
return self;
|
|
438
|
+
}
|
|
439
|
+
const r = Array(lenx + leny);
|
|
440
|
+
for (let i = 0; i < lenx; i++) {
|
|
441
|
+
r[i] = self._array[i];
|
|
442
|
+
}
|
|
443
|
+
for (let i = 0; i < leny; i++) {
|
|
444
|
+
r[i + lenx] = that._array[i];
|
|
445
|
+
}
|
|
446
|
+
return tsplus_module_2.asImmutableArray(r);
|
|
447
|
+
};
|
|
507
448
|
}
|
|
508
449
|
/**
|
|
509
|
-
* @tsplus
|
|
450
|
+
* @tsplus pipeable fncts.ImmutableArray deleteAt
|
|
510
451
|
*/
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
452
|
+
function deleteAt(i) {
|
|
453
|
+
return as => {
|
|
454
|
+
return isOutOfBound_1(i)(as) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeDeleteAt_1(i)(as));
|
|
455
|
+
};
|
|
515
456
|
}
|
|
516
457
|
/**
|
|
517
|
-
* @tsplus
|
|
458
|
+
* @tsplus pipeable fncts.ImmutableArray difference
|
|
518
459
|
*/
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
E) {
|
|
524
|
-
return filter_1(self, a => !elem_1(ys, a, E));
|
|
460
|
+
function difference(ys, /** @tsplus auto */E) {
|
|
461
|
+
return self => {
|
|
462
|
+
return filter_1(a => !elem_1(a, E)(ys))(self);
|
|
463
|
+
};
|
|
525
464
|
}
|
|
526
465
|
/**
|
|
527
|
-
* @tsplus
|
|
466
|
+
* @tsplus pipeable fncts.ImmutableArray drop
|
|
528
467
|
*/
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
468
|
+
function drop(n) {
|
|
469
|
+
return self => {
|
|
470
|
+
return tsplus_module_4.slice(n)(self);
|
|
471
|
+
};
|
|
533
472
|
}
|
|
534
473
|
/**
|
|
535
|
-
* @tsplus
|
|
474
|
+
* @tsplus pipeable fncts.ImmutableArray dropLast
|
|
536
475
|
*/
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
476
|
+
function dropLast(n) {
|
|
477
|
+
return self => {
|
|
478
|
+
return tsplus_module_4.slice(0, tsplus_module_5.length(self) - n)(self);
|
|
479
|
+
};
|
|
541
480
|
}
|
|
542
481
|
/**
|
|
543
|
-
* @tsplus
|
|
482
|
+
* @tsplus pipeable fncts.ImmutableArray dropWhile
|
|
544
483
|
*/
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
484
|
+
function dropWhile(p) {
|
|
485
|
+
return self => {
|
|
486
|
+
return tsplus_module_4.slice(spanIndexLeft_1(p)(self))(self);
|
|
487
|
+
};
|
|
549
488
|
}
|
|
550
489
|
/**
|
|
551
|
-
* @tsplus
|
|
490
|
+
* @tsplus pipeable fncts.ImmutableArray dropLastWhile
|
|
552
491
|
*/
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
492
|
+
function dropLastWhile(p) {
|
|
493
|
+
return as => {
|
|
494
|
+
return tsplus_module_4.slice(0, spanIndexRight_1(p)(as) + 1)(as);
|
|
495
|
+
};
|
|
557
496
|
}
|
|
558
497
|
/**
|
|
559
498
|
* Test if a value is a member of an array. Takes an `Eq<A>` as a single
|
|
560
499
|
* argument which returns the function to use to search for a value of type `A` in
|
|
561
500
|
* an array of type `ImmutableArray<A>`.
|
|
562
501
|
*
|
|
563
|
-
* @tsplus
|
|
564
|
-
*/
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
for (let i = 0; i < len; i++) {
|
|
575
|
-
if (predicate(as._array[i])) {
|
|
576
|
-
return true;
|
|
502
|
+
* @tsplus pipeable fncts.ImmutableArray elem
|
|
503
|
+
*/
|
|
504
|
+
function elem_1(a, /** @tsplus auto */E) {
|
|
505
|
+
return as => {
|
|
506
|
+
const predicate = element => E.equals(a)(element);
|
|
507
|
+
const len = tsplus_module_5.length(as);
|
|
508
|
+
for (let i = 0; i < len; i++) {
|
|
509
|
+
if (predicate(as._array[i])) {
|
|
510
|
+
return true;
|
|
511
|
+
}
|
|
577
512
|
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
return result;
|
|
513
|
+
return false;
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
function every(p) {
|
|
517
|
+
return self => {
|
|
518
|
+
return everyWithIndex_1((_, a) => p(a))(self);
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
function everyWithIndex_1(p) {
|
|
522
|
+
return self => {
|
|
523
|
+
let result = true;
|
|
524
|
+
let i = 0;
|
|
525
|
+
while (result && i < tsplus_module_5.length(self)) {
|
|
526
|
+
result = p(i, self._array[i]);
|
|
527
|
+
i++;
|
|
528
|
+
}
|
|
529
|
+
return result;
|
|
530
|
+
};
|
|
597
531
|
}
|
|
598
532
|
/**
|
|
599
|
-
* @tsplus
|
|
533
|
+
* @tsplus pipeable fncts.ImmutableArray some
|
|
600
534
|
*/
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
result = p(self._array[i]);
|
|
609
|
-
i++;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
return result;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
function filter_1(self, p) {
|
|
616
|
-
return filterWithIndex_1(self, (_, a) => p(a));
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
function filterWithIndex_1(self, p) {
|
|
620
|
-
const result = [];
|
|
621
|
-
|
|
622
|
-
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
623
|
-
const a = self._array[i];
|
|
624
|
-
|
|
625
|
-
if (p(i, a)) {
|
|
626
|
-
result.push(a);
|
|
535
|
+
function some(p) {
|
|
536
|
+
return self => {
|
|
537
|
+
let result = false;
|
|
538
|
+
let i = 0;
|
|
539
|
+
while (!result && i < tsplus_module_5.length(self)) {
|
|
540
|
+
result = p(self._array[i]);
|
|
541
|
+
i++;
|
|
627
542
|
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
543
|
+
return result;
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
function filter_1(p) {
|
|
547
|
+
return self => {
|
|
548
|
+
return filterWithIndex_1((_, a) => p(a))(self);
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
function filterWithIndex_1(p) {
|
|
552
|
+
return self => {
|
|
553
|
+
const result = [];
|
|
554
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
555
|
+
const a = self._array[i];
|
|
556
|
+
if (p(i, a)) {
|
|
557
|
+
result.push(a);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
return tsplus_module_2.asImmutableArray(result);
|
|
561
|
+
};
|
|
631
562
|
}
|
|
632
563
|
/**
|
|
633
|
-
* @tsplus
|
|
564
|
+
* @tsplus pipeable fncts.ImmutableArray filterMapWithIndex
|
|
634
565
|
*/
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
if (tsplus_module_6.isJust(maybeB)) {
|
|
644
|
-
result.push(maybeB.value);
|
|
566
|
+
function filterMapWithIndex_1(f) {
|
|
567
|
+
return fa => {
|
|
568
|
+
const result = [];
|
|
569
|
+
for (let i = 0; i < tsplus_module_5.length(fa); i++) {
|
|
570
|
+
const maybeB = f(i, unsafeGet_1(fa, i));
|
|
571
|
+
if (tsplus_module_6.isJust(maybeB)) {
|
|
572
|
+
result.push(maybeB.value);
|
|
573
|
+
}
|
|
645
574
|
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
return tsplus_module_2.asImmutableArray(result);
|
|
575
|
+
return tsplus_module_2.asImmutableArray(result);
|
|
576
|
+
};
|
|
649
577
|
}
|
|
650
578
|
/**
|
|
651
|
-
* @tsplus
|
|
579
|
+
* @tsplus pipeable fncts.ImmutableArray filterMap
|
|
652
580
|
*/
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
581
|
+
function filterMap(f) {
|
|
582
|
+
return self => {
|
|
583
|
+
return filterMapWithIndex_1((_, a) => f(a))(self);
|
|
584
|
+
};
|
|
657
585
|
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
586
|
+
function find(p) {
|
|
587
|
+
return self => {
|
|
588
|
+
return findWithIndex_1((_, a) => p(a))(self);
|
|
589
|
+
};
|
|
661
590
|
}
|
|
662
591
|
/**
|
|
663
|
-
* @tsplus
|
|
592
|
+
* @tsplus pipeable fncts.ImmutableArray findIndex
|
|
664
593
|
*/
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
594
|
+
function findIndex(predicate) {
|
|
595
|
+
return as => {
|
|
596
|
+
return findMapWithIndex_1((i, a) => predicate(a) ? tsplus_module_11.just(i) : tsplus_module_11.nothing())(as);
|
|
597
|
+
};
|
|
669
598
|
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
599
|
+
function findWithIndex_1(p) {
|
|
600
|
+
return as => {
|
|
601
|
+
const len = tsplus_module_5.length(as);
|
|
602
|
+
for (let i = 0; i < len; i++) {
|
|
603
|
+
if (p(i, as._array[i])) {
|
|
604
|
+
return tsplus_module_11.just(as._array[i]);
|
|
605
|
+
}
|
|
677
606
|
}
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
return tsplus_module_11.nothing();
|
|
607
|
+
return tsplus_module_11.nothing();
|
|
608
|
+
};
|
|
681
609
|
}
|
|
682
610
|
/**
|
|
683
|
-
* @tsplus
|
|
611
|
+
* @tsplus pipeable fncts.ImmutableArray findMap
|
|
684
612
|
*/
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
613
|
+
function findMap(f) {
|
|
614
|
+
return as => {
|
|
615
|
+
return findMapWithIndex_1((_, a) => f(a))(as);
|
|
616
|
+
};
|
|
689
617
|
}
|
|
690
618
|
/**
|
|
691
|
-
* @tsplus
|
|
619
|
+
* @tsplus pipeable fncts.ImmutableArray findMapWithIndex
|
|
692
620
|
*/
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
if (tsplus_module_6.isJust(v)) {
|
|
702
|
-
return v;
|
|
621
|
+
function findMapWithIndex_1(f) {
|
|
622
|
+
return as => {
|
|
623
|
+
const len = tsplus_module_5.length(as);
|
|
624
|
+
for (let i = 0; i < len; i++) {
|
|
625
|
+
const v = f(i, as._array[i]);
|
|
626
|
+
if (tsplus_module_6.isJust(v)) {
|
|
627
|
+
return v;
|
|
628
|
+
}
|
|
703
629
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
return tsplus_module_11.just(as._array[i]);
|
|
630
|
+
return tsplus_module_11.nothing();
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
function findLast(p) {
|
|
634
|
+
return as => {
|
|
635
|
+
const len = tsplus_module_5.length(as);
|
|
636
|
+
for (let i = len - 1; i >= 0; i--) {
|
|
637
|
+
if (p(as._array[i])) {
|
|
638
|
+
return tsplus_module_11.just(as._array[i]);
|
|
639
|
+
}
|
|
715
640
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
return tsplus_module_11.nothing();
|
|
641
|
+
return tsplus_module_11.nothing();
|
|
642
|
+
};
|
|
719
643
|
}
|
|
720
644
|
/**
|
|
721
|
-
* @tsplus
|
|
645
|
+
* @tsplus pipeable fncts.ImmutableArray findLastIndex
|
|
722
646
|
*/
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
647
|
+
function findLastIndex(p) {
|
|
648
|
+
return self => {
|
|
649
|
+
return findLastMapWithIndex_1((i, a) => p(a) ? tsplus_module_11.just(i) : tsplus_module_11.nothing())(self);
|
|
650
|
+
};
|
|
727
651
|
}
|
|
728
652
|
/**
|
|
729
|
-
* @tsplus
|
|
653
|
+
* @tsplus pipeable fncts.ImmutableArray findLastMap
|
|
730
654
|
*/
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
655
|
+
function findLastMap(f) {
|
|
656
|
+
return as => {
|
|
657
|
+
return findLastMapWithIndex_1((_, a) => f(a))(as);
|
|
658
|
+
};
|
|
735
659
|
}
|
|
736
660
|
/**
|
|
737
|
-
* @tsplus
|
|
661
|
+
* @tsplus pipeable fncts.ImmutableArray findLastMapWithIndex
|
|
738
662
|
*/
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
if (tsplus_module_6.isJust(v)) {
|
|
748
|
-
return v;
|
|
663
|
+
function findLastMapWithIndex_1(f) {
|
|
664
|
+
return as => {
|
|
665
|
+
const len = tsplus_module_5.length(as);
|
|
666
|
+
for (let i = len - 1; i >= 0; i--) {
|
|
667
|
+
const v = f(i, as._array[i]);
|
|
668
|
+
if (tsplus_module_6.isJust(v)) {
|
|
669
|
+
return v;
|
|
670
|
+
}
|
|
749
671
|
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
return tsplus_module_11.nothing();
|
|
672
|
+
return tsplus_module_11.nothing();
|
|
673
|
+
};
|
|
753
674
|
}
|
|
754
675
|
/**
|
|
755
|
-
* @tsplus
|
|
756
|
-
* @tsplus
|
|
676
|
+
* @tsplus pipeable fncts.ImmutableArray foldLeftWithIndex
|
|
677
|
+
* @tsplus pipeable fncts.MutableArray foldLeftWithIndex
|
|
757
678
|
*/
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
return r;
|
|
679
|
+
function foldLeftWithIndex_1(b, f) {
|
|
680
|
+
return self => {
|
|
681
|
+
const len = tsplus_module_5.length(self);
|
|
682
|
+
let r = b;
|
|
683
|
+
for (let i = 0; i < len; i++) {
|
|
684
|
+
r = f(i, r, self._array[i]);
|
|
685
|
+
}
|
|
686
|
+
return r;
|
|
687
|
+
};
|
|
769
688
|
}
|
|
770
689
|
/**
|
|
771
|
-
* @tsplus
|
|
772
|
-
* @tsplus
|
|
690
|
+
* @tsplus pipeable fncts.ImmutableArray foldLeft
|
|
691
|
+
* @tsplus pipeable fncts.MutableArray foldLeft
|
|
773
692
|
*/
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
693
|
+
function foldLeft_1(b, f) {
|
|
694
|
+
return self => {
|
|
695
|
+
return foldLeftWithIndex_1(b, (_, b, a) => f(b, a))(self);
|
|
696
|
+
};
|
|
778
697
|
}
|
|
779
698
|
/**
|
|
780
|
-
* @tsplus
|
|
781
|
-
* @tsplus
|
|
699
|
+
* @tsplus pipeable fncts.ImmutableArray foldLeftWhile
|
|
700
|
+
* @tsplus pipeable fncts.MutableArray foldLeftWhile
|
|
782
701
|
*/
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
702
|
+
function foldLeftWhile(b, p, f) {
|
|
703
|
+
return self => {
|
|
704
|
+
return foldLeftWithIndexWhile_1(b, p, (_, b, a) => f(b, a))(self);
|
|
705
|
+
};
|
|
787
706
|
}
|
|
788
707
|
/**
|
|
789
|
-
* @tsplus
|
|
790
|
-
* @tsplus
|
|
708
|
+
* @tsplus pipeable fncts.ImmutableArray foldLeftWithIndexWhile
|
|
709
|
+
* @tsplus pipeable fncts.MutableArray foldLeftWithIndexWhile
|
|
791
710
|
*/
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
return out;
|
|
711
|
+
function foldLeftWithIndexWhile_1(b, p, f) {
|
|
712
|
+
return self => {
|
|
713
|
+
let out = b;
|
|
714
|
+
let cont = p(out);
|
|
715
|
+
for (let i = 0; cont && i < tsplus_module_5.length(self); i++) {
|
|
716
|
+
out = f(i, out, self._array[i]);
|
|
717
|
+
cont = p(out);
|
|
718
|
+
}
|
|
719
|
+
return out;
|
|
720
|
+
};
|
|
804
721
|
}
|
|
805
722
|
/**
|
|
806
|
-
* @tsplus
|
|
723
|
+
* @tsplus pipeable fncts.ImmutableArray fold
|
|
807
724
|
*/
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
M) {
|
|
813
|
-
return foldLeft_1(self, M.nat, M.combine);
|
|
725
|
+
function fold_1( /** @tsplus auto */M) {
|
|
726
|
+
return self => {
|
|
727
|
+
return foldLeft_1(M.nat, (b, a) => M.combine(a)(b))(self);
|
|
728
|
+
};
|
|
814
729
|
}
|
|
815
730
|
/**
|
|
816
|
-
* @tsplus
|
|
731
|
+
* @tsplus pipeable fncts.ImmutableArray foldMapWithIndex
|
|
817
732
|
*/
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
M) {
|
|
823
|
-
return foldLeftWithIndex_1(self, M.nat, (i, b, a) => M.combine(b, f(i, a)));
|
|
733
|
+
function foldMapWithIndex_1(f, /** @tsplus auto */M) {
|
|
734
|
+
return self => {
|
|
735
|
+
return foldLeftWithIndex_1(M.nat, (i, b, a) => M.combine(f(i, a))(b))(self);
|
|
736
|
+
};
|
|
824
737
|
}
|
|
825
738
|
/**
|
|
826
|
-
* @tsplus
|
|
739
|
+
* @tsplus pipeable fncts.ImmutableArray foldMap
|
|
827
740
|
*/
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
M) {
|
|
833
|
-
return foldMapWithIndex_1(self, (_, a) => f(a), M);
|
|
741
|
+
function foldMap(f, /** @tsplus auto */M) {
|
|
742
|
+
return self => {
|
|
743
|
+
return foldMapWithIndex_1((_, a) => f(a), M)(self);
|
|
744
|
+
};
|
|
834
745
|
}
|
|
835
746
|
/**
|
|
836
|
-
* @tsplus
|
|
747
|
+
* @tsplus pipeable fncts.ImmutableArray foldRightWithIndex
|
|
837
748
|
*/
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
return r;
|
|
749
|
+
function foldRightWithIndex_1(b, f) {
|
|
750
|
+
return self => {
|
|
751
|
+
let r = b;
|
|
752
|
+
for (let i = tsplus_module_5.length(self) - 1; i >= 0; i--) {
|
|
753
|
+
r = f(i, self._array[i], r);
|
|
754
|
+
}
|
|
755
|
+
return r;
|
|
756
|
+
};
|
|
848
757
|
}
|
|
849
758
|
/**
|
|
850
|
-
* @tsplus
|
|
759
|
+
* @tsplus pipeable fncts.ImmutableArray foldRight
|
|
851
760
|
*/
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
761
|
+
function foldRight(b, f) {
|
|
762
|
+
return self => {
|
|
763
|
+
return foldRightWithIndex_1(b, (_, a, b) => f(a, b))(self);
|
|
764
|
+
};
|
|
856
765
|
}
|
|
857
766
|
/**
|
|
858
|
-
* @tsplus
|
|
767
|
+
* @tsplus pipeable fncts.ImmutableArray foldRighWhile
|
|
859
768
|
*/
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
769
|
+
function foldRightWhile(b, p, f) {
|
|
770
|
+
return self => {
|
|
771
|
+
return foldRightWithIndexWhile_1(b, p, (_, a, b) => f(a, b))(self);
|
|
772
|
+
};
|
|
864
773
|
}
|
|
865
774
|
/**
|
|
866
|
-
* @tsplus
|
|
775
|
+
* @tsplus pipeable fncts.ImmutableArray foldRightWithIndexWhile
|
|
867
776
|
*/
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
return out;
|
|
777
|
+
function foldRightWithIndexWhile_1(b, predicate, f) {
|
|
778
|
+
return self => {
|
|
779
|
+
let out = b;
|
|
780
|
+
let cont = predicate(out);
|
|
781
|
+
for (let i = tsplus_module_5.length(self) - 1; cont && i >= 0; i--) {
|
|
782
|
+
out = f(i, self._array[i], out);
|
|
783
|
+
cont = predicate(out);
|
|
784
|
+
}
|
|
785
|
+
return out;
|
|
786
|
+
};
|
|
880
787
|
}
|
|
881
788
|
/**
|
|
882
|
-
* @tsplus
|
|
789
|
+
* @tsplus pipeable fncts.ImmutableArray forEach
|
|
883
790
|
*/
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
791
|
+
function forEach_1(f) {
|
|
792
|
+
return self => {
|
|
793
|
+
return forEach_1(f)(self);
|
|
794
|
+
};
|
|
888
795
|
}
|
|
889
796
|
/**
|
|
890
|
-
* @tsplus
|
|
891
|
-
* @tsplus
|
|
797
|
+
* @tsplus pipeable fncts.ImmutableArray get
|
|
798
|
+
* @tsplus pipeable fncts.MutableArray get
|
|
892
799
|
*/
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
800
|
+
function get_1(i) {
|
|
801
|
+
return self => {
|
|
802
|
+
return isOutOfBound_1(i)(self) ? tsplus_module_11.nothing() : tsplus_module_11.just(self._array[i]);
|
|
803
|
+
};
|
|
897
804
|
}
|
|
898
|
-
|
|
805
|
+
/**
|
|
806
|
+
* @tsplus pipeable fncts.ImmutableArray group
|
|
807
|
+
*/
|
|
899
808
|
function group(E) {
|
|
900
|
-
return
|
|
809
|
+
return chop_1(self => {
|
|
901
810
|
const h = self._array[0];
|
|
902
811
|
const out = [h];
|
|
903
812
|
let i = 1;
|
|
904
|
-
|
|
905
813
|
for (; i < tsplus_module_5.length(self); i++) {
|
|
906
814
|
const a = self._array[i];
|
|
907
|
-
|
|
908
|
-
if (E.equals(a, h)) {
|
|
815
|
+
if (E.equals(h)(a)) {
|
|
909
816
|
out.push(a);
|
|
910
817
|
} else {
|
|
911
818
|
break;
|
|
912
819
|
}
|
|
913
820
|
}
|
|
914
|
-
|
|
915
|
-
return [tsplus_module_12.unsafeAsNonEmptyArray(out), tsplus_module_4.slice_(self, i)];
|
|
821
|
+
return [tsplus_module_12.unsafeAsNonEmptyArray(out), tsplus_module_4.slice(i)(self)];
|
|
916
822
|
});
|
|
917
823
|
}
|
|
918
824
|
/**
|
|
919
|
-
* @tsplus
|
|
825
|
+
* @tsplus pipeable fncts.ImmutableArray groupBy
|
|
920
826
|
*/
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
const out = {};
|
|
933
|
-
|
|
934
|
-
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
935
|
-
const a = self._array[i];
|
|
936
|
-
const k = f(a);
|
|
937
|
-
|
|
938
|
-
if (Object.prototype.hasOwnProperty.call(out, k)) {
|
|
939
|
-
out[k].push(a);
|
|
940
|
-
} else {
|
|
941
|
-
out[k] = [a];
|
|
827
|
+
function groupBy(f) {
|
|
828
|
+
return self => {
|
|
829
|
+
const out = {};
|
|
830
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
831
|
+
const a = self._array[i];
|
|
832
|
+
const k = f(a);
|
|
833
|
+
if (Object.prototype.hasOwnProperty.call(out, k)) {
|
|
834
|
+
out[k].push(a);
|
|
835
|
+
} else {
|
|
836
|
+
out[k] = [a];
|
|
837
|
+
}
|
|
942
838
|
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
return tsplus_module_14.map_(tsplus_module_13.Dictionary.get(out), tsplus_module_12.from);
|
|
839
|
+
return tsplus_module_14.map(tsplus_module_12.from)(tsplus_module_13.Dictionary.get(out));
|
|
840
|
+
};
|
|
946
841
|
}
|
|
947
842
|
/**
|
|
948
843
|
* @tsplus getter fncts.ImmutableArray head
|
|
949
844
|
*/
|
|
950
|
-
|
|
951
|
-
|
|
952
845
|
function head(self) {
|
|
953
846
|
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just(self._array[0]) : tsplus_module_11.nothing();
|
|
954
847
|
}
|
|
955
848
|
/**
|
|
956
849
|
* @tsplus getter fncts.ImmutableArray init
|
|
957
850
|
*/
|
|
958
|
-
|
|
959
|
-
|
|
960
851
|
function init(self) {
|
|
961
852
|
const len = tsplus_module_5.length(self);
|
|
962
|
-
return len === 0 ? tsplus_module_11.nothing() : tsplus_module_11.just(tsplus_module_4.
|
|
853
|
+
return len === 0 ? tsplus_module_11.nothing() : tsplus_module_11.just(tsplus_module_4.slice(0, len - 1)(self));
|
|
963
854
|
}
|
|
964
855
|
/**
|
|
965
|
-
* @tsplus
|
|
856
|
+
* @tsplus pipeable fncts.ImmutableArray insertAt
|
|
966
857
|
*/
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
858
|
+
function insertAt(i, a) {
|
|
859
|
+
return self => {
|
|
860
|
+
return isOutOfBound_1(i)(self) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeInsertAt_1(i, a)(self));
|
|
861
|
+
};
|
|
971
862
|
}
|
|
972
863
|
/**
|
|
973
|
-
* @tsplus
|
|
864
|
+
* @tsplus pipeable fncts.ImmutableArray intersection
|
|
974
865
|
*/
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
E) {
|
|
980
|
-
return filter_1(self, a => elem_1(that, a, E));
|
|
866
|
+
function intersection(that, /** @tsplus auto */E) {
|
|
867
|
+
return self => {
|
|
868
|
+
return filter_1(a => elem_1(a, E)(that))(self);
|
|
869
|
+
};
|
|
981
870
|
}
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
871
|
+
/**
|
|
872
|
+
* @tsplus pipeable fncts.ImmutableArray intersperse
|
|
873
|
+
*/
|
|
874
|
+
function intersperse(a) {
|
|
875
|
+
return self => {
|
|
876
|
+
const len = tsplus_module_5.length(self);
|
|
877
|
+
return len === 0 ? self : prepend_1(unsafeGet_1(self, 0))(prependAll_1(a)(tsplus_module_4.slice(1, len)(self)));
|
|
878
|
+
};
|
|
986
879
|
}
|
|
987
880
|
/**
|
|
988
881
|
* @tsplus fluent fncts.ImmutableArray isEmpty
|
|
989
882
|
*/
|
|
990
|
-
|
|
991
|
-
|
|
992
883
|
function isEmpty_1(self) {
|
|
993
884
|
return tsplus_module_5.length(self) === 0;
|
|
994
885
|
}
|
|
995
886
|
/**
|
|
996
|
-
* @tsplus
|
|
887
|
+
* @tsplus pipeable fncts.ImmutableArray isOutOfBound
|
|
997
888
|
*/
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
889
|
+
function isOutOfBound_1(i) {
|
|
890
|
+
return self => {
|
|
891
|
+
return i < 0 || i >= tsplus_module_5.length(self);
|
|
892
|
+
};
|
|
1002
893
|
}
|
|
1003
894
|
/**
|
|
1004
|
-
* @tsplus
|
|
895
|
+
* @tsplus pipeable fncts.ImmutableArray join
|
|
1005
896
|
*/
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
897
|
+
function join(separator) {
|
|
898
|
+
return self => {
|
|
899
|
+
return self._array.join(separator);
|
|
900
|
+
};
|
|
1010
901
|
}
|
|
1011
902
|
/**
|
|
1012
903
|
* @tsplus getter fncts.ImmutableArray last
|
|
1013
904
|
*/
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
905
|
function last(self) {
|
|
1017
|
-
return get_1(
|
|
906
|
+
return get_1(tsplus_module_5.length(self) - 1)(self);
|
|
1018
907
|
}
|
|
1019
908
|
/**
|
|
1020
909
|
* @tsplus getter fncts.ImmutableArray length
|
|
1021
910
|
*/
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
911
|
function length(self) {
|
|
1025
912
|
return self._array.length;
|
|
1026
913
|
}
|
|
1027
914
|
/**
|
|
1028
915
|
* @tsplus getter fncts.ImmutableArray lefts
|
|
1029
916
|
*/
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
917
|
function lefts(self) {
|
|
1033
918
|
const ls = [];
|
|
1034
|
-
|
|
1035
919
|
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
1036
920
|
const a = self._array[i];
|
|
1037
921
|
void 0;
|
|
1038
|
-
|
|
1039
|
-
if (a._tag === "Left"
|
|
1040
|
-
/* EitherTag.Left */
|
|
1041
|
-
) {
|
|
922
|
+
if (a._tag === "Left" /* EitherTag.Left */) {
|
|
1042
923
|
ls.push(a.left);
|
|
1043
924
|
}
|
|
1044
925
|
}
|
|
1045
|
-
|
|
1046
926
|
return tsplus_module_2.asImmutableArray(ls);
|
|
1047
927
|
}
|
|
1048
928
|
/**
|
|
1049
|
-
* @tsplus
|
|
929
|
+
* @tsplus pipeable fncts.ImmutableArray map
|
|
1050
930
|
*/
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
931
|
+
function map_1(f) {
|
|
932
|
+
return self => {
|
|
933
|
+
return mapWithIndex_1((_, a) => f(a))(self);
|
|
934
|
+
};
|
|
1055
935
|
}
|
|
1056
936
|
/**
|
|
1057
|
-
* @tsplus
|
|
937
|
+
* @tsplus pipeable fncts.ImmutableArray mapAccum
|
|
1058
938
|
*/
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
return [tsplus_module_2.asImmutableArray(bs), state];
|
|
939
|
+
function mapAccum(s, f) {
|
|
940
|
+
return self => {
|
|
941
|
+
const bs = Array(tsplus_module_5.length(self));
|
|
942
|
+
let state = s;
|
|
943
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
944
|
+
const result = f(state, self._array[i]);
|
|
945
|
+
bs[i] = result[0];
|
|
946
|
+
state = result[1];
|
|
947
|
+
}
|
|
948
|
+
return [tsplus_module_2.asImmutableArray(bs), state];
|
|
949
|
+
};
|
|
1072
950
|
}
|
|
1073
951
|
/**
|
|
1074
|
-
* @tsplus
|
|
952
|
+
* @tsplus pipeable fncts.ImmutableArray mapWithIndex
|
|
1075
953
|
*/
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
return tsplus_module_2.asImmutableArray(bs);
|
|
954
|
+
function mapWithIndex_1(f) {
|
|
955
|
+
return self => {
|
|
956
|
+
const len = self._array.length;
|
|
957
|
+
const bs = Array(len);
|
|
958
|
+
for (let i = 0; i < len; i++) {
|
|
959
|
+
bs[i] = f(i, self._array[i]);
|
|
960
|
+
}
|
|
961
|
+
return tsplus_module_2.asImmutableArray(bs);
|
|
962
|
+
};
|
|
1087
963
|
}
|
|
1088
964
|
/**
|
|
1089
|
-
* @tsplus
|
|
965
|
+
* @tsplus pipeable fncts.ImmutableArray modifyAt
|
|
1090
966
|
*/
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
967
|
+
function modifyAt(i, f) {
|
|
968
|
+
return self => {
|
|
969
|
+
return isOutOfBound_1(i)(self) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeModifyAt_1(i, f)(self));
|
|
970
|
+
};
|
|
1095
971
|
}
|
|
1096
972
|
/**
|
|
1097
|
-
* @tsplus
|
|
973
|
+
* @tsplus pipeable fncts.ImmutableArray mutate
|
|
1098
974
|
*/
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
975
|
+
function mutate_1(f) {
|
|
976
|
+
return self => {
|
|
977
|
+
const mut = mutableClone_1(self);
|
|
978
|
+
f(mut);
|
|
979
|
+
return tsplus_module_2.asImmutableArray(mut);
|
|
980
|
+
};
|
|
1105
981
|
}
|
|
1106
982
|
/**
|
|
1107
983
|
* @tsplus getter fncts.ImmutableArray mutableClone
|
|
1108
984
|
*/
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
985
|
function mutableClone_1(self) {
|
|
1112
|
-
return tsplus_module_4.
|
|
986
|
+
return tsplus_module_4.slice(0)(self)._array;
|
|
1113
987
|
}
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
left.push(a);
|
|
988
|
+
function partitionWithIndex_1(p) {
|
|
989
|
+
return self => {
|
|
990
|
+
const left = [];
|
|
991
|
+
const right = [];
|
|
992
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
993
|
+
const a = self._array[i];
|
|
994
|
+
if (p(i, a)) {
|
|
995
|
+
right.push(a);
|
|
996
|
+
} else {
|
|
997
|
+
left.push(a);
|
|
998
|
+
}
|
|
1126
999
|
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
}
|
|
1135
|
-
/**
|
|
1136
|
-
* @tsplus
|
|
1137
|
-
*/
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
break;
|
|
1154
|
-
|
|
1155
|
-
case "Right"
|
|
1156
|
-
/* EitherTag.Right */
|
|
1157
|
-
:
|
|
1158
|
-
right.push(ea.right);
|
|
1159
|
-
break;
|
|
1000
|
+
return [tsplus_module_2.asImmutableArray(left), tsplus_module_2.asImmutableArray(right)];
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
function partition(p) {
|
|
1004
|
+
return self => {
|
|
1005
|
+
return partitionWithIndex_1((_, a) => p(a))(self);
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* @tsplus pipeable fncts.ImmutableArray partitionMapWithIndex
|
|
1010
|
+
*/
|
|
1011
|
+
function partitionMapWithIndex_1(f) {
|
|
1012
|
+
return self => {
|
|
1013
|
+
const left = [];
|
|
1014
|
+
const right = [];
|
|
1015
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
1016
|
+
const ea = f(i, self._array[i]);
|
|
1017
|
+
void 0;
|
|
1018
|
+
switch (ea._tag) {
|
|
1019
|
+
case "Left" /* EitherTag.Left */:
|
|
1020
|
+
left.push(ea.left);
|
|
1021
|
+
break;
|
|
1022
|
+
case "Right" /* EitherTag.Right */:
|
|
1023
|
+
right.push(ea.right);
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1160
1026
|
}
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
return [tsplus_module_2.asImmutableArray(left), tsplus_module_2.asImmutableArray(right)];
|
|
1027
|
+
return [tsplus_module_2.asImmutableArray(left), tsplus_module_2.asImmutableArray(right)];
|
|
1028
|
+
};
|
|
1164
1029
|
}
|
|
1165
1030
|
/**
|
|
1166
|
-
* @tsplus
|
|
1031
|
+
* @tsplus pipeable fncts.ImmutableArray partitionMap
|
|
1167
1032
|
*/
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1033
|
+
function partitionMap(f) {
|
|
1034
|
+
return self => {
|
|
1035
|
+
return partitionMapWithIndex_1((_, a) => f(a))(self);
|
|
1036
|
+
};
|
|
1172
1037
|
}
|
|
1173
1038
|
/**
|
|
1174
|
-
* @tsplus
|
|
1039
|
+
* @tsplus pipeable fncts.ImmutableArray prepend
|
|
1175
1040
|
*/
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
return tsplus_module_2.asImmutableArray(out);
|
|
1041
|
+
function prepend_1(head) {
|
|
1042
|
+
return self => {
|
|
1043
|
+
const len = tsplus_module_5.length(self);
|
|
1044
|
+
const out = Array(len + 1);
|
|
1045
|
+
out[0] = head;
|
|
1046
|
+
for (let i = 0; i < len; i++) {
|
|
1047
|
+
out[i + 1] = self._array[i];
|
|
1048
|
+
}
|
|
1049
|
+
return tsplus_module_2.asImmutableArray(out);
|
|
1050
|
+
};
|
|
1188
1051
|
}
|
|
1189
1052
|
/**
|
|
1190
|
-
* @tsplus
|
|
1191
|
-
* @tsplus fluent fncts.MutableArray prependAll
|
|
1053
|
+
* @tsplus pipeable fncts.ImmutableArray prependAll
|
|
1192
1054
|
*/
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
return tsplus_module_2.asImmutableArray(out);
|
|
1055
|
+
function prependAll_1(a) {
|
|
1056
|
+
return self => {
|
|
1057
|
+
const out = [];
|
|
1058
|
+
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
1059
|
+
out.push(a, self._array[i]);
|
|
1060
|
+
}
|
|
1061
|
+
return tsplus_module_2.asImmutableArray(out);
|
|
1062
|
+
};
|
|
1203
1063
|
}
|
|
1204
1064
|
/**
|
|
1205
1065
|
* @tsplus getter fncts.ImmutableArray reverse
|
|
1206
1066
|
*/
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
1067
|
function reverse(self) {
|
|
1210
1068
|
if (isEmpty_1(self)) {
|
|
1211
1069
|
return self;
|
|
@@ -1213,421 +1071,364 @@ function reverse(self) {
|
|
|
1213
1071
|
return tsplus_module_2.make(self._array[0]);
|
|
1214
1072
|
} else {
|
|
1215
1073
|
const out = Array(tsplus_module_5.length(self));
|
|
1216
|
-
|
|
1217
1074
|
for (let j = 0, i = tsplus_module_5.length(self) - 1; i >= 0; i--, j++) {
|
|
1218
1075
|
out[j] = self._array[i];
|
|
1219
1076
|
}
|
|
1220
|
-
|
|
1221
1077
|
return tsplus_module_2.asImmutableArray(out);
|
|
1222
1078
|
}
|
|
1223
1079
|
}
|
|
1224
1080
|
/**
|
|
1225
1081
|
* @tsplus getter fncts.ImmutableArray rights
|
|
1226
1082
|
*/
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
1083
|
function rights(self) {
|
|
1230
1084
|
const rs = [];
|
|
1231
|
-
|
|
1232
1085
|
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
1233
1086
|
const a = self._array[i];
|
|
1234
1087
|
void 0;
|
|
1235
|
-
|
|
1236
|
-
if (a._tag === "Right"
|
|
1237
|
-
/* EitherTag.Right */
|
|
1238
|
-
) {
|
|
1088
|
+
if (a._tag === "Right" /* EitherTag.Right */) {
|
|
1239
1089
|
rs.push(a.right);
|
|
1240
1090
|
}
|
|
1241
1091
|
}
|
|
1242
|
-
|
|
1243
1092
|
return tsplus_module_2.asImmutableArray(rs);
|
|
1244
1093
|
}
|
|
1245
1094
|
/**
|
|
1246
|
-
* @tsplus
|
|
1095
|
+
* @tsplus pipeable fncts.ImmutableArray rotate
|
|
1247
1096
|
*/
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
}
|
|
1097
|
+
function rotate_1(n) {
|
|
1098
|
+
return self => {
|
|
1099
|
+
const len = tsplus_module_5.length(self);
|
|
1100
|
+
if (n === 0 || len <= 1 || len === Math.abs(n)) {
|
|
1101
|
+
return self;
|
|
1102
|
+
} else if (n < 0) {
|
|
1103
|
+
return rotate_1(len + n)(self);
|
|
1104
|
+
} else {
|
|
1105
|
+
return concat_1(tsplus_module_4.slice(0, len - n)(self))(tsplus_module_4.slice(-n)(self));
|
|
1106
|
+
}
|
|
1107
|
+
};
|
|
1260
1108
|
}
|
|
1261
1109
|
/**
|
|
1262
|
-
* @tsplus
|
|
1110
|
+
* @tsplus pipeable fncts.ImmutableArray scanLeft
|
|
1263
1111
|
*/
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
return tsplus_module_2.asImmutableArray(r);
|
|
1112
|
+
function scanLeft(b, f) {
|
|
1113
|
+
return self => {
|
|
1114
|
+
const l = tsplus_module_5.length(self);
|
|
1115
|
+
const r = Array(l + 1);
|
|
1116
|
+
r[0] = b;
|
|
1117
|
+
for (let i = 0; i < l; i++) {
|
|
1118
|
+
r[i + 1] = f(r[i], self._array[i]);
|
|
1119
|
+
}
|
|
1120
|
+
return tsplus_module_2.asImmutableArray(r);
|
|
1121
|
+
};
|
|
1276
1122
|
}
|
|
1277
1123
|
/**
|
|
1278
|
-
* @tsplus
|
|
1124
|
+
* @tsplus pipeable fncts.ImmutableArray scanRight
|
|
1279
1125
|
*/
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
return tsplus_module_2.asImmutableArray(r);
|
|
1126
|
+
function scanRight(b, f) {
|
|
1127
|
+
return self => {
|
|
1128
|
+
const l = tsplus_module_5.length(self);
|
|
1129
|
+
const r = Array(l + 1);
|
|
1130
|
+
r[l] = b;
|
|
1131
|
+
for (let i = l - 1; i >= 0; i--) {
|
|
1132
|
+
r[i] = f(self._array[i], r[i + 1]);
|
|
1133
|
+
}
|
|
1134
|
+
return tsplus_module_2.asImmutableArray(r);
|
|
1135
|
+
};
|
|
1292
1136
|
}
|
|
1293
1137
|
/**
|
|
1294
|
-
* @tsplus
|
|
1138
|
+
* @tsplus pipeable fncts.ImmutableArray sort
|
|
1295
1139
|
*/
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
O) {
|
|
1301
|
-
return isEmpty_1(self) || tsplus_module_5.length(self) === 1 ? self : tsplus_module_2.asImmutableArray(self._array.slice().sort(O.compare));
|
|
1140
|
+
function sort_1( /** @tsplus auto */O) {
|
|
1141
|
+
return self => {
|
|
1142
|
+
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)));
|
|
1143
|
+
};
|
|
1302
1144
|
}
|
|
1303
1145
|
/**
|
|
1304
|
-
* @tsplus
|
|
1146
|
+
* @tsplus pipeable fncts.ImmutableArray sortBy
|
|
1305
1147
|
*/
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
function spanLeft_(self, p) {
|
|
1313
|
-
const i = spanIndexLeft_1(self, p);
|
|
1314
|
-
const init = Array(i);
|
|
1315
|
-
|
|
1316
|
-
for (let j = 0; j < i; j++) {
|
|
1317
|
-
init[j] = self._array[j];
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
const l = tsplus_module_5.length(self);
|
|
1321
|
-
const rest = Array(l - i);
|
|
1322
|
-
|
|
1323
|
-
for (let j = i; j < l; j++) {
|
|
1324
|
-
rest[j - i] = self._array[j];
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
return [tsplus_module_2.asImmutableArray(init), tsplus_module_2.asImmutableArray(rest)];
|
|
1148
|
+
function sortBy(Os) {
|
|
1149
|
+
return self => {
|
|
1150
|
+
return sort_1(fold_1(tsplus_module_15.getMonoid())(Os))(self);
|
|
1151
|
+
};
|
|
1328
1152
|
}
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
return
|
|
1153
|
+
function spanLeft(p) {
|
|
1154
|
+
return self => {
|
|
1155
|
+
const i = spanIndexLeft_1(p)(self);
|
|
1156
|
+
const init = Array(i);
|
|
1157
|
+
for (let j = 0; j < i; j++) {
|
|
1158
|
+
init[j] = self._array[j];
|
|
1159
|
+
}
|
|
1160
|
+
const l = tsplus_module_5.length(self);
|
|
1161
|
+
const rest = Array(l - i);
|
|
1162
|
+
for (let j = i; j < l; j++) {
|
|
1163
|
+
rest[j - i] = self._array[j];
|
|
1164
|
+
}
|
|
1165
|
+
return [tsplus_module_2.asImmutableArray(init), tsplus_module_2.asImmutableArray(rest)];
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
function spanRight(p) {
|
|
1169
|
+
return self => {
|
|
1170
|
+
const i = spanIndexRight_1(p)(self);
|
|
1171
|
+
const l = tsplus_module_5.length(self);
|
|
1172
|
+
const tail = Array(l - i - 1);
|
|
1173
|
+
for (let j = l - 1; j > i; j--) {
|
|
1174
|
+
tail[j - i - 1] = self._array[j];
|
|
1175
|
+
}
|
|
1176
|
+
const rest = Array(i);
|
|
1177
|
+
for (let j = i; j >= 0; j--) {
|
|
1178
|
+
rest[j] = self._array[j];
|
|
1179
|
+
}
|
|
1180
|
+
return [tsplus_module_2.asImmutableArray(rest), tsplus_module_2.asImmutableArray(tail)];
|
|
1181
|
+
};
|
|
1346
1182
|
}
|
|
1347
1183
|
/**
|
|
1348
|
-
* @tsplus
|
|
1184
|
+
* @tsplus pipeable fncts.ImmutableArray spanIndexLeft
|
|
1349
1185
|
*/
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
break;
|
|
1186
|
+
function spanIndexLeft_1(p) {
|
|
1187
|
+
return self => {
|
|
1188
|
+
const l = tsplus_module_5.length(self);
|
|
1189
|
+
let i = 0;
|
|
1190
|
+
for (; i < l; i++) {
|
|
1191
|
+
if (!p(self._array[i])) {
|
|
1192
|
+
break;
|
|
1193
|
+
}
|
|
1359
1194
|
}
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
return i;
|
|
1195
|
+
return i;
|
|
1196
|
+
};
|
|
1363
1197
|
}
|
|
1364
1198
|
/**
|
|
1365
|
-
* @tsplus
|
|
1199
|
+
* @tsplus pipeable fncts.ImmutableArray spanIndexRight
|
|
1366
1200
|
*/
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
break;
|
|
1201
|
+
function spanIndexRight_1(predicate) {
|
|
1202
|
+
return as => {
|
|
1203
|
+
let i = tsplus_module_5.length(as) - 1;
|
|
1204
|
+
for (; i >= 0; i--) {
|
|
1205
|
+
if (!predicate(as._array[i])) {
|
|
1206
|
+
break;
|
|
1207
|
+
}
|
|
1375
1208
|
}
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
return i;
|
|
1209
|
+
return i;
|
|
1210
|
+
};
|
|
1379
1211
|
}
|
|
1380
1212
|
/**
|
|
1381
1213
|
* @tsplus getter fncts.ImmutableArray tail
|
|
1382
1214
|
*/
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
1215
|
function tail(self) {
|
|
1386
|
-
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just(tsplus_module_4.
|
|
1216
|
+
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just(tsplus_module_4.slice(1)(self)) : tsplus_module_11.nothing();
|
|
1387
1217
|
}
|
|
1388
1218
|
/**
|
|
1389
|
-
* @tsplus
|
|
1219
|
+
* @tsplus pipeable fncts.ImmutableArray take
|
|
1390
1220
|
*/
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1221
|
+
function take(n) {
|
|
1222
|
+
return self => {
|
|
1223
|
+
return tsplus_module_4.slice(0, n)(self);
|
|
1224
|
+
};
|
|
1395
1225
|
}
|
|
1396
1226
|
/**
|
|
1397
|
-
* @tsplus
|
|
1227
|
+
* @tsplus pipeable fncts.ImmutableArray takeLast
|
|
1398
1228
|
*/
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1229
|
+
function takeLast(n) {
|
|
1230
|
+
return as => {
|
|
1231
|
+
return isEmpty_1(as) ? tsplus_module_2.empty() : tsplus_module_4.slice(-n)(as);
|
|
1232
|
+
};
|
|
1403
1233
|
}
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1234
|
+
function takeWhile(p) {
|
|
1235
|
+
return self => {
|
|
1236
|
+
const i = spanIndexLeft_1(p)(self);
|
|
1237
|
+
const init = Array(i);
|
|
1238
|
+
for (let j = 0; j < i; j++) {
|
|
1239
|
+
init[j] = self._array[j];
|
|
1240
|
+
}
|
|
1241
|
+
return tsplus_module_2.asImmutableArray(init);
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
function _traverseWithIndex_1(self) {
|
|
1245
|
+
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);
|
|
1414
1246
|
}
|
|
1415
|
-
/**
|
|
1416
|
-
* @tsplus getter fncts.ImmutableArray traverseWithIndex
|
|
1417
|
-
*/
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
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))));
|
|
1421
|
-
const traverseWithIndex_ = traverseWithIndex_1;
|
|
1422
1247
|
/**
|
|
1423
1248
|
* @tsplus getter fncts.ImmutableArray traverse
|
|
1424
1249
|
*/
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
const
|
|
1429
|
-
|
|
1430
|
-
const
|
|
1250
|
+
function _traverse_1(self) {
|
|
1251
|
+
return G => f => _traverseWithIndex_1(self)(G)((_, a) => f(a));
|
|
1252
|
+
}
|
|
1253
|
+
const traverseWithIndex = G => f => self => _traverseWithIndex_1(self)(G)(f);
|
|
1254
|
+
exports.traverseWithIndex = traverseWithIndex;
|
|
1255
|
+
const traverse = G => f => self => _traverseWithIndex_1(self)(G)((_, a) => f(a));
|
|
1431
1256
|
/**
|
|
1432
|
-
* @tsplus
|
|
1257
|
+
* @tsplus pipeable fncts.ImmutableArray union
|
|
1433
1258
|
*/
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
E) {
|
|
1440
|
-
return concat_1(self, filter_1(that, a => !elem_1(self, a, E)));
|
|
1259
|
+
exports.traverse = traverse;
|
|
1260
|
+
function union(that, /** @tsplus auto */E) {
|
|
1261
|
+
return self => {
|
|
1262
|
+
return concat_1(filter_1(a => !elem_1(a, E)(self))(that))(self);
|
|
1263
|
+
};
|
|
1441
1264
|
}
|
|
1442
1265
|
/**
|
|
1443
|
-
* @tsplus
|
|
1266
|
+
* @tsplus pipeable fncts.ImmutableArray uniq
|
|
1444
1267
|
*/
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
E) {
|
|
1450
|
-
if (tsplus_module_5.length(self) === 1) {
|
|
1451
|
-
return self;
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
const out = [];
|
|
1455
|
-
const len = tsplus_module_5.length(self);
|
|
1456
|
-
|
|
1457
|
-
for (let i = 0; i < len; i++) {
|
|
1458
|
-
const a = self._array[i];
|
|
1459
|
-
|
|
1460
|
-
if (!elem_1(tsplus_module_2.asImmutableArray(out), a, E)) {
|
|
1461
|
-
out.push(a);
|
|
1268
|
+
function uniq( /** @tsplus auto */E) {
|
|
1269
|
+
return self => {
|
|
1270
|
+
if (tsplus_module_5.length(self) === 1) {
|
|
1271
|
+
return self;
|
|
1462
1272
|
}
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1273
|
+
const out = [];
|
|
1274
|
+
const len = tsplus_module_5.length(self);
|
|
1275
|
+
for (let i = 0; i < len; i++) {
|
|
1276
|
+
const a = self._array[i];
|
|
1277
|
+
if (!elem_1(a, E)(tsplus_module_2.asImmutableArray(out))) {
|
|
1278
|
+
out.push(a);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
return tsplus_module_2.asImmutableArray(out);
|
|
1282
|
+
};
|
|
1466
1283
|
}
|
|
1467
1284
|
/**
|
|
1468
1285
|
* @tsplus getter fncts.ImmutableArray unprepend
|
|
1469
1286
|
*/
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
1287
|
function unprepend(self) {
|
|
1473
|
-
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just([unsafeGet_1(self, 0), tsplus_module_4.
|
|
1288
|
+
return tsplus_module_5.isNonEmpty(self) ? tsplus_module_11.just([unsafeGet_1(self, 0), tsplus_module_4.slice(1)(self)]) : tsplus_module_11.nothing();
|
|
1474
1289
|
}
|
|
1475
1290
|
/**
|
|
1476
1291
|
* @tsplus index fncts.ImmutableArray
|
|
1477
1292
|
*/
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
1293
|
function unsafeGet_1(self, i) {
|
|
1481
1294
|
return self._array[i];
|
|
1482
1295
|
}
|
|
1483
1296
|
/**
|
|
1484
1297
|
* @tsplus getter fncts.ImmutableArray unsafeAsMutable
|
|
1485
1298
|
*/
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
1299
|
function unsafeAsMutable_1(self) {
|
|
1489
1300
|
return self._array;
|
|
1490
1301
|
}
|
|
1491
1302
|
/**
|
|
1492
|
-
* @tsplus
|
|
1303
|
+
* @tsplus pipeable fncts.ImmutableArray unsafeDeleteAt
|
|
1493
1304
|
*/
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
}
|
|
1305
|
+
function unsafeDeleteAt_1(i) {
|
|
1306
|
+
return self => {
|
|
1307
|
+
return mutate_1(xs => {
|
|
1308
|
+
xs.splice(i, 1);
|
|
1309
|
+
})(self);
|
|
1310
|
+
};
|
|
1500
1311
|
}
|
|
1501
1312
|
/**
|
|
1502
|
-
* @tsplus
|
|
1313
|
+
* @tsplus pipeable fncts.ImmutableArray unsafeInsertAt
|
|
1503
1314
|
*/
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
}
|
|
1315
|
+
function unsafeInsertAt_1(i, a) {
|
|
1316
|
+
return as => {
|
|
1317
|
+
return mutate_1(xs => {
|
|
1318
|
+
xs.splice(i, 0, a);
|
|
1319
|
+
})(as);
|
|
1320
|
+
};
|
|
1510
1321
|
}
|
|
1511
1322
|
/**
|
|
1512
|
-
* @tsplus
|
|
1323
|
+
* @tsplus pipeable fncts.ImmutableArray unsafeModifyAt
|
|
1513
1324
|
*/
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
return
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
xs[i] = next;
|
|
1525
|
-
});
|
|
1325
|
+
function unsafeModifyAt_1(i, f) {
|
|
1326
|
+
return as => {
|
|
1327
|
+
const next = f(unsafeGet_1(as, i));
|
|
1328
|
+
if (unsafeGet_1(as, i) === next) {
|
|
1329
|
+
return as;
|
|
1330
|
+
}
|
|
1331
|
+
return mutate_1(xs => {
|
|
1332
|
+
xs[i] = next;
|
|
1333
|
+
})(as);
|
|
1334
|
+
};
|
|
1526
1335
|
}
|
|
1527
1336
|
/**
|
|
1528
|
-
* @tsplus
|
|
1337
|
+
* @tsplus pipeable fncts.ImmutableArray unsafeUpdateAt
|
|
1529
1338
|
*/
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1339
|
+
function unsafeUpdateAt_1(i, a) {
|
|
1340
|
+
return as => {
|
|
1341
|
+
if (unsafeGet_1(as, i) === a) {
|
|
1342
|
+
return as;
|
|
1343
|
+
} else {
|
|
1344
|
+
return mutate_1(xs => {
|
|
1345
|
+
xs[i] = a;
|
|
1346
|
+
})(as);
|
|
1347
|
+
}
|
|
1348
|
+
};
|
|
1540
1349
|
}
|
|
1541
1350
|
/**
|
|
1542
1351
|
* @tsplus getter fncts.ImmutableArray unzip
|
|
1543
1352
|
*/
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
1353
|
function unzip(self) {
|
|
1547
1354
|
const fa = Array(tsplus_module_5.length(self));
|
|
1548
1355
|
const fb = Array(tsplus_module_5.length(self));
|
|
1549
|
-
|
|
1550
1356
|
for (let i = 0; i < tsplus_module_5.length(self); i++) {
|
|
1551
1357
|
fa[i] = self._array[i][0];
|
|
1552
1358
|
fb[i] = self._array[i][1];
|
|
1553
1359
|
}
|
|
1554
|
-
|
|
1555
1360
|
return [tsplus_module_2.asImmutableArray(fa), tsplus_module_2.asImmutableArray(fb)];
|
|
1556
1361
|
}
|
|
1557
1362
|
/**
|
|
1558
|
-
* @tsplus
|
|
1363
|
+
* @tsplus pipeable fncts.ImmutableArray updateAt
|
|
1559
1364
|
*/
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1365
|
+
function updateAt(i, a) {
|
|
1366
|
+
return as => {
|
|
1367
|
+
return isOutOfBound_1(i)(as) ? tsplus_module_11.nothing() : tsplus_module_11.just(unsafeUpdateAt_1(i, a)(as));
|
|
1368
|
+
};
|
|
1564
1369
|
}
|
|
1565
1370
|
/**
|
|
1566
1371
|
* @tsplus getter fncts.ImmutableArray wiltWithIndex
|
|
1567
1372
|
*/
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
}
|
|
1577
|
-
const wiltWithIndex = wiltWithIndex_1;
|
|
1373
|
+
function _wiltWithIndex_1(self) {
|
|
1374
|
+
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 => {
|
|
1375
|
+
r[0].push(b1);
|
|
1376
|
+
return r;
|
|
1377
|
+
}, b2 => {
|
|
1378
|
+
r[1].push(b2);
|
|
1379
|
+
return r;
|
|
1380
|
+
})(eb))(f(i, a)))(self));
|
|
1381
|
+
}
|
|
1578
1382
|
/**
|
|
1579
1383
|
* @tsplus getter fncts.ImmutableArray wilt
|
|
1580
1384
|
*/
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
const wilt = self => G => f => wiltWithIndex_1(self)(G)((_, a) => f(a));
|
|
1385
|
+
function _wilt(self) {
|
|
1386
|
+
return G => f => _wiltWithIndex_1(self)(G)((_, a) => f(a));
|
|
1387
|
+
}
|
|
1585
1388
|
/**
|
|
1586
1389
|
* @tsplus getter fncts.ImmutableArray witherWithIndex
|
|
1587
1390
|
*/
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
exports.wilt = wilt;
|
|
1591
|
-
const witherWithIndex_1 = /*#__PURE__*/tsplus_module_18.makeWitherWithIndex()(_ => self => G => f => {
|
|
1592
|
-
return G.map(foldLeftWithIndex_1(self, G.pure([]), (i, b, a) => G.zipWith(f(i, a), b, (maybeB, bs) => {
|
|
1391
|
+
function _witherWithIndex_1(self) {
|
|
1392
|
+
return G => f => G.map(bs => tsplus_module_2.asImmutableArray(bs))(foldLeftWithIndex_1(G.pure([]), (i, b, a) => G.zipWith(b, (maybeB, bs) => {
|
|
1593
1393
|
if (tsplus_module_6.isJust(maybeB)) {
|
|
1594
1394
|
bs.push(maybeB.value);
|
|
1595
1395
|
}
|
|
1596
|
-
|
|
1597
1396
|
return bs;
|
|
1598
|
-
})
|
|
1599
|
-
}
|
|
1600
|
-
const witherWithIndex = witherWithIndex_1;
|
|
1397
|
+
})(f(i, a)))(self));
|
|
1398
|
+
}
|
|
1601
1399
|
/**
|
|
1602
1400
|
* @tsplus getter fncts.ImmutableArray wither
|
|
1603
1401
|
*/
|
|
1604
|
-
|
|
1402
|
+
function _wither(self) {
|
|
1403
|
+
return G => f => _witherWithIndex_1(self)(G)((_, a) => f(a));
|
|
1404
|
+
}
|
|
1405
|
+
const wiltWithIndex = G => f => self => _wiltWithIndex_1(self)(G)(f);
|
|
1406
|
+
exports.wiltWithIndex = wiltWithIndex;
|
|
1407
|
+
const wilt = G => f => self => _wiltWithIndex_1(self)(G)((_, a) => f(a));
|
|
1408
|
+
exports.wilt = wilt;
|
|
1409
|
+
const witherWithIndex = G => f => self => _witherWithIndex_1(self)(G)(f);
|
|
1605
1410
|
exports.witherWithIndex = witherWithIndex;
|
|
1606
|
-
|
|
1607
|
-
const wither = self => G => f => witherWithIndex_1(self)(G)((_, a) => f(a));
|
|
1411
|
+
const wither = G => f => self => _witherWithIndex_1(self)(G)((_, a) => f(a));
|
|
1608
1412
|
/**
|
|
1609
|
-
* @tsplus
|
|
1413
|
+
* @tsplus pipeable fncts.ImmutableArray zip
|
|
1610
1414
|
*/
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
1415
|
exports.wither = wither;
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1416
|
+
function zip(that) {
|
|
1417
|
+
return self => {
|
|
1418
|
+
return zipWith_1(that, _function.tuple)(self);
|
|
1419
|
+
};
|
|
1617
1420
|
}
|
|
1618
1421
|
/**
|
|
1619
|
-
* @tsplus
|
|
1422
|
+
* @tsplus pipeable fncts.ImmutableArray zipWith
|
|
1620
1423
|
*/
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
return tsplus_module_2.asImmutableArray(fc);
|
|
1424
|
+
function zipWith_1(fb, f) {
|
|
1425
|
+
return self => {
|
|
1426
|
+
const len = Math.min(tsplus_module_5.length(self), tsplus_module_5.length(fb));
|
|
1427
|
+
const fc = Array(len);
|
|
1428
|
+
for (let i = 0; i < len; i++) {
|
|
1429
|
+
fc[i] = f(self._array[i], fb._array[i]);
|
|
1430
|
+
}
|
|
1431
|
+
return tsplus_module_2.asImmutableArray(fc);
|
|
1432
|
+
};
|
|
1632
1433
|
}
|
|
1633
1434
|
//# sourceMappingURL=api.cjs.map
|