@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,938 +3,785 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.builder = exports.
|
|
6
|
+
exports._traverseWithIndex = exports._traverse = exports.ConcBuilder = void 0;
|
|
7
|
+
exports.align = align;
|
|
8
|
+
exports.builder = exports.append = exports.alignWith = void 0;
|
|
9
9
|
exports.chainRecBreadthFirst = chainRecBreadthFirst;
|
|
10
10
|
exports.chainRecDepthFirst = chainRecDepthFirst;
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
11
|
+
exports.chop = void 0;
|
|
12
|
+
exports.chunksOf = chunksOf;
|
|
13
|
+
exports.collectWhile = void 0;
|
|
14
14
|
exports.compact = compact;
|
|
15
|
-
exports.
|
|
15
|
+
exports.drop = exports.concat = void 0;
|
|
16
16
|
exports.dropUntil = dropUntil;
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.flatMap_ = void 0;
|
|
17
|
+
exports.dropWhile = dropWhile;
|
|
18
|
+
exports.elem = elem;
|
|
19
|
+
exports.filter = filter;
|
|
20
|
+
exports.filterWithIndex = exports.filterMapWithIndex = exports.filterMap = void 0;
|
|
21
|
+
exports.find = find;
|
|
22
|
+
exports.flatMap = void 0;
|
|
24
23
|
exports.flatten = flatten;
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
24
|
+
exports.foldLeft = void 0;
|
|
25
|
+
exports.foldLeftWhile = foldLeftWhile;
|
|
26
|
+
exports.foldLeftWithIndex = void 0;
|
|
27
|
+
exports.foldMap = foldMap;
|
|
28
|
+
exports.foldMapWithIndex = void 0;
|
|
29
|
+
exports.foldRight = foldRight;
|
|
30
|
+
exports.forEach = exports.foldRightWithIndex = void 0;
|
|
31
|
+
exports.forEachWithIndex = forEachWithIndex;
|
|
32
|
+
exports.get = get;
|
|
33
33
|
exports.head = head;
|
|
34
34
|
exports.init = init;
|
|
35
35
|
exports.isNonEmpty = exports.isEmpty = void 0;
|
|
36
|
-
exports.
|
|
36
|
+
exports.join = join;
|
|
37
37
|
exports.last = last;
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
38
|
+
exports.map = map;
|
|
39
|
+
exports.mapAccum = mapAccum;
|
|
40
|
+
exports.mapWithIndex = void 0;
|
|
41
|
+
exports.partition = partition;
|
|
42
|
+
exports.partitionWithIndex = exports.partitionMapWithIndex = exports.partitionMap = void 0;
|
|
43
|
+
exports.prepend = prepend;
|
|
44
44
|
exports.reverse = reverse;
|
|
45
45
|
exports.separate = separate;
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
46
|
+
exports.splitAt = exports.some = void 0;
|
|
47
|
+
exports.splitWhere = splitWhere;
|
|
48
48
|
exports.tail = tail;
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
49
|
+
exports.take = void 0;
|
|
50
|
+
exports.takeWhile = takeWhile;
|
|
51
51
|
exports.toBuffer = toBuffer;
|
|
52
52
|
exports.traverseWithIndex = exports.traverse = void 0;
|
|
53
53
|
exports.unfold = unfold;
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
54
|
+
exports.unsafeUpdateAt = exports.unsafeTail = exports.unsafeHead = exports.unsafeGet = void 0;
|
|
55
|
+
exports.updateAt = updateAt;
|
|
56
|
+
exports.zip = zip;
|
|
57
|
+
exports.zipWith = void 0;
|
|
56
58
|
exports.zipWithIndex = zipWithIndex;
|
|
57
|
-
exports.
|
|
58
|
-
exports.zip_ = zip_;
|
|
59
|
-
|
|
59
|
+
exports.zipWithIndexOffset = void 0;
|
|
60
60
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/These/constructors"));
|
|
61
|
-
|
|
62
61
|
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/api/empty"));
|
|
63
|
-
|
|
64
62
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/constructors"));
|
|
65
|
-
|
|
66
63
|
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/destructors"));
|
|
67
|
-
|
|
68
64
|
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/definition"));
|
|
69
|
-
|
|
70
65
|
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
|
71
|
-
|
|
72
66
|
var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/internal/Stack"));
|
|
73
|
-
|
|
74
67
|
var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/destructors"));
|
|
75
|
-
|
|
76
68
|
var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/Iterable/constructors"));
|
|
77
|
-
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/function/api"));
|
|
81
|
-
|
|
82
|
-
var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/exceptions"));
|
|
83
|
-
|
|
69
|
+
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/function/api"));
|
|
70
|
+
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/exceptions"));
|
|
84
71
|
var _definition2 = /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/definition");
|
|
85
|
-
|
|
86
72
|
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
|
87
|
-
|
|
88
|
-
var P = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass"));
|
|
89
|
-
|
|
90
73
|
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); }
|
|
91
|
-
|
|
92
74
|
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; }
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
exports.append_ = append_;
|
|
75
|
+
const alignWith = alignWith_1;
|
|
76
|
+
exports.alignWith = alignWith;
|
|
77
|
+
const append = append_1;
|
|
78
|
+
exports.append = append;
|
|
98
79
|
const builder = builder_1;
|
|
99
80
|
exports.builder = builder;
|
|
100
|
-
const
|
|
101
|
-
exports.
|
|
102
|
-
const
|
|
103
|
-
exports.
|
|
104
|
-
const
|
|
105
|
-
exports.
|
|
106
|
-
const
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
109
|
-
exports.
|
|
110
|
-
const
|
|
111
|
-
exports.
|
|
112
|
-
const
|
|
113
|
-
exports.
|
|
114
|
-
const
|
|
115
|
-
exports.
|
|
116
|
-
const
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
119
|
-
exports.
|
|
120
|
-
const
|
|
121
|
-
exports.
|
|
122
|
-
const
|
|
123
|
-
exports.
|
|
124
|
-
const
|
|
125
|
-
exports.
|
|
126
|
-
const
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
129
|
-
exports.
|
|
81
|
+
const flatMap = flatMap_1;
|
|
82
|
+
exports.flatMap = flatMap;
|
|
83
|
+
const chop = chop_1;
|
|
84
|
+
exports.chop = chop;
|
|
85
|
+
const collectWhile = collectWhile_1;
|
|
86
|
+
exports.collectWhile = collectWhile;
|
|
87
|
+
const concat = concat_1;
|
|
88
|
+
exports.concat = concat;
|
|
89
|
+
const some = some_1;
|
|
90
|
+
exports.some = some;
|
|
91
|
+
const drop = drop_1;
|
|
92
|
+
exports.drop = drop;
|
|
93
|
+
const filterMap = filterMap_1;
|
|
94
|
+
exports.filterMap = filterMap;
|
|
95
|
+
const filterMapWithIndex = filterMapWithIndex_1;
|
|
96
|
+
exports.filterMapWithIndex = filterMapWithIndex;
|
|
97
|
+
const filterWithIndex = filterWithIndex_1;
|
|
98
|
+
exports.filterWithIndex = filterWithIndex;
|
|
99
|
+
const foldLeft = foldLeft_1;
|
|
100
|
+
exports.foldLeft = foldLeft;
|
|
101
|
+
const foldLeftWithIndex = foldLeftWithIndex_1;
|
|
102
|
+
exports.foldLeftWithIndex = foldLeftWithIndex;
|
|
103
|
+
const foldMapWithIndex = foldMapWithIndex_1;
|
|
104
|
+
exports.foldMapWithIndex = foldMapWithIndex;
|
|
105
|
+
const foldRightWithIndex = foldRightWithIndex_1;
|
|
106
|
+
exports.foldRightWithIndex = foldRightWithIndex;
|
|
107
|
+
const forEach = forEach_1;
|
|
108
|
+
exports.forEach = forEach;
|
|
109
|
+
const mapWithIndex = mapWithIndex_1;
|
|
110
|
+
exports.mapWithIndex = mapWithIndex;
|
|
130
111
|
const isEmpty = isEmpty_1;
|
|
131
112
|
exports.isEmpty = isEmpty;
|
|
132
113
|
const isNonEmpty = isNonEmpty_1;
|
|
133
114
|
exports.isNonEmpty = isNonEmpty;
|
|
134
|
-
const
|
|
135
|
-
exports.
|
|
136
|
-
const
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
139
|
-
exports.
|
|
140
|
-
const
|
|
141
|
-
exports.
|
|
142
|
-
const
|
|
143
|
-
exports.
|
|
144
|
-
const
|
|
145
|
-
exports.
|
|
115
|
+
const partitionMap = partitionMap_1;
|
|
116
|
+
exports.partitionMap = partitionMap;
|
|
117
|
+
const partitionMapWithIndex = partitionMapWithIndex_1;
|
|
118
|
+
exports.partitionMapWithIndex = partitionMapWithIndex;
|
|
119
|
+
const partitionWithIndex = partitionWithIndex_1;
|
|
120
|
+
exports.partitionWithIndex = partitionWithIndex;
|
|
121
|
+
const splitAt = splitAt_1;
|
|
122
|
+
exports.splitAt = splitAt;
|
|
123
|
+
const take = take_1;
|
|
124
|
+
exports.take = take;
|
|
125
|
+
const _traverseWithIndex = _traverseWithIndex_1;
|
|
126
|
+
exports._traverseWithIndex = _traverseWithIndex;
|
|
127
|
+
const _traverse = _traverse_1;
|
|
128
|
+
exports._traverse = _traverse;
|
|
129
|
+
const unsafeGet = unsafeGet_1;
|
|
130
|
+
exports.unsafeGet = unsafeGet;
|
|
146
131
|
const unsafeHead = unsafeHead_1;
|
|
147
132
|
exports.unsafeHead = unsafeHead;
|
|
148
133
|
const unsafeTail = unsafeTail_1;
|
|
149
134
|
exports.unsafeTail = unsafeTail;
|
|
150
|
-
const
|
|
151
|
-
exports.
|
|
152
|
-
const
|
|
153
|
-
exports.
|
|
154
|
-
const
|
|
155
|
-
exports.
|
|
156
|
-
|
|
135
|
+
const unsafeUpdateAt = unsafeUpdateAt_1;
|
|
136
|
+
exports.unsafeUpdateAt = unsafeUpdateAt;
|
|
137
|
+
const zipWith = zipWith_1;
|
|
138
|
+
exports.zipWith = zipWith;
|
|
139
|
+
const zipWithIndexOffset = zipWithIndexOffset_1;
|
|
140
|
+
exports.zipWithIndexOffset = zipWithIndexOffset;
|
|
157
141
|
/**
|
|
158
|
-
* @tsplus
|
|
142
|
+
* @tsplus pipeable fncts.Conc align
|
|
159
143
|
*/
|
|
160
|
-
function
|
|
161
|
-
return
|
|
144
|
+
function align(fb) {
|
|
145
|
+
return self => {
|
|
146
|
+
return alignWith_1(fb, _function.identity)(self);
|
|
147
|
+
};
|
|
162
148
|
}
|
|
163
149
|
/**
|
|
164
|
-
* @tsplus
|
|
150
|
+
* @tsplus pipeable fncts.Conc alignWith
|
|
165
151
|
*/
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
for (let i = 0; i < minlen; i++) {
|
|
176
|
-
out.append(f(tsplus_module_1.both(self.get(i), fb.get(i))));
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
if (minlen === maxlen) {
|
|
180
|
-
return out.result();
|
|
181
|
-
} else if (self.length > fb.length) {
|
|
182
|
-
for (let i = minlen; i < maxlen; i++) {
|
|
183
|
-
out.append(f(tsplus_module_1.left(self.get(i))));
|
|
152
|
+
function alignWith_1(fb, f) {
|
|
153
|
+
return self => {
|
|
154
|
+
void 0;
|
|
155
|
+
void 0;
|
|
156
|
+
const out = builder_1();
|
|
157
|
+
const minlen = Math.min(self.length, fb.length);
|
|
158
|
+
const maxlen = Math.max(self.length, fb.length);
|
|
159
|
+
for (let i = 0; i < minlen; i++) {
|
|
160
|
+
out.append(f(tsplus_module_1.both(self.get(i), fb.get(i))));
|
|
184
161
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
162
|
+
if (minlen === maxlen) {
|
|
163
|
+
return out.result();
|
|
164
|
+
} else if (self.length > fb.length) {
|
|
165
|
+
for (let i = minlen; i < maxlen; i++) {
|
|
166
|
+
out.append(f(tsplus_module_1.left(self.get(i))));
|
|
167
|
+
}
|
|
168
|
+
} else {
|
|
169
|
+
for (let i = minlen; i < maxlen; i++) {
|
|
170
|
+
out.append(f(tsplus_module_1.right(fb.get(i))));
|
|
171
|
+
}
|
|
188
172
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
return out.result();
|
|
173
|
+
return out.result();
|
|
174
|
+
};
|
|
192
175
|
}
|
|
193
176
|
/**
|
|
194
|
-
* @tsplus
|
|
177
|
+
* @tsplus pipeable fncts.Conc append
|
|
195
178
|
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
179
|
+
function append_1(a) {
|
|
180
|
+
return self => {
|
|
181
|
+
void 0;
|
|
182
|
+
return self.append(a);
|
|
183
|
+
};
|
|
201
184
|
}
|
|
202
|
-
|
|
203
185
|
class ConcBuilder {
|
|
204
186
|
constructor(conc = tsplus_module_2.empty()) {
|
|
205
187
|
this.conc = conc;
|
|
206
188
|
}
|
|
207
|
-
|
|
208
189
|
append(a) {
|
|
209
|
-
this.conc = append_1(this.conc
|
|
190
|
+
this.conc = append_1(a)(this.conc);
|
|
210
191
|
return this;
|
|
211
192
|
}
|
|
212
|
-
|
|
213
193
|
result() {
|
|
214
194
|
return this.conc;
|
|
215
195
|
}
|
|
216
|
-
|
|
217
196
|
}
|
|
218
197
|
/**
|
|
219
198
|
* @tsplus static fncts.ConcOps builder
|
|
220
199
|
*/
|
|
221
|
-
|
|
222
|
-
|
|
223
200
|
exports.ConcBuilder = ConcBuilder;
|
|
224
|
-
|
|
225
201
|
function builder_1() {
|
|
226
202
|
return new ConcBuilder(tsplus_module_2.empty());
|
|
227
203
|
}
|
|
228
204
|
/**
|
|
229
|
-
* @tsplus
|
|
205
|
+
* @tsplus pipeable fncts.Conc flatMap
|
|
230
206
|
*/
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
const a = arr[i];
|
|
245
|
-
out = concat_1(out, f(a));
|
|
207
|
+
function flatMap_1(f) {
|
|
208
|
+
return ma => {
|
|
209
|
+
void 0;
|
|
210
|
+
const iterator = ma.arrayIterator();
|
|
211
|
+
let result;
|
|
212
|
+
let out = tsplus_module_2.empty();
|
|
213
|
+
while (!(result = iterator.next()).done) {
|
|
214
|
+
const arr = result.value;
|
|
215
|
+
const length = arr.length;
|
|
216
|
+
for (let i = 0; i < length; i++) {
|
|
217
|
+
const a = arr[i];
|
|
218
|
+
out = concat_1(f(a))(out);
|
|
219
|
+
}
|
|
246
220
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return out;
|
|
221
|
+
return out;
|
|
222
|
+
};
|
|
250
223
|
}
|
|
251
224
|
/**
|
|
252
225
|
* @tsplus static fncts.ConcOps chainRecDepthFirst
|
|
253
226
|
*/
|
|
254
|
-
|
|
255
|
-
|
|
256
227
|
function chainRecDepthFirst(a, f) {
|
|
257
228
|
let buffer = f(a);
|
|
258
229
|
let out = tsplus_module_2.empty();
|
|
259
|
-
|
|
260
230
|
while (buffer.length > 0) {
|
|
261
231
|
const e = unsafeHead_1(buffer);
|
|
262
232
|
buffer = unsafeTail_1(buffer);
|
|
263
233
|
void 0;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
/* EitherTag.Left */
|
|
267
|
-
) {
|
|
268
|
-
buffer = concat_1(f(e.left), buffer);
|
|
234
|
+
if (e._tag === "Left" /* EitherTag.Left */) {
|
|
235
|
+
buffer = concat_1(buffer)(f(e.left));
|
|
269
236
|
} else {
|
|
270
|
-
out = append_1(
|
|
237
|
+
out = append_1(e.right)(out);
|
|
271
238
|
}
|
|
272
239
|
}
|
|
273
|
-
|
|
274
240
|
return out;
|
|
275
241
|
}
|
|
276
242
|
/**
|
|
277
243
|
* @tsplus static fncts.ConcOps chainRecBreadthFirst
|
|
278
244
|
*/
|
|
279
|
-
|
|
280
|
-
|
|
281
245
|
function chainRecBreadthFirst(a, f) {
|
|
282
246
|
const initial = f(a);
|
|
283
247
|
let buffer = tsplus_module_2.empty();
|
|
284
248
|
let out = tsplus_module_2.empty();
|
|
285
|
-
|
|
286
249
|
function go(e) {
|
|
287
250
|
void 0;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
/* EitherTag.Left */
|
|
291
|
-
) {
|
|
292
|
-
forEach_1(f(e.left), ab => (buffer = append_1(buffer, ab), undefined));
|
|
251
|
+
if (e._tag === "Left" /* EitherTag.Left */) {
|
|
252
|
+
forEach_1(ab => (buffer = append_1(ab)(buffer), undefined))(f(e.left));
|
|
293
253
|
} else {
|
|
294
|
-
out = append_1(
|
|
254
|
+
out = append_1(e.right)(out);
|
|
295
255
|
}
|
|
296
256
|
}
|
|
297
|
-
|
|
298
257
|
for (const e of initial) {
|
|
299
258
|
go(e);
|
|
300
259
|
}
|
|
301
|
-
|
|
302
260
|
while (buffer.length > 0) {
|
|
303
261
|
const ab = unsafeHead_1(buffer);
|
|
304
262
|
buffer = unsafeTail_1(buffer);
|
|
305
263
|
go(ab);
|
|
306
264
|
}
|
|
307
|
-
|
|
308
265
|
return out;
|
|
309
266
|
}
|
|
310
267
|
/**
|
|
311
|
-
* @tsplus
|
|
268
|
+
* @tsplus pipeable fncts.Conc chop
|
|
312
269
|
*/
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
return out.result();
|
|
270
|
+
function chop_1(f) {
|
|
271
|
+
return self => {
|
|
272
|
+
const out = builder_1();
|
|
273
|
+
let cs = self;
|
|
274
|
+
while (isNonEmpty_1(cs)) {
|
|
275
|
+
const [b, c] = f(cs);
|
|
276
|
+
out.append(b);
|
|
277
|
+
cs = c;
|
|
278
|
+
}
|
|
279
|
+
return out.result();
|
|
280
|
+
};
|
|
326
281
|
}
|
|
327
282
|
/**
|
|
328
|
-
* @tsplus
|
|
283
|
+
* @tsplus pipeable fncts.Conc chunksOf
|
|
329
284
|
*/
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
285
|
+
function chunksOf(n) {
|
|
286
|
+
return self => {
|
|
287
|
+
return chop_1(as => splitAt_1(n)(as))(self);
|
|
288
|
+
};
|
|
334
289
|
}
|
|
335
290
|
/**
|
|
336
291
|
* Transforms all elements of the Conc for as long as the specified partial function is defined.
|
|
337
292
|
*
|
|
338
|
-
* @tsplus
|
|
293
|
+
* @tsplus pipeable fncts.Conc collectWhile
|
|
339
294
|
*/
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
for (let i = 0; i < array.length; i++) {
|
|
361
|
-
const rhs = f(array[i]);
|
|
362
|
-
|
|
363
|
-
if (tsplus_module_5.isJust(rhs)) {
|
|
364
|
-
dest = append_1(dest, rhs.value);
|
|
365
|
-
} else {
|
|
366
|
-
return dest;
|
|
295
|
+
function collectWhile_1(f) {
|
|
296
|
+
return as => {
|
|
297
|
+
void 0;
|
|
298
|
+
switch (as._tag) {
|
|
299
|
+
case "Singleton" /* ConcTag.Singleton */:
|
|
300
|
+
{
|
|
301
|
+
return tsplus_module_4.match(() => tsplus_module_2.empty(), tsplus_module_3.single)(f(as.value));
|
|
302
|
+
}
|
|
303
|
+
case "Chunk" /* ConcTag.Chunk */:
|
|
304
|
+
{
|
|
305
|
+
const array = as.arrayLike();
|
|
306
|
+
let dest = tsplus_module_2.empty();
|
|
307
|
+
for (let i = 0; i < array.length; i++) {
|
|
308
|
+
const rhs = f(array[i]);
|
|
309
|
+
if (tsplus_module_5.isJust(rhs)) {
|
|
310
|
+
dest = append_1(rhs.value)(dest);
|
|
311
|
+
} else {
|
|
312
|
+
return dest;
|
|
313
|
+
}
|
|
367
314
|
}
|
|
315
|
+
return dest;
|
|
368
316
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
return collectWhile_1(as.materialize(), f);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
317
|
+
default:
|
|
318
|
+
{
|
|
319
|
+
return collectWhile_1(f)(as.materialize());
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
};
|
|
378
323
|
}
|
|
379
324
|
/**
|
|
380
325
|
* @tsplus getter fncts.Conc compact
|
|
381
326
|
*/
|
|
382
|
-
|
|
383
|
-
|
|
384
327
|
function compact(self) {
|
|
385
|
-
return filterMap_1(
|
|
328
|
+
return filterMap_1(_function.identity)(self);
|
|
386
329
|
}
|
|
387
330
|
/**
|
|
388
|
-
* @tsplus
|
|
331
|
+
* @tsplus pipeable fncts.Conc concat
|
|
389
332
|
*/
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
333
|
+
function concat_1(that) {
|
|
334
|
+
return self => {
|
|
335
|
+
void 0;
|
|
336
|
+
void 0;
|
|
337
|
+
return self.concat(that);
|
|
338
|
+
};
|
|
396
339
|
}
|
|
397
340
|
/**
|
|
398
|
-
* @tsplus
|
|
341
|
+
* @tsplus pipeable fncts.Conc elem
|
|
399
342
|
*/
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
E) {
|
|
405
|
-
return exists_1(self, el => E.equals(el, a));
|
|
343
|
+
function elem(a, /** @tsplus auto */E) {
|
|
344
|
+
return self => {
|
|
345
|
+
return some_1(el => E.equals(a)(el))(self);
|
|
346
|
+
};
|
|
406
347
|
}
|
|
407
348
|
/**
|
|
408
|
-
* @tsplus
|
|
349
|
+
* @tsplus pipeable fncts.Conc some
|
|
409
350
|
*/
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
for (let i = 0; !exists && i < array.length; i++) {
|
|
422
|
-
exists = predicate(array[i]);
|
|
351
|
+
function some_1(predicate) {
|
|
352
|
+
return as => {
|
|
353
|
+
void 0;
|
|
354
|
+
const iterator = as.arrayIterator();
|
|
355
|
+
let exists = false;
|
|
356
|
+
let result;
|
|
357
|
+
while (!exists && !(result = iterator.next()).done) {
|
|
358
|
+
const array = result.value;
|
|
359
|
+
for (let i = 0; !exists && i < array.length; i++) {
|
|
360
|
+
exists = predicate(array[i]);
|
|
361
|
+
}
|
|
423
362
|
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
return exists;
|
|
363
|
+
return exists;
|
|
364
|
+
};
|
|
427
365
|
}
|
|
428
366
|
/**
|
|
429
|
-
* @tsplus
|
|
367
|
+
* @tsplus pipeable fncts.Conc drop
|
|
430
368
|
*/
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
:
|
|
451
|
-
return n > 0 ? tsplus_module_2.empty() : self;
|
|
452
|
-
|
|
453
|
-
case "Empty"
|
|
454
|
-
/* ConcTag.Empty */
|
|
455
|
-
:
|
|
456
|
-
return tsplus_module_2.empty();
|
|
457
|
-
|
|
458
|
-
default:
|
|
459
|
-
return new _definition2.Slice(self, n, len - n);
|
|
369
|
+
function drop_1(n) {
|
|
370
|
+
return self => {
|
|
371
|
+
void 0;
|
|
372
|
+
const len = self.length;
|
|
373
|
+
if (len <= 0) {
|
|
374
|
+
return self;
|
|
375
|
+
} else if (n >= len) {
|
|
376
|
+
return tsplus_module_2.empty();
|
|
377
|
+
} else {
|
|
378
|
+
switch (self._tag) {
|
|
379
|
+
case "Slice" /* ConcTag.Slice */:
|
|
380
|
+
return new _definition2.Slice(self.conc, self.offset + n, self.l - n);
|
|
381
|
+
case "Singleton" /* ConcTag.Singleton */:
|
|
382
|
+
return n > 0 ? tsplus_module_2.empty() : self;
|
|
383
|
+
case "Empty" /* ConcTag.Empty */:
|
|
384
|
+
return tsplus_module_2.empty();
|
|
385
|
+
default:
|
|
386
|
+
return new _definition2.Slice(self, n, len - n);
|
|
387
|
+
}
|
|
460
388
|
}
|
|
461
|
-
}
|
|
389
|
+
};
|
|
462
390
|
}
|
|
463
391
|
/**
|
|
464
|
-
* @tsplus
|
|
392
|
+
* @tsplus pipeable fncts.Conc dropUntil
|
|
465
393
|
*/
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
394
|
+
function dropUntil(p) {
|
|
395
|
+
return self => {
|
|
396
|
+
let cont = true;
|
|
397
|
+
let i = 0;
|
|
398
|
+
for (const elem of self) {
|
|
399
|
+
if (!cont) {
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
i++;
|
|
403
|
+
cont = !p(elem);
|
|
475
404
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
cont = !p(elem);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
return drop_1(self, i);
|
|
405
|
+
return drop_1(i)(self);
|
|
406
|
+
};
|
|
482
407
|
}
|
|
483
408
|
/**
|
|
484
|
-
* @tsplus
|
|
409
|
+
* @tsplus pipeable fncts.Conc dropWhile
|
|
485
410
|
*/
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
while (i < arr.length && p(arr[i])) {
|
|
500
|
-
i++;
|
|
411
|
+
function dropWhile(p) {
|
|
412
|
+
return self => {
|
|
413
|
+
void 0;
|
|
414
|
+
switch (self._tag) {
|
|
415
|
+
case "Chunk" /* ConcTag.Chunk */:
|
|
416
|
+
{
|
|
417
|
+
const arr = self.arrayLike();
|
|
418
|
+
let i = 0;
|
|
419
|
+
while (i < arr.length && p(arr[i])) {
|
|
420
|
+
i++;
|
|
421
|
+
}
|
|
422
|
+
return drop_1(i)(self);
|
|
501
423
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
if (p(array[j])) {
|
|
519
|
-
i++;
|
|
520
|
-
j++;
|
|
521
|
-
} else {
|
|
522
|
-
cont = false;
|
|
424
|
+
default:
|
|
425
|
+
{
|
|
426
|
+
const iterator = self.arrayIterator();
|
|
427
|
+
let result;
|
|
428
|
+
let cont = true;
|
|
429
|
+
let i = 0;
|
|
430
|
+
while (cont && !(result = iterator.next()).done) {
|
|
431
|
+
const array = result.value;
|
|
432
|
+
let j = 0;
|
|
433
|
+
while (cont && j < array.length) {
|
|
434
|
+
if (p(array[j])) {
|
|
435
|
+
i++;
|
|
436
|
+
j++;
|
|
437
|
+
} else {
|
|
438
|
+
cont = false;
|
|
439
|
+
}
|
|
523
440
|
}
|
|
524
441
|
}
|
|
442
|
+
return drop_1(i)(self);
|
|
525
443
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
}
|
|
444
|
+
}
|
|
445
|
+
};
|
|
530
446
|
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
447
|
+
function filter(p) {
|
|
448
|
+
return self => {
|
|
449
|
+
return filterWithIndex_1((_, a) => p(a))(self);
|
|
450
|
+
};
|
|
534
451
|
}
|
|
535
452
|
/**
|
|
536
|
-
* @tsplus
|
|
453
|
+
* @tsplus pipeable fncts.Conc filterMap
|
|
537
454
|
*/
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
455
|
+
function filterMap_1(f) {
|
|
456
|
+
return self => {
|
|
457
|
+
return filterMapWithIndex_1((_, a) => f(a))(self);
|
|
458
|
+
};
|
|
542
459
|
}
|
|
543
460
|
/**
|
|
544
|
-
* @tsplus
|
|
461
|
+
* @tsplus pipeable fncts.Conc filterMapWithIndex
|
|
545
462
|
*/
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
if (tsplus_module_5.isJust(ob)) {
|
|
562
|
-
out.append(ob.value);
|
|
463
|
+
function filterMapWithIndex_1(f) {
|
|
464
|
+
return self => {
|
|
465
|
+
void 0;
|
|
466
|
+
const iterator = self.arrayIterator();
|
|
467
|
+
const out = builder_1();
|
|
468
|
+
let result;
|
|
469
|
+
let i = 0;
|
|
470
|
+
while (!(result = iterator.next()).done) {
|
|
471
|
+
const array = result.value;
|
|
472
|
+
for (let j = 0; j < array.length; j++) {
|
|
473
|
+
const ob = f(i, array[j]);
|
|
474
|
+
if (tsplus_module_5.isJust(ob)) {
|
|
475
|
+
out.append(ob.value);
|
|
476
|
+
}
|
|
477
|
+
i++;
|
|
563
478
|
}
|
|
564
|
-
|
|
565
|
-
i++;
|
|
566
479
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
return out.result();
|
|
480
|
+
return out.result();
|
|
481
|
+
};
|
|
570
482
|
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
let builder = tsplus_module_2.empty();
|
|
589
|
-
|
|
590
|
-
for (let i = 0; i < arr.length; i++) {
|
|
591
|
-
const a = arr[i];
|
|
592
|
-
|
|
593
|
-
if (p(i, a)) {
|
|
594
|
-
builder = append_1(builder, a);
|
|
483
|
+
function filterWithIndex_1(p) {
|
|
484
|
+
return self => {
|
|
485
|
+
void 0;
|
|
486
|
+
switch (self._tag) {
|
|
487
|
+
case "Empty" /* ConcTag.Empty */:
|
|
488
|
+
{
|
|
489
|
+
return _definition2._Empty;
|
|
490
|
+
}
|
|
491
|
+
case "Chunk" /* ConcTag.Chunk */:
|
|
492
|
+
{
|
|
493
|
+
const arr = self.arrayLike();
|
|
494
|
+
let builder = tsplus_module_2.empty();
|
|
495
|
+
for (let i = 0; i < arr.length; i++) {
|
|
496
|
+
const a = arr[i];
|
|
497
|
+
if (p(i, a)) {
|
|
498
|
+
builder = append_1(a)(builder);
|
|
499
|
+
}
|
|
595
500
|
}
|
|
501
|
+
return builder;
|
|
596
502
|
}
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
:
|
|
604
|
-
{
|
|
605
|
-
if (p(0, self.value)) {
|
|
606
|
-
return self;
|
|
503
|
+
case "Singleton" /* ConcTag.Singleton */:
|
|
504
|
+
{
|
|
505
|
+
if (p(0, self.value)) {
|
|
506
|
+
return self;
|
|
507
|
+
}
|
|
508
|
+
return _definition2._Empty;
|
|
607
509
|
}
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
for (let j = 0; j < array.length; j++) {
|
|
623
|
-
const a = array[j];
|
|
624
|
-
|
|
625
|
-
if (p(i, a)) {
|
|
626
|
-
out = append_1(out, a);
|
|
510
|
+
default:
|
|
511
|
+
{
|
|
512
|
+
const iterator = self.arrayIterator();
|
|
513
|
+
let out = tsplus_module_2.empty();
|
|
514
|
+
let result;
|
|
515
|
+
let i = 0;
|
|
516
|
+
while (!(result = iterator.next()).done) {
|
|
517
|
+
const array = result.value;
|
|
518
|
+
for (let j = 0; j < array.length; j++) {
|
|
519
|
+
const a = array[j];
|
|
520
|
+
if (p(i, a)) {
|
|
521
|
+
out = append_1(a)(out);
|
|
522
|
+
}
|
|
523
|
+
i++;
|
|
627
524
|
}
|
|
628
|
-
|
|
629
|
-
i++;
|
|
630
525
|
}
|
|
526
|
+
return out;
|
|
631
527
|
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
}
|
|
635
|
-
}
|
|
528
|
+
}
|
|
529
|
+
};
|
|
636
530
|
}
|
|
637
531
|
/**
|
|
638
|
-
* @tsplus
|
|
532
|
+
* @tsplus pipeable fncts.Conc find
|
|
639
533
|
*/
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
if (f(a)) {
|
|
656
|
-
out = tsplus_module_6.just(a);
|
|
534
|
+
function find(f) {
|
|
535
|
+
return self => {
|
|
536
|
+
void 0;
|
|
537
|
+
const iterator = self.arrayIterator();
|
|
538
|
+
let out = tsplus_module_6.nothing();
|
|
539
|
+
let result;
|
|
540
|
+
while (tsplus_module_5.isNothing(out) && !(result = iterator.next()).done) {
|
|
541
|
+
const array = result.value;
|
|
542
|
+
const length = array.length;
|
|
543
|
+
for (let i = 0; tsplus_module_5.isNothing(out) && i < length; i++) {
|
|
544
|
+
const a = array[i];
|
|
545
|
+
if (f(a)) {
|
|
546
|
+
out = tsplus_module_6.just(a);
|
|
547
|
+
}
|
|
657
548
|
}
|
|
658
549
|
}
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
return out;
|
|
550
|
+
return out;
|
|
551
|
+
};
|
|
662
552
|
}
|
|
663
553
|
/**
|
|
664
554
|
* @tsplus getter fncts.Conc flatten
|
|
665
555
|
*/
|
|
666
|
-
|
|
667
|
-
|
|
668
556
|
function flatten(self) {
|
|
669
|
-
return flatMap_1(
|
|
557
|
+
return flatMap_1(_function.identity)(self);
|
|
670
558
|
}
|
|
671
559
|
/**
|
|
672
560
|
* Folds over the elements in this Conc from the left.
|
|
673
561
|
* Stops the fold early when the condition is not fulfilled.
|
|
674
562
|
*
|
|
675
|
-
* @tsplus
|
|
563
|
+
* @tsplus pipeable fncts.Conc foldLeftWhile
|
|
676
564
|
*/
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
s = f(s, array[i]);
|
|
691
|
-
cont = p(s);
|
|
565
|
+
function foldLeftWhile(b, p, f) {
|
|
566
|
+
return as => {
|
|
567
|
+
void 0;
|
|
568
|
+
const iterator = as.arrayIterator();
|
|
569
|
+
let s = b;
|
|
570
|
+
let cont = p(s);
|
|
571
|
+
let result;
|
|
572
|
+
while (cont && !(result = iterator.next()).done) {
|
|
573
|
+
const array = result.value;
|
|
574
|
+
for (let i = 0; cont && i < array.length; i++) {
|
|
575
|
+
s = f(s, array[i]);
|
|
576
|
+
cont = p(s);
|
|
577
|
+
}
|
|
692
578
|
}
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
return s;
|
|
579
|
+
return s;
|
|
580
|
+
};
|
|
696
581
|
}
|
|
697
582
|
/**
|
|
698
|
-
* @tsplus
|
|
583
|
+
* @tsplus pipeable fncts.Conc foldLeft
|
|
699
584
|
*/
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
585
|
+
function foldLeft_1(b, f) {
|
|
586
|
+
return self => {
|
|
587
|
+
return foldLeftWithIndex_1(b, (_, b, a) => f(b, a))(self);
|
|
588
|
+
};
|
|
704
589
|
}
|
|
705
590
|
/**
|
|
706
|
-
* @tsplus
|
|
591
|
+
* @tsplus pipeable fncts.Conc foldLeftWithIndex
|
|
707
592
|
*/
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
out = f(i, out, array[j]);
|
|
722
|
-
i++;
|
|
593
|
+
function foldLeftWithIndex_1(b, f) {
|
|
594
|
+
return self => {
|
|
595
|
+
void 0;
|
|
596
|
+
const iterator = self.arrayIterator();
|
|
597
|
+
let out = b;
|
|
598
|
+
let result;
|
|
599
|
+
let i = 0;
|
|
600
|
+
while (!(result = iterator.next()).done) {
|
|
601
|
+
const array = result.value;
|
|
602
|
+
for (let j = 0; j < array.length; j++) {
|
|
603
|
+
out = f(i, out, array[j]);
|
|
604
|
+
i++;
|
|
605
|
+
}
|
|
723
606
|
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
return out;
|
|
607
|
+
return out;
|
|
608
|
+
};
|
|
727
609
|
}
|
|
728
610
|
/**
|
|
729
|
-
* @tsplus
|
|
611
|
+
* @tsplus pipeable fncts.Conc foldMap
|
|
730
612
|
*/
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
M) {
|
|
736
|
-
return foldMapWithIndex_1(fa, (_, a) => f(a), M);
|
|
613
|
+
function foldMap(f, /** @tsplus auto */M) {
|
|
614
|
+
return fa => {
|
|
615
|
+
return foldMapWithIndex_1((_, a) => f(a), M)(fa);
|
|
616
|
+
};
|
|
737
617
|
}
|
|
738
618
|
/**
|
|
739
|
-
* @tsplus
|
|
619
|
+
* @tsplus pipeable fncts.Conc foldMapWithIndex
|
|
740
620
|
*/
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
M) {
|
|
746
|
-
return foldLeftWithIndex_1(fa, M.nat, (i, b, a) => M.combine(b, f(i, a)));
|
|
621
|
+
function foldMapWithIndex_1(f, /** @tsplus auto */M) {
|
|
622
|
+
return fa => {
|
|
623
|
+
return foldLeftWithIndex_1(M.nat, (i, b, a) => M.combine(f(i, a))(b))(fa);
|
|
624
|
+
};
|
|
747
625
|
}
|
|
748
626
|
/**
|
|
749
|
-
* @tsplus
|
|
627
|
+
* @tsplus pipeable fncts.Conc foldRight
|
|
750
628
|
*/
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
629
|
+
function foldRight(b, f) {
|
|
630
|
+
return fa => {
|
|
631
|
+
return foldRightWithIndex_1(b, (_, a, b) => f(a, b))(fa);
|
|
632
|
+
};
|
|
755
633
|
}
|
|
756
634
|
/**
|
|
757
|
-
* @tsplus
|
|
635
|
+
* @tsplus pipeable fncts.Conc foldRightWithIndex
|
|
758
636
|
*/
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
out = f(i, array[i], out);
|
|
773
|
-
i--;
|
|
637
|
+
function foldRightWithIndex_1(b, f) {
|
|
638
|
+
return self => {
|
|
639
|
+
void 0;
|
|
640
|
+
const iterator = self.reverseArrayIterator();
|
|
641
|
+
let out = b;
|
|
642
|
+
let result;
|
|
643
|
+
let i = self.length - 1;
|
|
644
|
+
while (!(result = iterator.next()).done) {
|
|
645
|
+
const array = result.value;
|
|
646
|
+
for (let j = array.length - 1; j >= 0; j--) {
|
|
647
|
+
out = f(i, array[j], out);
|
|
648
|
+
i--;
|
|
649
|
+
}
|
|
774
650
|
}
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
return out;
|
|
651
|
+
return out;
|
|
652
|
+
};
|
|
778
653
|
}
|
|
779
654
|
/**
|
|
780
|
-
* @tsplus
|
|
781
|
-
*/
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
655
|
+
* @tsplus pipeable fncts.Conc forEach
|
|
656
|
+
*/
|
|
657
|
+
function forEach_1(f) {
|
|
658
|
+
return self => {
|
|
659
|
+
void 0;
|
|
660
|
+
return self.forEach(0, (_, a) => f(a));
|
|
661
|
+
};
|
|
787
662
|
}
|
|
788
663
|
/**
|
|
789
|
-
* @tsplus
|
|
664
|
+
* @tsplus pipeable fncts.Conc forEachWithIndex
|
|
790
665
|
*/
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
666
|
+
function forEachWithIndex(f) {
|
|
667
|
+
return self => {
|
|
668
|
+
void 0;
|
|
669
|
+
self.forEach(0, f);
|
|
670
|
+
};
|
|
796
671
|
}
|
|
797
672
|
/**
|
|
798
|
-
* @tsplus
|
|
673
|
+
* @tsplus pipeable fncts.Conc get
|
|
799
674
|
*/
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
675
|
+
function get(n) {
|
|
676
|
+
return as => {
|
|
677
|
+
return tsplus_module_6.tryCatch(() => unsafeGet_1(n)(as));
|
|
678
|
+
};
|
|
804
679
|
}
|
|
805
680
|
/**
|
|
806
681
|
* @tsplus getter fncts.Conc head
|
|
807
682
|
*/
|
|
808
|
-
|
|
809
|
-
|
|
810
683
|
function head(self) {
|
|
811
684
|
void 0;
|
|
812
|
-
|
|
813
685
|
if (isEmpty_1(self)) {
|
|
814
686
|
return tsplus_module_6.nothing();
|
|
815
687
|
}
|
|
816
|
-
|
|
817
688
|
return tsplus_module_6.just(self.get(0));
|
|
818
689
|
}
|
|
819
690
|
/**
|
|
820
691
|
* @tsplus getter fncts.Conc init
|
|
821
692
|
*/
|
|
822
|
-
|
|
823
|
-
|
|
824
693
|
function init(self) {
|
|
825
694
|
if (isEmpty_1(self)) {
|
|
826
695
|
return tsplus_module_6.nothing();
|
|
827
696
|
}
|
|
828
|
-
|
|
829
|
-
return tsplus_module_6.just(take_1(self, self.length - 1));
|
|
697
|
+
return tsplus_module_6.just(take_1(self.length - 1)(self));
|
|
830
698
|
}
|
|
831
699
|
/**
|
|
832
|
-
* @tsplus
|
|
700
|
+
* @tsplus pipeable fncts.Conc join
|
|
833
701
|
*/
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
return foldLeft_1(unsafeTail_1(self), unsafeGet_1(self, 0), (b, s) => b + separator + s);
|
|
702
|
+
function join(separator) {
|
|
703
|
+
return self => {
|
|
704
|
+
if (self.length === 0) {
|
|
705
|
+
return "";
|
|
706
|
+
}
|
|
707
|
+
return foldLeft_1(unsafeGet_1(0)(self), (b, s) => b + separator + s)(unsafeTail_1(self));
|
|
708
|
+
};
|
|
842
709
|
}
|
|
843
710
|
/**
|
|
844
711
|
* @tsplus getter fncts.Conc last
|
|
845
712
|
*/
|
|
846
|
-
|
|
847
|
-
|
|
848
713
|
function last(self) {
|
|
849
714
|
void 0;
|
|
850
|
-
|
|
851
715
|
if (isEmpty_1(self)) {
|
|
852
716
|
return tsplus_module_6.nothing();
|
|
853
717
|
}
|
|
854
|
-
|
|
855
718
|
return tsplus_module_6.just(self.get(self.length - 1));
|
|
856
719
|
}
|
|
857
720
|
/**
|
|
858
|
-
* @tsplus
|
|
721
|
+
* @tsplus pipeable fncts.Conc map
|
|
859
722
|
*/
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
723
|
+
function map(f) {
|
|
724
|
+
return self => {
|
|
725
|
+
return mapWithIndex_1((_, a) => f(a))(self);
|
|
726
|
+
};
|
|
864
727
|
}
|
|
865
728
|
/**
|
|
866
729
|
* Statefully maps over the Conc, producing new elements of type `B`.
|
|
867
730
|
*
|
|
868
|
-
* @tsplus
|
|
731
|
+
* @tsplus pipeable fncts.Conc mapAccum
|
|
869
732
|
*/
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
out.append(tup[1]);
|
|
887
|
-
state = tup[0];
|
|
733
|
+
function mapAccum(s, f) {
|
|
734
|
+
return self => {
|
|
735
|
+
void 0;
|
|
736
|
+
const iterator = self.arrayIterator();
|
|
737
|
+
const out = builder_1();
|
|
738
|
+
let state = s;
|
|
739
|
+
let result;
|
|
740
|
+
while (!(result = iterator.next()).done) {
|
|
741
|
+
const array = result.value;
|
|
742
|
+
const length = array.length;
|
|
743
|
+
for (let i = 0; i < length; i++) {
|
|
744
|
+
const a = array[i];
|
|
745
|
+
const tup = f(state, a);
|
|
746
|
+
out.append(tup[1]);
|
|
747
|
+
state = tup[0];
|
|
748
|
+
}
|
|
888
749
|
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
return (0, _function.tuple)(s, out.result());
|
|
750
|
+
return (0, _function.tuple)(state, out.result());
|
|
751
|
+
};
|
|
892
752
|
}
|
|
893
|
-
|
|
894
753
|
function mapArrayLike(as, len, startIndex, f) {
|
|
895
754
|
let bs = tsplus_module_2.empty();
|
|
896
|
-
|
|
897
755
|
for (let i = 0; i < len; i++) {
|
|
898
|
-
bs = append_1(
|
|
756
|
+
bs = append_1(f(i + startIndex, as[i]))(bs);
|
|
899
757
|
}
|
|
900
|
-
|
|
901
758
|
return bs;
|
|
902
759
|
}
|
|
903
|
-
|
|
904
760
|
function mapArrayLikeReverse(as, len, endIndex, f) {
|
|
905
761
|
let bs = tsplus_module_2.empty();
|
|
906
|
-
|
|
907
762
|
for (let i = _definition2.BUFFER_SIZE - len, j = len - 1; i < _definition2.BUFFER_SIZE; i++, j--) {
|
|
908
|
-
bs = append_1(
|
|
763
|
+
bs = append_1(f(endIndex - j, as[i]))(bs);
|
|
909
764
|
}
|
|
910
|
-
|
|
911
765
|
return bs;
|
|
912
766
|
}
|
|
913
|
-
|
|
914
767
|
class DoneFrame {
|
|
915
768
|
constructor() {
|
|
916
769
|
this._tag = "Done";
|
|
917
770
|
}
|
|
918
|
-
|
|
919
771
|
}
|
|
920
|
-
|
|
921
772
|
class ConcatLeftFrame {
|
|
922
773
|
constructor(conc, currentIndex) {
|
|
923
774
|
this.conc = conc;
|
|
924
775
|
this.currentIndex = currentIndex;
|
|
925
776
|
this._tag = "ConcatLeft";
|
|
926
777
|
}
|
|
927
|
-
|
|
928
778
|
}
|
|
929
|
-
|
|
930
779
|
class ConcatRightFrame {
|
|
931
780
|
constructor(leftResult) {
|
|
932
781
|
this.leftResult = leftResult;
|
|
933
782
|
this._tag = "ConcatRight";
|
|
934
783
|
}
|
|
935
|
-
|
|
936
784
|
}
|
|
937
|
-
|
|
938
785
|
class AppendFrame {
|
|
939
786
|
constructor(buffer, bufferUsed, startIndex) {
|
|
940
787
|
this.buffer = buffer;
|
|
@@ -942,150 +789,114 @@ class AppendFrame {
|
|
|
942
789
|
this.startIndex = startIndex;
|
|
943
790
|
this._tag = "Append";
|
|
944
791
|
}
|
|
945
|
-
|
|
946
792
|
}
|
|
947
|
-
|
|
948
793
|
class PrependFrame {
|
|
949
794
|
constructor(pre, end) {
|
|
950
795
|
this.pre = pre;
|
|
951
796
|
this.end = end;
|
|
952
797
|
this._tag = "Prepend";
|
|
953
798
|
}
|
|
954
|
-
|
|
955
799
|
}
|
|
956
800
|
/**
|
|
957
|
-
* @tsplus
|
|
801
|
+
* @tsplus pipeable fncts.Conc mapWithIndex
|
|
958
802
|
*/
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
/* ConcTag.Singleton */
|
|
976
|
-
:
|
|
977
|
-
{
|
|
978
|
-
result = new _definition2.Singleton(f(index++, current.value));
|
|
979
|
-
break pushing;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
case "Empty"
|
|
983
|
-
/* ConcTag.Empty */
|
|
984
|
-
:
|
|
985
|
-
{
|
|
986
|
-
result = _definition2._Empty;
|
|
987
|
-
break pushing;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
case "Chunk"
|
|
991
|
-
/* ConcTag.Chunk */
|
|
992
|
-
:
|
|
993
|
-
{
|
|
994
|
-
result = new _definition2.Chunk(current._array.map((a, i) => f(i + index, a)));
|
|
995
|
-
index += current.length;
|
|
996
|
-
break pushing;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
case "Concat"
|
|
1000
|
-
/* ConcTag.Concat */
|
|
1001
|
-
:
|
|
1002
|
-
{
|
|
1003
|
-
stack.push(new ConcatLeftFrame(current, index));
|
|
1004
|
-
current = current.left;
|
|
1005
|
-
continue pushing;
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
case "AppendN"
|
|
1009
|
-
/* ConcTag.AppendN */
|
|
1010
|
-
:
|
|
1011
|
-
{
|
|
1012
|
-
stack.push(new AppendFrame(current.buffer, current.bufferUsed, index));
|
|
1013
|
-
current = current.start;
|
|
1014
|
-
continue pushing;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
case "PrependN"
|
|
1018
|
-
/* ConcTag.PrependN */
|
|
1019
|
-
:
|
|
1020
|
-
{
|
|
1021
|
-
stack.push(new PrependFrame(mapArrayLikeReverse(current.buffer, current.bufferUsed, index + current.bufferUsed - 1, f), current.end));
|
|
1022
|
-
index += current.bufferUsed;
|
|
1023
|
-
break pushing;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
case "Slice"
|
|
1027
|
-
/* ConcTag.Slice */
|
|
1028
|
-
:
|
|
1029
|
-
{
|
|
1030
|
-
let r = tsplus_module_2.empty();
|
|
1031
|
-
|
|
1032
|
-
for (let i = 0; i < current.length; i++) {
|
|
1033
|
-
r = append_1(r, f(i + index, unsafeGet_1(current, i)));
|
|
803
|
+
function mapWithIndex_1(f) {
|
|
804
|
+
return self => {
|
|
805
|
+
let current = self;
|
|
806
|
+
let index = 0;
|
|
807
|
+
const stack = tsplus_module_7.makeStack();
|
|
808
|
+
stack.push(new DoneFrame());
|
|
809
|
+
let result = tsplus_module_2.empty();
|
|
810
|
+
recursion: while (stack.hasNext) {
|
|
811
|
+
// eslint-disable-next-line no-constant-condition
|
|
812
|
+
pushing: while (true) {
|
|
813
|
+
void 0;
|
|
814
|
+
switch (current._tag) {
|
|
815
|
+
case "Singleton" /* ConcTag.Singleton */:
|
|
816
|
+
{
|
|
817
|
+
result = new _definition2.Singleton(f(index++, current.value));
|
|
818
|
+
break pushing;
|
|
1034
819
|
}
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
820
|
+
case "Empty" /* ConcTag.Empty */:
|
|
821
|
+
{
|
|
822
|
+
result = _definition2._Empty;
|
|
823
|
+
break pushing;
|
|
824
|
+
}
|
|
825
|
+
case "Chunk" /* ConcTag.Chunk */:
|
|
826
|
+
{
|
|
827
|
+
result = new _definition2.Chunk(current._array.map((a, i) => f(i + index, a)));
|
|
828
|
+
index += current.length;
|
|
829
|
+
break pushing;
|
|
830
|
+
}
|
|
831
|
+
case "Concat" /* ConcTag.Concat */:
|
|
832
|
+
{
|
|
833
|
+
stack.push(new ConcatLeftFrame(current, index));
|
|
834
|
+
current = current.left;
|
|
835
|
+
continue pushing;
|
|
836
|
+
}
|
|
837
|
+
case "AppendN" /* ConcTag.AppendN */:
|
|
838
|
+
{
|
|
839
|
+
stack.push(new AppendFrame(current.buffer, current.bufferUsed, index));
|
|
840
|
+
current = current.start;
|
|
841
|
+
continue pushing;
|
|
842
|
+
}
|
|
843
|
+
case "PrependN" /* ConcTag.PrependN */:
|
|
844
|
+
{
|
|
845
|
+
stack.push(new PrependFrame(mapArrayLikeReverse(current.buffer, current.bufferUsed, index + current.bufferUsed - 1, f), current.end));
|
|
846
|
+
index += current.bufferUsed;
|
|
847
|
+
break pushing;
|
|
848
|
+
}
|
|
849
|
+
case "Slice" /* ConcTag.Slice */:
|
|
850
|
+
{
|
|
851
|
+
let r = tsplus_module_2.empty();
|
|
852
|
+
for (let i = 0; i < current.length; i++) {
|
|
853
|
+
r = append_1(f(i + index, current.get(i)))(r);
|
|
854
|
+
}
|
|
855
|
+
result = r;
|
|
856
|
+
index += current.length;
|
|
857
|
+
break pushing;
|
|
858
|
+
}
|
|
859
|
+
}
|
|
1040
860
|
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
case "Prepend":
|
|
1073
|
-
{
|
|
1074
|
-
current = top.end;
|
|
1075
|
-
stack.push(new ConcatRightFrame(top.pre));
|
|
1076
|
-
continue recursion;
|
|
1077
|
-
}
|
|
861
|
+
// eslint-disable-next-line no-constant-condition
|
|
862
|
+
popping: while (true) {
|
|
863
|
+
const top = stack.pop();
|
|
864
|
+
switch (top._tag) {
|
|
865
|
+
case "Done":
|
|
866
|
+
{
|
|
867
|
+
return result;
|
|
868
|
+
}
|
|
869
|
+
case "ConcatLeft":
|
|
870
|
+
{
|
|
871
|
+
current = top.conc.right;
|
|
872
|
+
stack.push(new ConcatRightFrame(result));
|
|
873
|
+
continue recursion;
|
|
874
|
+
}
|
|
875
|
+
case "ConcatRight":
|
|
876
|
+
{
|
|
877
|
+
result = concat_1(result)(top.leftResult);
|
|
878
|
+
continue popping;
|
|
879
|
+
}
|
|
880
|
+
case "Append":
|
|
881
|
+
{
|
|
882
|
+
result = concat_1(mapArrayLike(top.buffer, top.bufferUsed, index, f))(result);
|
|
883
|
+
continue popping;
|
|
884
|
+
}
|
|
885
|
+
case "Prepend":
|
|
886
|
+
{
|
|
887
|
+
current = top.end;
|
|
888
|
+
stack.push(new ConcatRightFrame(top.pre));
|
|
889
|
+
continue recursion;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
1078
892
|
}
|
|
1079
893
|
}
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
throw new Error("bug");
|
|
894
|
+
throw new Error("bug");
|
|
895
|
+
};
|
|
1083
896
|
}
|
|
1084
897
|
/**
|
|
1085
898
|
* @tsplus getter fncts.Conc isEmpty
|
|
1086
899
|
*/
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
900
|
function isEmpty_1(self) {
|
|
1090
901
|
void 0;
|
|
1091
902
|
return self.length === 0;
|
|
@@ -1093,93 +904,83 @@ function isEmpty_1(self) {
|
|
|
1093
904
|
/**
|
|
1094
905
|
* @tsplus getter fncts.Conc isNonEmpty
|
|
1095
906
|
*/
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
907
|
function isNonEmpty_1(conc) {
|
|
1099
908
|
return !isEmpty_1(conc);
|
|
1100
909
|
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
910
|
+
function partition(p) {
|
|
911
|
+
return self => {
|
|
912
|
+
return partitionWithIndex_1((_, a) => p(a))(self);
|
|
913
|
+
};
|
|
1104
914
|
}
|
|
1105
915
|
/**
|
|
1106
|
-
* @tsplus
|
|
916
|
+
* @tsplus pipeable fncts.Conc partitionMap
|
|
1107
917
|
*/
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
918
|
+
function partitionMap_1(f) {
|
|
919
|
+
return self => {
|
|
920
|
+
return partitionMapWithIndex_1((_, a) => f(a))(self);
|
|
921
|
+
};
|
|
1112
922
|
}
|
|
1113
923
|
/**
|
|
1114
|
-
* @tsplus
|
|
924
|
+
* @tsplus pipeable fncts.Conc partitionMapWithIndex
|
|
1115
925
|
*/
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
tsplus_module_8.match_(eab, b => left.append(b), c => right.append(c));
|
|
1132
|
-
i++;
|
|
926
|
+
function partitionMapWithIndex_1(f) {
|
|
927
|
+
return fa => {
|
|
928
|
+
void 0;
|
|
929
|
+
const iterator = fa.arrayIterator();
|
|
930
|
+
const left = builder_1();
|
|
931
|
+
const right = builder_1();
|
|
932
|
+
let result;
|
|
933
|
+
let i = 0;
|
|
934
|
+
while (!(result = iterator.next()).done) {
|
|
935
|
+
const array = result.value;
|
|
936
|
+
for (let j = 0; j < array.length; j++) {
|
|
937
|
+
const eab = f(i, array[j]);
|
|
938
|
+
tsplus_module_8.match(b => left.append(b), c => right.append(c))(eab);
|
|
939
|
+
i++;
|
|
940
|
+
}
|
|
1133
941
|
}
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
return [left.result(), right.result()];
|
|
942
|
+
return [left.result(), right.result()];
|
|
943
|
+
};
|
|
1137
944
|
}
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
left.append(a);
|
|
945
|
+
function partitionWithIndex_1(p) {
|
|
946
|
+
return self => {
|
|
947
|
+
void 0;
|
|
948
|
+
const iterator = self.arrayIterator();
|
|
949
|
+
const left = builder_1();
|
|
950
|
+
const right = builder_1();
|
|
951
|
+
let result;
|
|
952
|
+
let i = 0;
|
|
953
|
+
while (!(result = iterator.next()).done) {
|
|
954
|
+
const array = result.value;
|
|
955
|
+
for (let j = 0; j < array.length; j++) {
|
|
956
|
+
const a = array[j];
|
|
957
|
+
if (p(i, a)) {
|
|
958
|
+
right.append(a);
|
|
959
|
+
} else {
|
|
960
|
+
left.append(a);
|
|
961
|
+
}
|
|
962
|
+
i++;
|
|
1157
963
|
}
|
|
1158
|
-
|
|
1159
|
-
i++;
|
|
1160
964
|
}
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
return [left.result(), right.result()];
|
|
965
|
+
return [left.result(), right.result()];
|
|
966
|
+
};
|
|
1164
967
|
}
|
|
1165
968
|
/**
|
|
1166
|
-
* @tsplus
|
|
969
|
+
* @tsplus pipeable fncts.Conc prepend
|
|
1167
970
|
*/
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
971
|
+
function prepend(a) {
|
|
972
|
+
return self => {
|
|
973
|
+
void 0;
|
|
974
|
+
return self.prepend(a);
|
|
975
|
+
};
|
|
1173
976
|
}
|
|
1174
977
|
/**
|
|
1175
978
|
* @tsplus getter fncts.Conc reverse
|
|
1176
979
|
*/
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
980
|
function reverse(self) {
|
|
1180
981
|
void 0;
|
|
1181
982
|
const arr = self.arrayLike();
|
|
1182
|
-
return tsplus_module_9.
|
|
983
|
+
return tsplus_module_9.makeIterable(() => {
|
|
1183
984
|
let i = arr.length - 1;
|
|
1184
985
|
return {
|
|
1185
986
|
next: () => {
|
|
@@ -1203,157 +1004,131 @@ function reverse(self) {
|
|
|
1203
1004
|
/**
|
|
1204
1005
|
* @tsplus getter fncts.Conc separate
|
|
1205
1006
|
*/
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
1007
|
function separate(self) {
|
|
1209
|
-
return partitionMap_1(
|
|
1008
|
+
return partitionMap_1(_function.identity)(self);
|
|
1210
1009
|
}
|
|
1211
1010
|
/**
|
|
1212
|
-
* @tsplus
|
|
1011
|
+
* @tsplus pipeable fncts.Conc splitAt
|
|
1213
1012
|
*/
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1013
|
+
function splitAt_1(n) {
|
|
1014
|
+
return self => {
|
|
1015
|
+
return [take_1(n)(self), drop_1(n)(self)];
|
|
1016
|
+
};
|
|
1218
1017
|
}
|
|
1219
1018
|
/**
|
|
1220
1019
|
* Splits this Conc on the first element that matches this predicate.
|
|
1221
1020
|
*
|
|
1222
|
-
* @tsplus
|
|
1021
|
+
* @tsplus pipeable fncts.Conc splitWhere
|
|
1223
1022
|
*/
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
} else {
|
|
1244
|
-
i++;
|
|
1245
|
-
j++;
|
|
1023
|
+
function splitWhere(f) {
|
|
1024
|
+
return self => {
|
|
1025
|
+
void 0;
|
|
1026
|
+
const iterator = self.arrayIterator();
|
|
1027
|
+
let next;
|
|
1028
|
+
let cont = true;
|
|
1029
|
+
let i = 0;
|
|
1030
|
+
while (cont && (next = iterator.next()) && !next.done) {
|
|
1031
|
+
const array = next.value;
|
|
1032
|
+
const len = array.length;
|
|
1033
|
+
let j = 0;
|
|
1034
|
+
while (cont && j < len) {
|
|
1035
|
+
const a = array[j];
|
|
1036
|
+
if (f(a)) {
|
|
1037
|
+
cont = false;
|
|
1038
|
+
} else {
|
|
1039
|
+
i++;
|
|
1040
|
+
j++;
|
|
1041
|
+
}
|
|
1246
1042
|
}
|
|
1247
1043
|
}
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
return splitAt_1(self, i);
|
|
1044
|
+
return splitAt_1(i)(self);
|
|
1045
|
+
};
|
|
1251
1046
|
}
|
|
1252
1047
|
/**
|
|
1253
1048
|
* @tsplus getter fncts.Conc tail
|
|
1254
1049
|
*/
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
1050
|
function tail(conc) {
|
|
1258
1051
|
if (isEmpty_1(conc)) {
|
|
1259
1052
|
return tsplus_module_6.nothing();
|
|
1260
1053
|
}
|
|
1261
|
-
|
|
1262
|
-
return tsplus_module_6.just(drop_1(conc, 1));
|
|
1054
|
+
return tsplus_module_6.just(drop_1(1)(conc));
|
|
1263
1055
|
}
|
|
1264
1056
|
/**
|
|
1265
|
-
* @tsplus
|
|
1057
|
+
* @tsplus pipeable fncts.Conc take
|
|
1266
1058
|
*/
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1059
|
+
function take_1(n) {
|
|
1060
|
+
return self => {
|
|
1061
|
+
void 0;
|
|
1062
|
+
return self.take(n);
|
|
1063
|
+
};
|
|
1272
1064
|
}
|
|
1273
1065
|
/**
|
|
1274
|
-
* @tsplus
|
|
1066
|
+
* @tsplus pipeable fncts.Conc takeWhile
|
|
1275
1067
|
*/
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
while (i < arr.length && p(arr[i])) {
|
|
1290
|
-
i++;
|
|
1068
|
+
function takeWhile(p) {
|
|
1069
|
+
return self => {
|
|
1070
|
+
void 0;
|
|
1071
|
+
switch (self._tag) {
|
|
1072
|
+
case "Chunk" /* ConcTag.Chunk */:
|
|
1073
|
+
{
|
|
1074
|
+
const arr = self.arrayLike();
|
|
1075
|
+
let i = 0;
|
|
1076
|
+
while (i < arr.length && p(arr[i])) {
|
|
1077
|
+
i++;
|
|
1078
|
+
}
|
|
1079
|
+
return self.take(i);
|
|
1291
1080
|
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
if (!p(array[j])) {
|
|
1309
|
-
cont = false;
|
|
1310
|
-
} else {
|
|
1311
|
-
i++;
|
|
1312
|
-
j++;
|
|
1081
|
+
default:
|
|
1082
|
+
{
|
|
1083
|
+
const iterator = self.arrayIterator();
|
|
1084
|
+
let result;
|
|
1085
|
+
let cont = true;
|
|
1086
|
+
let i = 0;
|
|
1087
|
+
while (cont && !(result = iterator.next()).done) {
|
|
1088
|
+
const array = result.value;
|
|
1089
|
+
let j = 0;
|
|
1090
|
+
while (cont && j < array.length) {
|
|
1091
|
+
if (!p(array[j])) {
|
|
1092
|
+
cont = false;
|
|
1093
|
+
} else {
|
|
1094
|
+
i++;
|
|
1095
|
+
j++;
|
|
1096
|
+
}
|
|
1313
1097
|
}
|
|
1314
1098
|
}
|
|
1099
|
+
return self.take(i);
|
|
1315
1100
|
}
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
const traverse = G => f => self => _traverse_1(self)(G)(f);
|
|
1105
|
+
exports.traverse = traverse;
|
|
1106
|
+
const traverseWithIndex = G => f => self => _traverseWithIndex_1(self)(G)(f);
|
|
1107
|
+
exports.traverseWithIndex = traverseWithIndex;
|
|
1108
|
+
function _traverseWithIndex_1(self) {
|
|
1109
|
+
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);
|
|
1320
1110
|
}
|
|
1321
1111
|
/**
|
|
1322
1112
|
* @tsplus getter fncts.Conc traverse
|
|
1323
1113
|
*/
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
/**
|
|
1328
|
-
* @tsplus getter fncts.Conc traverseWithIndex
|
|
1329
|
-
*/
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
exports.traverse = traverse;
|
|
1333
|
-
const traverseWithIndex_1 = /*#__PURE__*/tsplus_module_10.mkTraverseWithIndex_()(() => self => G => f => foldLeftWithIndex_1(self, G.pure(tsplus_module_2.empty()), (i, fbs, a) => G.zipWith(fbs, f(i, a), (bs, b) => append_1(bs, b))));
|
|
1334
|
-
const traverseWithIndex = traverseWithIndex_1;
|
|
1114
|
+
function _traverse_1(self) {
|
|
1115
|
+
return G => f => _traverseWithIndex_1(self)(G)((_, a) => f(a));
|
|
1116
|
+
}
|
|
1335
1117
|
/**
|
|
1336
1118
|
* @tsplus getter fncts.Conc toBuffer
|
|
1337
1119
|
*/
|
|
1338
|
-
|
|
1339
|
-
exports.traverseWithIndex = traverseWithIndex;
|
|
1340
|
-
|
|
1341
1120
|
function toBuffer(self) {
|
|
1342
1121
|
void 0;
|
|
1343
1122
|
return self.arrayLike();
|
|
1344
1123
|
}
|
|
1345
1124
|
/**
|
|
1346
|
-
* @tsplus
|
|
1125
|
+
* @tsplus static fncts.ConcOps unfold
|
|
1347
1126
|
*/
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
1127
|
function unfold(b, f) {
|
|
1351
1128
|
const out = builder_1();
|
|
1352
1129
|
let bb = b;
|
|
1353
|
-
|
|
1354
1130
|
while (true) {
|
|
1355
1131
|
const mt = f(bb);
|
|
1356
|
-
|
|
1357
1132
|
if (tsplus_module_5.isJust(mt)) {
|
|
1358
1133
|
const [a, b] = mt.value;
|
|
1359
1134
|
out.append(a);
|
|
@@ -1364,14 +1139,14 @@ function unfold(b, f) {
|
|
|
1364
1139
|
}
|
|
1365
1140
|
}
|
|
1366
1141
|
/**
|
|
1367
|
-
* @tsplus
|
|
1368
|
-
* @tsplus index fncts.Conc
|
|
1142
|
+
* @tsplus pipeable fncts.Conc unsafeGet
|
|
1143
|
+
* @tsplus pipeable-index fncts.Conc
|
|
1369
1144
|
*/
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1145
|
+
function unsafeGet_1(n) {
|
|
1146
|
+
return self => {
|
|
1147
|
+
void 0;
|
|
1148
|
+
return self.get(n);
|
|
1149
|
+
};
|
|
1375
1150
|
}
|
|
1376
1151
|
/**
|
|
1377
1152
|
* Returns the first element of this Conc. Note that this method is partial
|
|
@@ -1382,8 +1157,6 @@ function unsafeGet_1(self, n) {
|
|
|
1382
1157
|
*
|
|
1383
1158
|
* @tsplus getter fncts.Conc unsafeHead
|
|
1384
1159
|
*/
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
1160
|
function unsafeHead_1(as) {
|
|
1388
1161
|
void 0;
|
|
1389
1162
|
return as.get(0);
|
|
@@ -1395,118 +1168,107 @@ function unsafeHead_1(as) {
|
|
|
1395
1168
|
*
|
|
1396
1169
|
* @tsplus getter fncts.Conc unsafeTail
|
|
1397
1170
|
*/
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
1171
|
function unsafeTail_1(self) {
|
|
1401
1172
|
if (self.length === 0) {
|
|
1402
|
-
throw new
|
|
1173
|
+
throw new tsplus_module_11.ArrayIndexOutOfBoundsError("Chunk.unsafeTail access to 1");
|
|
1403
1174
|
}
|
|
1404
|
-
|
|
1405
|
-
return drop_1(self, 1);
|
|
1175
|
+
return drop_1(1)(self);
|
|
1406
1176
|
}
|
|
1407
1177
|
/**
|
|
1408
|
-
* @tsplus
|
|
1178
|
+
* @tsplus pipeable fncts.Conc unsafeUpdateAt
|
|
1409
1179
|
*/
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1180
|
+
function unsafeUpdateAt_1(i, a) {
|
|
1181
|
+
return self => {
|
|
1182
|
+
void 0;
|
|
1183
|
+
return self.update(i, a);
|
|
1184
|
+
};
|
|
1415
1185
|
}
|
|
1416
1186
|
/**
|
|
1417
|
-
* @tsplus
|
|
1187
|
+
* @tsplus pipeable fncts.Conc updateAt
|
|
1418
1188
|
*/
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
}
|
|
1189
|
+
function updateAt(i, a) {
|
|
1190
|
+
return self => {
|
|
1191
|
+
try {
|
|
1192
|
+
return tsplus_module_6.just(unsafeUpdateAt_1(i, a)(self));
|
|
1193
|
+
} catch {
|
|
1194
|
+
return tsplus_module_6.nothing();
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1427
1197
|
}
|
|
1428
1198
|
/**
|
|
1429
|
-
* @tsplus
|
|
1199
|
+
* @tsplus pipeable fncts.Conc zip
|
|
1430
1200
|
*/
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1201
|
+
function zip(fb) {
|
|
1202
|
+
return self => {
|
|
1203
|
+
return zipWith_1(fb, _function.tuple)(self);
|
|
1204
|
+
};
|
|
1435
1205
|
}
|
|
1436
1206
|
/**
|
|
1437
|
-
* @tsplus
|
|
1207
|
+
* @tsplus pipeable fncts.Conc zipWith
|
|
1438
1208
|
*/
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
rightLength = right.value.length;
|
|
1474
|
-
k = 0;
|
|
1209
|
+
function zipWith_1(fb, f) {
|
|
1210
|
+
return self => {
|
|
1211
|
+
void 0;
|
|
1212
|
+
void 0;
|
|
1213
|
+
const length = Math.min(self.length, fb.length);
|
|
1214
|
+
if (length === 0) {
|
|
1215
|
+
return tsplus_module_2.empty();
|
|
1216
|
+
} else {
|
|
1217
|
+
const leftIterator = self.arrayIterator();
|
|
1218
|
+
const rightIterator = fb.arrayIterator();
|
|
1219
|
+
const out = builder_1();
|
|
1220
|
+
let left = null;
|
|
1221
|
+
let right = null;
|
|
1222
|
+
let leftLength = 0;
|
|
1223
|
+
let rightLength = 0;
|
|
1224
|
+
let i = 0;
|
|
1225
|
+
let j = 0;
|
|
1226
|
+
let k = 0;
|
|
1227
|
+
while (i < length) {
|
|
1228
|
+
if (j < leftLength && k < rightLength) {
|
|
1229
|
+
const a = left.value[j];
|
|
1230
|
+
const b = right.value[k];
|
|
1231
|
+
const c = f(a, b);
|
|
1232
|
+
out.append(c);
|
|
1233
|
+
i++;
|
|
1234
|
+
j++;
|
|
1235
|
+
k++;
|
|
1236
|
+
} else if (j === leftLength && !(left = leftIterator.next()).done) {
|
|
1237
|
+
leftLength = left.value.length;
|
|
1238
|
+
j = 0;
|
|
1239
|
+
} else if (k === rightLength && !(right = rightIterator.next()).done) {
|
|
1240
|
+
rightLength = right.value.length;
|
|
1241
|
+
k = 0;
|
|
1242
|
+
}
|
|
1475
1243
|
}
|
|
1244
|
+
return out.result();
|
|
1476
1245
|
}
|
|
1477
|
-
|
|
1478
|
-
return out.result();
|
|
1479
|
-
}
|
|
1246
|
+
};
|
|
1480
1247
|
}
|
|
1481
1248
|
/**
|
|
1482
1249
|
* @tsplus getter fncts.Conc zipWithIndex
|
|
1483
1250
|
*/
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
1251
|
function zipWithIndex(self) {
|
|
1487
|
-
return zipWithIndexOffset_1(
|
|
1252
|
+
return zipWithIndexOffset_1(0)(self);
|
|
1488
1253
|
}
|
|
1489
1254
|
/**
|
|
1490
|
-
* @tsplus
|
|
1255
|
+
* @tsplus pipeable fncts.Conc zipWithIndexOffset
|
|
1491
1256
|
*/
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
for (let j = 0; i < len; j++, i++) {
|
|
1506
|
-
out.append([array[j], i]);
|
|
1257
|
+
function zipWithIndexOffset_1(offset) {
|
|
1258
|
+
return as => {
|
|
1259
|
+
void 0;
|
|
1260
|
+
const iterator = as.arrayIterator();
|
|
1261
|
+
let next;
|
|
1262
|
+
let i = offset;
|
|
1263
|
+
const out = builder_1();
|
|
1264
|
+
while (!(next = iterator.next()).done) {
|
|
1265
|
+
const array = next.value;
|
|
1266
|
+
const len = array.length;
|
|
1267
|
+
for (let j = 0; i < len; j++, i++) {
|
|
1268
|
+
out.append([array[j], i]);
|
|
1269
|
+
}
|
|
1507
1270
|
}
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
return out.result();
|
|
1271
|
+
return out.result();
|
|
1272
|
+
};
|
|
1511
1273
|
}
|
|
1512
1274
|
//# sourceMappingURL=api.cjs.map
|