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