@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
|
@@ -17,7 +17,6 @@ exports.elem = elem;
|
|
|
17
17
|
exports.emptyPushable = exports.empty = void 0;
|
|
18
18
|
exports.equals = equals;
|
|
19
19
|
exports.every = every;
|
|
20
|
-
exports.exists = void 0;
|
|
21
20
|
exports.find = find;
|
|
22
21
|
exports.findIndex = void 0;
|
|
23
22
|
exports.findLast = findLast;
|
|
@@ -61,7 +60,7 @@ exports.replicate = replicate;
|
|
|
61
60
|
exports.reverse = reverse;
|
|
62
61
|
exports.scanLeft = scanLeft;
|
|
63
62
|
exports.single = single;
|
|
64
|
-
exports.slice = void 0;
|
|
63
|
+
exports.some = exports.slice = void 0;
|
|
65
64
|
exports.sort = sort;
|
|
66
65
|
exports.splitAt = exports.sortWith = void 0;
|
|
67
66
|
exports.splitWhen = splitWhen;
|
|
@@ -76,25 +75,15 @@ exports.traverseWithIndex = exports.traverse = void 0;
|
|
|
76
75
|
exports.unfold = unfold;
|
|
77
76
|
exports.uniq = uniq;
|
|
78
77
|
exports.vector = exports.updateAt = exports.unsafeLast = exports.unsafeHead = exports.unsafeGet = exports.unsafeFindLast = exports.unsafeFind = void 0;
|
|
79
|
-
|
|
80
78
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Vector"));
|
|
81
|
-
|
|
82
79
|
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Vector/internal"));
|
|
83
|
-
|
|
84
|
-
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass/Equatable/api"));
|
|
85
|
-
|
|
80
|
+
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Equatable/api"));
|
|
86
81
|
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Vector/definition"));
|
|
87
|
-
|
|
88
82
|
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
|
89
|
-
|
|
90
83
|
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/mutable/ListBuffer"));
|
|
91
|
-
|
|
92
84
|
var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/definition"));
|
|
93
|
-
|
|
94
85
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
95
|
-
|
|
96
86
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
97
|
-
|
|
98
87
|
const append = append_1;
|
|
99
88
|
exports.append = append;
|
|
100
89
|
const concat = concat_1;
|
|
@@ -105,8 +94,8 @@ const empty = empty_1;
|
|
|
105
94
|
exports.empty = empty;
|
|
106
95
|
const emptyPushable = emptyPushable_1;
|
|
107
96
|
exports.emptyPushable = emptyPushable;
|
|
108
|
-
const
|
|
109
|
-
exports.
|
|
97
|
+
const some = some_1;
|
|
98
|
+
exports.some = some;
|
|
110
99
|
const findIndex = findIndex_1;
|
|
111
100
|
exports.findIndex = findIndex;
|
|
112
101
|
const flatten = flatten_1;
|
|
@@ -153,7 +142,6 @@ const updateAt = updateAt_1;
|
|
|
153
142
|
exports.updateAt = updateAt;
|
|
154
143
|
const vector = vector_1;
|
|
155
144
|
exports.vector = vector;
|
|
156
|
-
|
|
157
145
|
/**
|
|
158
146
|
* Appends an element to the end of a Vector and returns the new Vector.
|
|
159
147
|
*
|
|
@@ -163,16 +151,14 @@ exports.vector = vector;
|
|
|
163
151
|
* @tsplus pipeable-operator fncts.Vector +
|
|
164
152
|
*/
|
|
165
153
|
function append_1(a) {
|
|
166
|
-
return
|
|
167
|
-
const suffixSize = (0, tsplus_module_2.getSuffixSize)(
|
|
168
|
-
|
|
154
|
+
return self => {
|
|
155
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(self);
|
|
169
156
|
if (suffixSize < 32) {
|
|
170
|
-
return new tsplus_module_1.Vector((0, tsplus_module_2.incrementSuffix)(
|
|
157
|
+
return new tsplus_module_1.Vector((0, tsplus_module_2.incrementSuffix)(self.bits), self.offset, self.length + 1, self.prefix, self.root, (0, tsplus_module_2.affixPush)(a, self.suffix, suffixSize));
|
|
171
158
|
}
|
|
172
|
-
|
|
173
159
|
const newSuffix = [a];
|
|
174
|
-
const newVector = mutableClone_1(
|
|
175
|
-
(0, tsplus_module_2.appendNodeToTree)(newVector,
|
|
160
|
+
const newVector = mutableClone_1(self);
|
|
161
|
+
(0, tsplus_module_2.appendNodeToTree)(newVector, self.suffix);
|
|
176
162
|
newVector.suffix = newSuffix;
|
|
177
163
|
newVector.length++;
|
|
178
164
|
newVector.bits = (0, tsplus_module_2.setSuffix)(1, newVector.bits);
|
|
@@ -185,11 +171,9 @@ function append_1(a) {
|
|
|
185
171
|
*
|
|
186
172
|
* @tsplus pipeable fncts.Vector flatMap
|
|
187
173
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
174
|
function flatMap(f) {
|
|
191
|
-
return
|
|
192
|
-
return flatten_1(map_1(f)(
|
|
175
|
+
return self => {
|
|
176
|
+
return flatten_1(map_1(f)(self));
|
|
193
177
|
};
|
|
194
178
|
}
|
|
195
179
|
/**
|
|
@@ -197,10 +181,8 @@ function flatMap(f) {
|
|
|
197
181
|
*
|
|
198
182
|
* @tsplus pipeable fncts.Vector chunksOf
|
|
199
183
|
*/
|
|
200
|
-
|
|
201
|
-
|
|
202
184
|
function chunksOf(size) {
|
|
203
|
-
return
|
|
185
|
+
return self => {
|
|
204
186
|
const {
|
|
205
187
|
buffer,
|
|
206
188
|
l2
|
|
@@ -212,7 +194,6 @@ function chunksOf(size) {
|
|
|
212
194
|
l2
|
|
213
195
|
}, elem) => {
|
|
214
196
|
tsplus_module_2.push(elem)(buffer);
|
|
215
|
-
|
|
216
197
|
if (buffer.length === size) {
|
|
217
198
|
return {
|
|
218
199
|
l2: tsplus_module_2.push(buffer)(l2),
|
|
@@ -224,11 +205,10 @@ function chunksOf(size) {
|
|
|
224
205
|
buffer
|
|
225
206
|
};
|
|
226
207
|
}
|
|
227
|
-
})(
|
|
208
|
+
})(self);
|
|
228
209
|
return buffer.length === 0 ? l2 : tsplus_module_2.push(buffer)(l2);
|
|
229
210
|
};
|
|
230
211
|
}
|
|
231
|
-
|
|
232
212
|
function concat_1(that) {
|
|
233
213
|
return self => {
|
|
234
214
|
if (self.length === 0) {
|
|
@@ -236,22 +216,18 @@ function concat_1(that) {
|
|
|
236
216
|
} else if (that.length === 0) {
|
|
237
217
|
return self;
|
|
238
218
|
}
|
|
239
|
-
|
|
240
219
|
const newSize = self.length + that.length;
|
|
241
220
|
const rightSuffixSize = (0, tsplus_module_2.getSuffixSize)(that);
|
|
242
221
|
let newVector = mutableClone_1(self);
|
|
243
|
-
|
|
244
222
|
if (that.root === undefined) {
|
|
245
223
|
// right is nothing but a prefix and a suffix
|
|
246
224
|
const nrOfAffixes = (0, tsplus_module_2.concatAffixes)(self, that);
|
|
247
|
-
|
|
248
225
|
for (let i = 0; i < nrOfAffixes; ++i) {
|
|
249
226
|
newVector = (0, tsplus_module_2.appendNodeToTree)(newVector, tsplus_module_2.concatBuffer[i]);
|
|
250
|
-
newVector.length += tsplus_module_2.concatBuffer[i].length;
|
|
251
|
-
|
|
227
|
+
newVector.length += tsplus_module_2.concatBuffer[i].length;
|
|
228
|
+
// wipe pointer, otherwise it might end up keeping the array alive
|
|
252
229
|
tsplus_module_2.concatBuffer[i] = undefined;
|
|
253
230
|
}
|
|
254
|
-
|
|
255
231
|
newVector.length = newSize;
|
|
256
232
|
newVector.suffix = tsplus_module_2.concatBuffer[nrOfAffixes];
|
|
257
233
|
newVector.bits = (0, tsplus_module_2.setSuffix)(tsplus_module_2.concatBuffer[nrOfAffixes].length, newVector.bits);
|
|
@@ -259,12 +235,10 @@ function concat_1(that) {
|
|
|
259
235
|
return newVector;
|
|
260
236
|
} else {
|
|
261
237
|
const leftSuffixSize = (0, tsplus_module_2.getSuffixSize)(self);
|
|
262
|
-
|
|
263
238
|
if (leftSuffixSize > 0) {
|
|
264
239
|
newVector = (0, tsplus_module_2.appendNodeToTree)(newVector, self.suffix.slice(0, leftSuffixSize));
|
|
265
240
|
newVector.length += leftSuffixSize;
|
|
266
241
|
}
|
|
267
|
-
|
|
268
242
|
newVector = (0, tsplus_module_2.appendNodeToTree)(newVector, that.prefix.slice(0, (0, tsplus_module_2.getPrefixSize)(that)).reverse());
|
|
269
243
|
const newNode = (0, tsplus_module_2.concatSubTree)(newVector.root, (0, tsplus_module_2.getDepth)(newVector), that.root, (0, tsplus_module_2.getDepth)(that), true);
|
|
270
244
|
const newDepth = (0, tsplus_module_2.getHeight)(newNode);
|
|
@@ -278,12 +252,10 @@ function concat_1(that) {
|
|
|
278
252
|
}
|
|
279
253
|
};
|
|
280
254
|
}
|
|
281
|
-
|
|
282
255
|
const containsState = {
|
|
283
256
|
element: undefined,
|
|
284
257
|
result: false
|
|
285
258
|
};
|
|
286
|
-
|
|
287
259
|
function containsCb(value, state) {
|
|
288
260
|
return !(state.result = value === state.element);
|
|
289
261
|
}
|
|
@@ -294,13 +266,11 @@ function containsCb(value, state) {
|
|
|
294
266
|
* @complexity O(n)
|
|
295
267
|
* @tsplus pipeable fncts.Vector contains
|
|
296
268
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
299
269
|
function contains(element) {
|
|
300
|
-
return
|
|
270
|
+
return self => {
|
|
301
271
|
containsState.element = element;
|
|
302
272
|
containsState.result = false;
|
|
303
|
-
return (0, tsplus_module_2.foldLeftCb)(containsCb, containsState,
|
|
273
|
+
return (0, tsplus_module_2.foldLeftCb)(containsCb, containsState, self).result;
|
|
304
274
|
};
|
|
305
275
|
}
|
|
306
276
|
/**
|
|
@@ -309,11 +279,9 @@ function contains(element) {
|
|
|
309
279
|
* @complexity `O(log(n))`
|
|
310
280
|
* @tsplus pipeable fncts.Vector drop
|
|
311
281
|
*/
|
|
312
|
-
|
|
313
|
-
|
|
314
282
|
function drop(n) {
|
|
315
|
-
return
|
|
316
|
-
return slice_1(n,
|
|
283
|
+
return self => {
|
|
284
|
+
return slice_1(n, self.length)(self);
|
|
317
285
|
};
|
|
318
286
|
}
|
|
319
287
|
/**
|
|
@@ -322,11 +290,9 @@ function drop(n) {
|
|
|
322
290
|
* @complexity `O(log(n))`
|
|
323
291
|
* @tsplus pipeable fncts.Vector dropLast
|
|
324
292
|
*/
|
|
325
|
-
|
|
326
|
-
|
|
327
293
|
function dropLast(n) {
|
|
328
|
-
return
|
|
329
|
-
return slice_1(0,
|
|
294
|
+
return self => {
|
|
295
|
+
return slice_1(0, self.length - n)(self);
|
|
330
296
|
};
|
|
331
297
|
}
|
|
332
298
|
/**
|
|
@@ -335,10 +301,8 @@ function dropLast(n) {
|
|
|
335
301
|
* @complexity `O(n)`
|
|
336
302
|
* @tsplus getter fncts.Vector dropRepeats
|
|
337
303
|
*/
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
function dropRepeats(as) {
|
|
341
|
-
return dropRepeatsWith_1(tsplus_module_3.strictEquals)(as);
|
|
304
|
+
function dropRepeats(self) {
|
|
305
|
+
return dropRepeatsWith_1(tsplus_module_3.strictEquals)(self);
|
|
342
306
|
}
|
|
343
307
|
/**
|
|
344
308
|
* Returns a new Vector without repeated elements by using the given
|
|
@@ -347,14 +311,11 @@ function dropRepeats(as) {
|
|
|
347
311
|
* @complexity `O(n)`
|
|
348
312
|
* @tsplus pipeable fncts.Vector dropRepeatsWith
|
|
349
313
|
*/
|
|
350
|
-
|
|
351
|
-
|
|
352
314
|
function dropRepeatsWith_1(predicate) {
|
|
353
|
-
return
|
|
354
|
-
return foldLeft_1(emptyPushable_1(), (acc, a) => acc.length !== 0 && predicate(unsafeLast_1(acc), a) ? acc : tsplus_module_2.push(a)(acc))(
|
|
315
|
+
return self => {
|
|
316
|
+
return foldLeft_1(emptyPushable_1(), (acc, a) => acc.length !== 0 && predicate(unsafeLast_1(acc), a) ? acc : tsplus_module_2.push(a)(acc))(self);
|
|
355
317
|
};
|
|
356
318
|
}
|
|
357
|
-
|
|
358
319
|
function findNotIndexCb(value, state) {
|
|
359
320
|
if (state.predicate(value)) {
|
|
360
321
|
++state.index;
|
|
@@ -371,31 +332,24 @@ function findNotIndexCb(value, state) {
|
|
|
371
332
|
* satisfying the predicate.
|
|
372
333
|
* @tsplus pipeable fncts.Vector dropWhile
|
|
373
334
|
*/
|
|
374
|
-
|
|
375
|
-
|
|
376
335
|
function dropWhile(predicate) {
|
|
377
|
-
return
|
|
336
|
+
return self => {
|
|
378
337
|
const {
|
|
379
338
|
index
|
|
380
339
|
} = (0, tsplus_module_2.foldLeftCb)(findNotIndexCb, {
|
|
381
340
|
predicate,
|
|
382
341
|
index: 0
|
|
383
|
-
},
|
|
384
|
-
return slice_1(index,
|
|
342
|
+
}, self);
|
|
343
|
+
return slice_1(index, self.length)(self);
|
|
385
344
|
};
|
|
386
345
|
}
|
|
387
|
-
|
|
388
346
|
function elemCb(value, state) {
|
|
389
|
-
return !(state.result = state.equals(
|
|
347
|
+
return !(state.result = state.equals(state.element)(value));
|
|
390
348
|
}
|
|
391
349
|
/**
|
|
392
350
|
* @tsplus pipeable fncts.Vector elem
|
|
393
351
|
*/
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
function elem(a,
|
|
397
|
-
/** @tsplus auto */
|
|
398
|
-
E) {
|
|
352
|
+
function elem(a, /** @tsplus auto */E) {
|
|
399
353
|
const elemState = {
|
|
400
354
|
equals: E.equals,
|
|
401
355
|
element: undefined,
|
|
@@ -412,24 +366,20 @@ E) {
|
|
|
412
366
|
* @complexity O(n)
|
|
413
367
|
* @tsplus pipeable fncts.Vector equals
|
|
414
368
|
*/
|
|
415
|
-
|
|
416
|
-
|
|
417
369
|
function equals(that) {
|
|
418
370
|
return self => {
|
|
419
371
|
return tsplus_module_4.corresponds(that, tsplus_module_3.strictEquals)(self);
|
|
420
372
|
};
|
|
421
373
|
}
|
|
422
|
-
|
|
423
374
|
function everyCb(value, state) {
|
|
424
375
|
return state.result = state.predicate(value);
|
|
425
376
|
}
|
|
426
|
-
|
|
427
377
|
function every(predicate) {
|
|
428
|
-
return
|
|
378
|
+
return self => {
|
|
429
379
|
return (0, tsplus_module_2.foldLeftCb)(everyCb, {
|
|
430
380
|
predicate,
|
|
431
381
|
result: true
|
|
432
|
-
},
|
|
382
|
+
}, self).result;
|
|
433
383
|
};
|
|
434
384
|
}
|
|
435
385
|
/**
|
|
@@ -438,21 +388,16 @@ function every(predicate) {
|
|
|
438
388
|
* @complexity O(1)
|
|
439
389
|
* @tsplus static fncts.VectorOps empty
|
|
440
390
|
*/
|
|
441
|
-
|
|
442
|
-
|
|
443
391
|
function empty_1() {
|
|
444
392
|
return new tsplus_module_1.Vector(0, 0, 0, tsplus_module_2.emptyAffix, undefined, tsplus_module_2.emptyAffix);
|
|
445
393
|
}
|
|
446
394
|
/**
|
|
447
395
|
* @tsplus static fncts.VectorOps emptyPushable
|
|
448
396
|
*/
|
|
449
|
-
|
|
450
|
-
|
|
451
397
|
function emptyPushable_1() {
|
|
452
398
|
return new tsplus_module_1.Vector(0, 0, 0, [], undefined, []);
|
|
453
399
|
}
|
|
454
|
-
|
|
455
|
-
function existsCb(value, state) {
|
|
400
|
+
function someCb(value, state) {
|
|
456
401
|
return !(state.result = state.predicate(value));
|
|
457
402
|
}
|
|
458
403
|
/**
|
|
@@ -461,16 +406,14 @@ function existsCb(value, state) {
|
|
|
461
406
|
*
|
|
462
407
|
* @complexity O(n)
|
|
463
408
|
*
|
|
464
|
-
* @tsplus pipeable fncts.Vector
|
|
409
|
+
* @tsplus pipeable fncts.Vector some
|
|
465
410
|
*/
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
return as => {
|
|
470
|
-
return (0, tsplus_module_2.foldLeftCb)(existsCb, {
|
|
411
|
+
function some_1(predicate) {
|
|
412
|
+
return self => {
|
|
413
|
+
return (0, tsplus_module_2.foldLeftCb)(someCb, {
|
|
471
414
|
predicate,
|
|
472
415
|
result: false
|
|
473
|
-
},
|
|
416
|
+
}, self).result;
|
|
474
417
|
};
|
|
475
418
|
}
|
|
476
419
|
/**
|
|
@@ -480,14 +423,11 @@ function exists_1(predicate) {
|
|
|
480
423
|
* @complexity O(n)
|
|
481
424
|
* @tsplus pipeable fncts.Vector find
|
|
482
425
|
*/
|
|
483
|
-
|
|
484
|
-
|
|
485
426
|
function find(predicate) {
|
|
486
|
-
return
|
|
487
|
-
return tsplus_module_5.fromNullable(unsafeFind_1(predicate)(
|
|
427
|
+
return self => {
|
|
428
|
+
return tsplus_module_5.fromNullable(unsafeFind_1(predicate)(self));
|
|
488
429
|
};
|
|
489
430
|
}
|
|
490
|
-
|
|
491
431
|
function findIndexCb(value, state) {
|
|
492
432
|
++state.index;
|
|
493
433
|
return !(state.found = state.predicate(value));
|
|
@@ -500,10 +440,8 @@ function findIndexCb(value, state) {
|
|
|
500
440
|
* @complexity O(n)
|
|
501
441
|
* @tsplus pipeable fncts.Vector findIndex
|
|
502
442
|
*/
|
|
503
|
-
|
|
504
|
-
|
|
505
443
|
function findIndex_1(predicate) {
|
|
506
|
-
return
|
|
444
|
+
return self => {
|
|
507
445
|
const {
|
|
508
446
|
found,
|
|
509
447
|
index
|
|
@@ -511,7 +449,7 @@ function findIndex_1(predicate) {
|
|
|
511
449
|
predicate,
|
|
512
450
|
found: false,
|
|
513
451
|
index: -1
|
|
514
|
-
},
|
|
452
|
+
}, self);
|
|
515
453
|
return found ? index : -1;
|
|
516
454
|
};
|
|
517
455
|
}
|
|
@@ -522,11 +460,9 @@ function findIndex_1(predicate) {
|
|
|
522
460
|
* @complexity O(n)
|
|
523
461
|
* @tsplus pipeable fncts.Vector findLast
|
|
524
462
|
*/
|
|
525
|
-
|
|
526
|
-
|
|
527
463
|
function findLast(predicate) {
|
|
528
|
-
return
|
|
529
|
-
return tsplus_module_5.fromNullable(unsafeFindLast_1(predicate)(
|
|
464
|
+
return self => {
|
|
465
|
+
return tsplus_module_5.fromNullable(unsafeFindLast_1(predicate)(self));
|
|
530
466
|
};
|
|
531
467
|
}
|
|
532
468
|
/**
|
|
@@ -537,10 +473,8 @@ function findLast(predicate) {
|
|
|
537
473
|
* @complexity O(n)
|
|
538
474
|
* @tsplus pipeable fncts.Vector findLastIndex
|
|
539
475
|
*/
|
|
540
|
-
|
|
541
|
-
|
|
542
476
|
function findLastIndex(predicate) {
|
|
543
|
-
return
|
|
477
|
+
return self => {
|
|
544
478
|
const {
|
|
545
479
|
found,
|
|
546
480
|
index
|
|
@@ -548,7 +482,7 @@ function findLastIndex(predicate) {
|
|
|
548
482
|
predicate,
|
|
549
483
|
found: false,
|
|
550
484
|
index: -0
|
|
551
|
-
},
|
|
485
|
+
}, self);
|
|
552
486
|
return found ? index : -1;
|
|
553
487
|
};
|
|
554
488
|
}
|
|
@@ -560,15 +494,11 @@ function findLastIndex(predicate) {
|
|
|
560
494
|
*
|
|
561
495
|
* @tsplus getter fncts.Vector flatten
|
|
562
496
|
*/
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
function flatten_1(mma) {
|
|
566
|
-
return foldLeft_1(empty_1(), (acc, a) => concat_1(a)(acc))(mma);
|
|
497
|
+
function flatten_1(self) {
|
|
498
|
+
return foldLeft_1(empty_1(), (acc, a) => concat_1(a)(acc))(self);
|
|
567
499
|
}
|
|
568
|
-
|
|
569
500
|
function from(sequence) {
|
|
570
501
|
const l = emptyPushable_1();
|
|
571
|
-
|
|
572
502
|
if (sequence.length > 0 && (sequence[0] !== undefined || 0 in sequence)) {
|
|
573
503
|
for (let i = 0; i < sequence.length; ++i) {
|
|
574
504
|
tsplus_module_2.push(sequence[i])(l);
|
|
@@ -576,12 +506,10 @@ function from(sequence) {
|
|
|
576
506
|
} else if (Symbol.iterator in sequence) {
|
|
577
507
|
const iterator = sequence[Symbol.iterator]();
|
|
578
508
|
let cur;
|
|
579
|
-
|
|
580
509
|
while (!(cur = iterator.next()).done) {
|
|
581
510
|
tsplus_module_2.push(cur.value)(l);
|
|
582
511
|
}
|
|
583
512
|
}
|
|
584
|
-
|
|
585
513
|
return l;
|
|
586
514
|
}
|
|
587
515
|
/**
|
|
@@ -589,29 +517,23 @@ function from(sequence) {
|
|
|
589
517
|
*
|
|
590
518
|
* @tsplus pipeable fncts.Vector foldLeft
|
|
591
519
|
*/
|
|
592
|
-
|
|
593
|
-
|
|
594
520
|
function foldLeft_1(initial, f) {
|
|
595
|
-
return
|
|
596
|
-
return foldLeftWithIndex_1(initial, (_, b, a) => f(b, a))(
|
|
521
|
+
return self => {
|
|
522
|
+
return foldLeftWithIndex_1(initial, (_, b, a) => f(b, a))(self);
|
|
597
523
|
};
|
|
598
524
|
}
|
|
599
525
|
/**
|
|
600
526
|
* @tsplus pipeable fncts.Vector foldLeftWithIndex
|
|
601
527
|
*/
|
|
602
|
-
|
|
603
|
-
|
|
604
528
|
function foldLeftWithIndex_1(b, f) {
|
|
605
|
-
return
|
|
606
|
-
const suffixSize = (0, tsplus_module_2.getSuffixSize)(
|
|
607
|
-
const prefixSize = (0, tsplus_module_2.getPrefixSize)(
|
|
608
|
-
let [acc, index] = (0, tsplus_module_2.foldLeftPrefix)(f, b,
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
[acc, index] = (0, tsplus_module_2.foldLeftNode)(f, acc, fa.root, (0, tsplus_module_2.getDepth)(fa), index);
|
|
529
|
+
return self => {
|
|
530
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(self);
|
|
531
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(self);
|
|
532
|
+
let [acc, index] = (0, tsplus_module_2.foldLeftPrefix)(f, b, self.prefix, prefixSize);
|
|
533
|
+
if (self.root !== undefined) {
|
|
534
|
+
[acc, index] = (0, tsplus_module_2.foldLeftNode)(f, acc, self.root, (0, tsplus_module_2.getDepth)(self), index);
|
|
612
535
|
}
|
|
613
|
-
|
|
614
|
-
return (0, tsplus_module_2.foldLeftSuffix)(f, acc, fa.suffix, suffixSize, index)[0];
|
|
536
|
+
return (0, tsplus_module_2.foldLeftSuffix)(f, acc, self.suffix, suffixSize, index)[0];
|
|
615
537
|
};
|
|
616
538
|
}
|
|
617
539
|
/**
|
|
@@ -628,56 +550,44 @@ function foldLeftWithIndex_1(b, f) {
|
|
|
628
550
|
* const ys = V.vector(2, 4, 6);
|
|
629
551
|
* foldlWhile(isOdd, (n, m) => n + m, 111, ys) //=> 111
|
|
630
552
|
*/
|
|
631
|
-
|
|
632
|
-
|
|
633
553
|
function foldWhileCb(a, state, i) {
|
|
634
554
|
if (state.predicate(state.result) === false) {
|
|
635
555
|
return false;
|
|
636
556
|
}
|
|
637
|
-
|
|
638
557
|
state.result = state.f(i, state.result, a);
|
|
639
558
|
return true;
|
|
640
559
|
}
|
|
641
560
|
/**
|
|
642
561
|
* @tsplus pipeable fncts.Vector foldLeftWhile
|
|
643
562
|
*/
|
|
644
|
-
|
|
645
|
-
|
|
646
563
|
function foldLeftWhile(b, cont, f) {
|
|
647
|
-
return
|
|
564
|
+
return self => {
|
|
648
565
|
if (!cont(b)) {
|
|
649
566
|
return b;
|
|
650
567
|
}
|
|
651
|
-
|
|
652
568
|
return (0, tsplus_module_2.foldLeftCb)(foldWhileCb, {
|
|
653
569
|
predicate: cont,
|
|
654
570
|
f,
|
|
655
571
|
result: b
|
|
656
|
-
},
|
|
572
|
+
}, self).result;
|
|
657
573
|
};
|
|
658
574
|
}
|
|
659
575
|
/**
|
|
660
576
|
* @tsplus pipeable fncts.Vector foldRightWhile
|
|
661
577
|
*/
|
|
662
|
-
|
|
663
|
-
|
|
664
578
|
function foldRightWhile(b, cont, f) {
|
|
665
|
-
return
|
|
579
|
+
return self => {
|
|
666
580
|
return (0, tsplus_module_2.foldRightCb)(foldWhileCb, {
|
|
667
581
|
predicate: cont,
|
|
668
582
|
result: b,
|
|
669
583
|
f: (i, b, a) => f(i, a, b)
|
|
670
|
-
},
|
|
584
|
+
}, self).result;
|
|
671
585
|
};
|
|
672
586
|
}
|
|
673
587
|
/**
|
|
674
588
|
* @tsplus pipeable fncts.Vector foldMap
|
|
675
589
|
*/
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
function foldMap(f,
|
|
679
|
-
/** @tsplus auto */
|
|
680
|
-
M) {
|
|
590
|
+
function foldMap(f, /** @tsplus auto */M) {
|
|
681
591
|
return self => {
|
|
682
592
|
return foldMapWithIndex_1((_, a) => f(a), M)(self);
|
|
683
593
|
};
|
|
@@ -685,13 +595,9 @@ M) {
|
|
|
685
595
|
/**
|
|
686
596
|
* @tsplus pipeable fncts.Vector foldMapWithIndex
|
|
687
597
|
*/
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
function foldMapWithIndex_1(f,
|
|
691
|
-
/** @tsplus auto */
|
|
692
|
-
M) {
|
|
598
|
+
function foldMapWithIndex_1(f, /** @tsplus auto */M) {
|
|
693
599
|
return self => {
|
|
694
|
-
return foldLeftWithIndex_1(M.nat, (i, b, a) => M.combine(
|
|
600
|
+
return foldLeftWithIndex_1(M.nat, (i, b, a) => M.combine(f(i, a))(b))(self);
|
|
695
601
|
};
|
|
696
602
|
}
|
|
697
603
|
/**
|
|
@@ -700,11 +606,9 @@ M) {
|
|
|
700
606
|
* @complexity O(n)
|
|
701
607
|
* @tsplus pipeable fncts.Vector foldRight
|
|
702
608
|
*/
|
|
703
|
-
|
|
704
|
-
|
|
705
609
|
function foldRight(initial, f) {
|
|
706
|
-
return
|
|
707
|
-
return foldRightWithIndex_1(initial, (_, a, b) => f(a, b))(
|
|
610
|
+
return self => {
|
|
611
|
+
return foldRightWithIndex_1(initial, (_, a, b) => f(a, b))(self);
|
|
708
612
|
};
|
|
709
613
|
}
|
|
710
614
|
/**
|
|
@@ -713,19 +617,15 @@ function foldRight(initial, f) {
|
|
|
713
617
|
* @complexity O(n)
|
|
714
618
|
* @tsplus pipeable fncts.Vector foldRightWithIndex
|
|
715
619
|
*/
|
|
716
|
-
|
|
717
|
-
|
|
718
620
|
function foldRightWithIndex_1(b, f) {
|
|
719
|
-
return
|
|
720
|
-
const suffixSize = (0, tsplus_module_2.getSuffixSize)(
|
|
721
|
-
const prefixSize = (0, tsplus_module_2.getPrefixSize)(
|
|
722
|
-
let [acc, j] = (0, tsplus_module_2.foldRightSuffix)(f, b,
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
[acc, j] = (0, tsplus_module_2.foldRightNode)(f, acc, fa.root, (0, tsplus_module_2.getDepth)(fa), j);
|
|
621
|
+
return self => {
|
|
622
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(self);
|
|
623
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(self);
|
|
624
|
+
let [acc, j] = (0, tsplus_module_2.foldRightSuffix)(f, b, self.suffix, suffixSize, self.length - 1);
|
|
625
|
+
if (self.root !== undefined) {
|
|
626
|
+
[acc, j] = (0, tsplus_module_2.foldRightNode)(f, acc, self.root, (0, tsplus_module_2.getDepth)(self), j);
|
|
726
627
|
}
|
|
727
|
-
|
|
728
|
-
return (0, tsplus_module_2.foldRightPrefix)(f, acc, fa.prefix, prefixSize, j)[0];
|
|
628
|
+
return (0, tsplus_module_2.foldRightPrefix)(f, acc, self.prefix, prefixSize, j)[0];
|
|
729
629
|
};
|
|
730
630
|
}
|
|
731
631
|
/**
|
|
@@ -740,21 +640,17 @@ function foldRightWithIndex_1(b, f) {
|
|
|
740
640
|
* @complexity O(n)
|
|
741
641
|
* @tsplus pipeable fncts.Vector forEach
|
|
742
642
|
*/
|
|
743
|
-
|
|
744
|
-
|
|
745
643
|
function forEach_1(f) {
|
|
746
|
-
return
|
|
747
|
-
foldLeft_1(undefined, (_, element) => f(element))(
|
|
644
|
+
return self => {
|
|
645
|
+
foldLeft_1(undefined, (_, element) => f(element))(self);
|
|
748
646
|
};
|
|
749
647
|
}
|
|
750
648
|
/**
|
|
751
649
|
* @tsplus pipeable fncts.Vector forEachWithIndex
|
|
752
650
|
*/
|
|
753
|
-
|
|
754
|
-
|
|
755
651
|
function forEachWithIndex(f) {
|
|
756
|
-
return
|
|
757
|
-
foldLeftWithIndex_1(undefined, (index, _, element) => f(index, element))(
|
|
652
|
+
return self => {
|
|
653
|
+
foldLeftWithIndex_1(undefined, (index, _, element) => f(index, element))(self);
|
|
758
654
|
};
|
|
759
655
|
}
|
|
760
656
|
/**
|
|
@@ -764,8 +660,6 @@ function forEachWithIndex(f) {
|
|
|
764
660
|
* @complexity O(log(n))
|
|
765
661
|
* @tsplus pipeable fncts.Vector get
|
|
766
662
|
*/
|
|
767
|
-
|
|
768
|
-
|
|
769
663
|
function get(index) {
|
|
770
664
|
return self => {
|
|
771
665
|
return tsplus_module_5.fromNullable(unsafeGet_1(index)(self));
|
|
@@ -781,10 +675,8 @@ function get(index) {
|
|
|
781
675
|
*
|
|
782
676
|
* @tsplus pipeable fncts.Vector groupWith
|
|
783
677
|
*/
|
|
784
|
-
|
|
785
|
-
|
|
786
678
|
function groupWith(f) {
|
|
787
|
-
return
|
|
679
|
+
return self => {
|
|
788
680
|
const result = emptyPushable_1();
|
|
789
681
|
let buffer = emptyPushable_1();
|
|
790
682
|
forEach_1(a => {
|
|
@@ -792,9 +684,8 @@ function groupWith(f) {
|
|
|
792
684
|
tsplus_module_2.push(buffer)(result);
|
|
793
685
|
buffer = emptyPushable_1();
|
|
794
686
|
}
|
|
795
|
-
|
|
796
687
|
tsplus_module_2.push(a)(buffer);
|
|
797
|
-
})(
|
|
688
|
+
})(self);
|
|
798
689
|
return buffer.length === 0 ? result : tsplus_module_2.push(buffer)(result);
|
|
799
690
|
};
|
|
800
691
|
}
|
|
@@ -804,12 +695,9 @@ function groupWith(f) {
|
|
|
804
695
|
* @complexity O(1)
|
|
805
696
|
* @tsplus getter fncts.Vector head
|
|
806
697
|
*/
|
|
807
|
-
|
|
808
|
-
|
|
809
698
|
function head(self) {
|
|
810
699
|
return tsplus_module_5.fromNullable(unsafeHead_1(self));
|
|
811
700
|
}
|
|
812
|
-
|
|
813
701
|
function indexOfCb(value, state) {
|
|
814
702
|
++state.index;
|
|
815
703
|
return !(state.found = tsplus_module_3.strictEquals(value, state.element));
|
|
@@ -821,16 +709,14 @@ function indexOfCb(value, state) {
|
|
|
821
709
|
* @complexity O(n)
|
|
822
710
|
* @tsplus pipeable fncts.Vector indexOf
|
|
823
711
|
*/
|
|
824
|
-
|
|
825
|
-
|
|
826
712
|
function indexOf(element) {
|
|
827
|
-
return
|
|
713
|
+
return self => {
|
|
828
714
|
const state = {
|
|
829
715
|
element,
|
|
830
716
|
found: false,
|
|
831
717
|
index: -1
|
|
832
718
|
};
|
|
833
|
-
(0, tsplus_module_2.foldLeftCb)(indexOfCb, state,
|
|
719
|
+
(0, tsplus_module_2.foldLeftCb)(indexOfCb, state, self);
|
|
834
720
|
return state.found ? state.index : -1;
|
|
835
721
|
};
|
|
836
722
|
}
|
|
@@ -840,11 +726,9 @@ function indexOf(element) {
|
|
|
840
726
|
* @complexity O(log(n))
|
|
841
727
|
* @tsplus pipeable fncts.Vector insertAt
|
|
842
728
|
*/
|
|
843
|
-
|
|
844
|
-
|
|
845
729
|
function insertAt(index, element) {
|
|
846
|
-
return
|
|
847
|
-
return concat_1(slice_1(index,
|
|
730
|
+
return self => {
|
|
731
|
+
return concat_1(slice_1(index, self.length)(self))(append_1(element)(slice_1(0, index)(self)));
|
|
848
732
|
};
|
|
849
733
|
}
|
|
850
734
|
/**
|
|
@@ -853,11 +737,9 @@ function insertAt(index, element) {
|
|
|
853
737
|
* @complexity `O(log(n))`
|
|
854
738
|
* @tsplus pipeable fncts.Vector insertAllAt
|
|
855
739
|
*/
|
|
856
|
-
|
|
857
|
-
|
|
858
740
|
function insertAllAt(index, elements) {
|
|
859
|
-
return
|
|
860
|
-
return concat_1(slice_1(index,
|
|
741
|
+
return self => {
|
|
742
|
+
return concat_1(slice_1(index, self.length)(self))(concat_1(elements)(slice_1(0, index)(self)));
|
|
861
743
|
};
|
|
862
744
|
}
|
|
863
745
|
/**
|
|
@@ -865,39 +747,31 @@ function insertAllAt(index, elements) {
|
|
|
865
747
|
*
|
|
866
748
|
* @tsplus pipeable fncts.Vector intersperse
|
|
867
749
|
*/
|
|
868
|
-
|
|
869
|
-
|
|
870
750
|
function intersperse(separator) {
|
|
871
|
-
return
|
|
872
|
-
return pop_1(foldLeft_1(emptyPushable_1(), (l2, a) => tsplus_module_2.push(separator)(tsplus_module_2.push(a)(l2)))(
|
|
751
|
+
return self => {
|
|
752
|
+
return pop_1(foldLeft_1(emptyPushable_1(), (l2, a) => tsplus_module_2.push(separator)(tsplus_module_2.push(a)(l2)))(self));
|
|
873
753
|
};
|
|
874
754
|
}
|
|
875
755
|
/**
|
|
876
756
|
* @tsplus fluent fncts.Vector isEmpty
|
|
877
757
|
*/
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
function isEmpty(l) {
|
|
881
|
-
return l.length === 0;
|
|
758
|
+
function isEmpty(self) {
|
|
759
|
+
return self.length === 0;
|
|
882
760
|
}
|
|
883
761
|
/**
|
|
884
762
|
* @tsplus fluent fncts.Vector isNonEmpty
|
|
885
763
|
*/
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
function isNonEmpty(l) {
|
|
889
|
-
return l.length > 0;
|
|
764
|
+
function isNonEmpty(self) {
|
|
765
|
+
return self.length > 0;
|
|
890
766
|
}
|
|
891
767
|
/**
|
|
892
768
|
* Concatenates the strings in the Vector separated by a specified separator.
|
|
893
769
|
*
|
|
894
770
|
* @tsplus pipeable fncts.Vector join
|
|
895
771
|
*/
|
|
896
|
-
|
|
897
|
-
|
|
898
772
|
function join(separator) {
|
|
899
|
-
return
|
|
900
|
-
return foldLeft_1("", (a, b) => a.length === 0 ? b : a + separator + b)(
|
|
773
|
+
return self => {
|
|
774
|
+
return foldLeft_1("", (a, b) => a.length === 0 ? b : a + separator + b)(self);
|
|
901
775
|
};
|
|
902
776
|
}
|
|
903
777
|
/**
|
|
@@ -906,10 +780,8 @@ function join(separator) {
|
|
|
906
780
|
* @complexity O(1)
|
|
907
781
|
* @tsplus getter fncts.Vector last
|
|
908
782
|
*/
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
function last(l) {
|
|
912
|
-
return tsplus_module_5.fromNullable(unsafeLast_1(l));
|
|
783
|
+
function last(self) {
|
|
784
|
+
return tsplus_module_5.fromNullable(unsafeLast_1(self));
|
|
913
785
|
}
|
|
914
786
|
/**
|
|
915
787
|
* Returns the index of the _last_ element in the Vector that is equal
|
|
@@ -918,17 +790,15 @@ function last(l) {
|
|
|
918
790
|
* @complexity O(n)
|
|
919
791
|
* @tsplus pipeable fncts.Vector lastIndexOf
|
|
920
792
|
*/
|
|
921
|
-
|
|
922
|
-
|
|
923
793
|
function lastIndexOf(element) {
|
|
924
|
-
return
|
|
794
|
+
return self => {
|
|
925
795
|
const state = {
|
|
926
796
|
element,
|
|
927
797
|
found: false,
|
|
928
798
|
index: 0
|
|
929
799
|
};
|
|
930
|
-
(0, tsplus_module_2.foldRightCb)(indexOfCb, state,
|
|
931
|
-
return state.found ?
|
|
800
|
+
(0, tsplus_module_2.foldRightCb)(indexOfCb, state, self);
|
|
801
|
+
return state.found ? self.length - state.index : -1;
|
|
932
802
|
};
|
|
933
803
|
}
|
|
934
804
|
/**
|
|
@@ -938,29 +808,23 @@ function lastIndexOf(element) {
|
|
|
938
808
|
* @complexity O(n)
|
|
939
809
|
* @tsplus static fncts.VectorOps makeBy
|
|
940
810
|
*/
|
|
941
|
-
|
|
942
|
-
|
|
943
811
|
function makeBy(n, f) {
|
|
944
812
|
const l = emptyPushable_1();
|
|
945
|
-
|
|
946
813
|
for (let i = 0; i < n; i++) {
|
|
947
814
|
tsplus_module_2.push(f(i))(l);
|
|
948
815
|
}
|
|
949
|
-
|
|
950
816
|
return l;
|
|
951
817
|
}
|
|
952
818
|
/**
|
|
953
819
|
* @tsplus pipeable fncts.Vector mapAccum
|
|
954
820
|
*/
|
|
955
|
-
|
|
956
|
-
|
|
957
821
|
function mapAccum(s, f) {
|
|
958
|
-
return
|
|
822
|
+
return self => {
|
|
959
823
|
return foldLeft_1([emptyPushable_1(), s], ([acc, s], a) => {
|
|
960
824
|
const r = f(s, a);
|
|
961
825
|
tsplus_module_2.push(r[0])(acc);
|
|
962
826
|
return [acc, r[1]];
|
|
963
|
-
})(
|
|
827
|
+
})(self);
|
|
964
828
|
};
|
|
965
829
|
}
|
|
966
830
|
/**
|
|
@@ -970,11 +834,9 @@ function mapAccum(s, f) {
|
|
|
970
834
|
* @complexity O(n)
|
|
971
835
|
* @tsplus pipeable fncts.Vector map
|
|
972
836
|
*/
|
|
973
|
-
|
|
974
|
-
|
|
975
837
|
function map_1(f) {
|
|
976
|
-
return
|
|
977
|
-
return mapWithIndex_1((_, a) => f(a))(
|
|
838
|
+
return self => {
|
|
839
|
+
return mapWithIndex_1((_, a) => f(a))(self);
|
|
978
840
|
};
|
|
979
841
|
}
|
|
980
842
|
/**
|
|
@@ -984,20 +846,16 @@ function map_1(f) {
|
|
|
984
846
|
* @complexity O(n)
|
|
985
847
|
* @tsplus pipeable fncts.Vector mapWithIndex
|
|
986
848
|
*/
|
|
987
|
-
|
|
988
|
-
|
|
989
849
|
function mapWithIndex_1(f) {
|
|
990
|
-
return
|
|
991
|
-
return new tsplus_module_1.Vector(
|
|
850
|
+
return self => {
|
|
851
|
+
return new tsplus_module_1.Vector(self.bits, self.offset, self.length, (0, tsplus_module_2.mapPrefix)(f, self.prefix, (0, tsplus_module_2.getPrefixSize)(self)), self.root === undefined ? undefined : (0, tsplus_module_2.mapNode)(f, self.root, (0, tsplus_module_2.getDepth)(self), (0, tsplus_module_2.getPrefixSize)(self), 1)[0], (0, tsplus_module_2.mapAffix)(f, self.suffix, (0, tsplus_module_2.getSuffixSize)(self), self.length));
|
|
992
852
|
};
|
|
993
853
|
}
|
|
994
854
|
/**
|
|
995
855
|
* @tsplus getter fncts.Vector mutableClone
|
|
996
856
|
*/
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
function mutableClone_1(as) {
|
|
1000
|
-
return new tsplus_module_1.Vector(as.bits, as.offset, as.length, as.prefix, as.root, as.suffix);
|
|
857
|
+
function mutableClone_1(self) {
|
|
858
|
+
return new tsplus_module_1.Vector(self.bits, self.offset, self.length, self.prefix, self.root, self.suffix);
|
|
1001
859
|
}
|
|
1002
860
|
/**
|
|
1003
861
|
* Returns a Vector that has the entry specified by the index replaced with
|
|
@@ -1010,15 +868,12 @@ function mutableClone_1(as) {
|
|
|
1010
868
|
*
|
|
1011
869
|
* @tsplus pipeable fncts.Vector modifyAt
|
|
1012
870
|
*/
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
871
|
function modifyAt(i, f) {
|
|
1016
|
-
return
|
|
1017
|
-
if (i < 0 ||
|
|
1018
|
-
return
|
|
872
|
+
return self => {
|
|
873
|
+
if (i < 0 || self.length <= i) {
|
|
874
|
+
return self;
|
|
1019
875
|
}
|
|
1020
|
-
|
|
1021
|
-
return updateAt_1(i, f(unsafeGet_1(i)(as)))(as);
|
|
876
|
+
return updateAt_1(i, f(unsafeGet_1(i)(self)))(self);
|
|
1022
877
|
};
|
|
1023
878
|
}
|
|
1024
879
|
/**
|
|
@@ -1029,11 +884,9 @@ function modifyAt(i, f) {
|
|
|
1029
884
|
*
|
|
1030
885
|
* @tsplus pipeable fncts.Vector none
|
|
1031
886
|
*/
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
887
|
function none(predicate) {
|
|
1035
|
-
return
|
|
1036
|
-
return !
|
|
888
|
+
return self => {
|
|
889
|
+
return !some_1(predicate)(self);
|
|
1037
890
|
};
|
|
1038
891
|
}
|
|
1039
892
|
/**
|
|
@@ -1042,8 +895,6 @@ function none(predicate) {
|
|
|
1042
895
|
* @complexity O(1)
|
|
1043
896
|
* @tsplus static fncts.VectorOps pair
|
|
1044
897
|
*/
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
898
|
function pair(first, second) {
|
|
1048
899
|
return new tsplus_module_1.Vector(2, 0, 2, tsplus_module_2.emptyAffix, undefined, [first, second]);
|
|
1049
900
|
}
|
|
@@ -1054,10 +905,8 @@ function pair(first, second) {
|
|
|
1054
905
|
* @complexity `O(1)`
|
|
1055
906
|
* @tsplus getter fncts.Vector pop
|
|
1056
907
|
*/
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
function pop_1(as) {
|
|
1060
|
-
return slice_1(0, -1)(as);
|
|
908
|
+
function pop_1(self) {
|
|
909
|
+
return slice_1(0, -1)(self);
|
|
1061
910
|
}
|
|
1062
911
|
/**
|
|
1063
912
|
* Prepends an element to the front of a Vector and returns the new Vector.
|
|
@@ -1066,17 +915,14 @@ function pop_1(as) {
|
|
|
1066
915
|
*
|
|
1067
916
|
* @tsplus pipeable fncts.Vector prepend
|
|
1068
917
|
*/
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
918
|
function prepend_1(a) {
|
|
1072
|
-
return
|
|
1073
|
-
const prefixSize = (0, tsplus_module_2.getPrefixSize)(
|
|
1074
|
-
|
|
919
|
+
return self => {
|
|
920
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(self);
|
|
1075
921
|
if (prefixSize < 32) {
|
|
1076
|
-
return new tsplus_module_1.Vector((0, tsplus_module_2.incrementPrefix)(
|
|
922
|
+
return new tsplus_module_1.Vector((0, tsplus_module_2.incrementPrefix)(self.bits), self.offset, self.length + 1, (0, tsplus_module_2.affixPush)(a, self.prefix, prefixSize), self.root, self.suffix);
|
|
1077
923
|
} else {
|
|
1078
|
-
const newVector = mutableClone_1(
|
|
1079
|
-
(0, tsplus_module_2.prependNodeToTree)(newVector, (0, tsplus_module_2.reverseArray)(
|
|
924
|
+
const newVector = mutableClone_1(self);
|
|
925
|
+
(0, tsplus_module_2.prependNodeToTree)(newVector, (0, tsplus_module_2.reverseArray)(self.prefix));
|
|
1080
926
|
const newPrefix = [a];
|
|
1081
927
|
newVector.prefix = newPrefix;
|
|
1082
928
|
newVector.length++;
|
|
@@ -1088,10 +934,8 @@ function prepend_1(a) {
|
|
|
1088
934
|
/**
|
|
1089
935
|
* @tsplus operator fncts.Vector +
|
|
1090
936
|
*/
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
function prependOperator(a, as) {
|
|
1094
|
-
return prepend_1(a)(as);
|
|
937
|
+
function prependOperator(a, self) {
|
|
938
|
+
return prepend_1(a)(self);
|
|
1095
939
|
}
|
|
1096
940
|
/**
|
|
1097
941
|
* Returns a Vector of numbers between an inclusive lower bound and an exclusive upper bound.
|
|
@@ -1099,15 +943,11 @@ function prependOperator(a, as) {
|
|
|
1099
943
|
* @complexity O(n)
|
|
1100
944
|
* @tsplus static fncts.VectorOps range
|
|
1101
945
|
*/
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
946
|
function range(start, end) {
|
|
1105
947
|
const vec = emptyPushable_1();
|
|
1106
|
-
|
|
1107
948
|
for (let i = start; i < end; ++i) {
|
|
1108
949
|
tsplus_module_2.push(i)(vec);
|
|
1109
950
|
}
|
|
1110
|
-
|
|
1111
951
|
return vec;
|
|
1112
952
|
}
|
|
1113
953
|
/**
|
|
@@ -1119,11 +959,9 @@ function range(start, end) {
|
|
|
1119
959
|
*
|
|
1120
960
|
* @tsplus pipeable fncts.Vector remove
|
|
1121
961
|
*/
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
962
|
function remove(from, amount) {
|
|
1125
|
-
return
|
|
1126
|
-
return concat_1(slice_1(from + amount,
|
|
963
|
+
return self => {
|
|
964
|
+
return concat_1(slice_1(from + amount, self.length)(self))(slice_1(0, from)(self));
|
|
1127
965
|
};
|
|
1128
966
|
}
|
|
1129
967
|
/**
|
|
@@ -1133,23 +971,17 @@ function remove(from, amount) {
|
|
|
1133
971
|
* @complexity O(n)
|
|
1134
972
|
* @tsplus static fncts.VectorOps replicate
|
|
1135
973
|
*/
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
974
|
function replicate(n, a) {
|
|
1139
975
|
let t = n;
|
|
1140
976
|
const l = emptyPushable_1();
|
|
1141
|
-
|
|
1142
977
|
while (--t >= 0) {
|
|
1143
978
|
tsplus_module_2.push(a)(l);
|
|
1144
979
|
}
|
|
1145
|
-
|
|
1146
980
|
return l;
|
|
1147
981
|
}
|
|
1148
982
|
/**
|
|
1149
983
|
* @tsplus getter fncts.Vector reverse
|
|
1150
984
|
*/
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
985
|
function reverse(self) {
|
|
1154
986
|
return foldLeft_1(empty_1(), (vec, elem) => prepend_1(elem)(vec))(self);
|
|
1155
987
|
}
|
|
@@ -1159,11 +991,9 @@ function reverse(self) {
|
|
|
1159
991
|
*
|
|
1160
992
|
* @tsplus pipeable fncts.Vector scanLeft
|
|
1161
993
|
*/
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
994
|
function scanLeft(initial, f) {
|
|
1165
|
-
return
|
|
1166
|
-
return foldLeft_1(tsplus_module_2.push(initial)(emptyPushable_1()), (l2, a) => tsplus_module_2.push(f(unsafeLast_1(l2), a))(l2))(
|
|
995
|
+
return self => {
|
|
996
|
+
return foldLeft_1(tsplus_module_2.push(initial)(emptyPushable_1()), (l2, a) => tsplus_module_2.push(f(unsafeLast_1(l2), a))(l2))(self);
|
|
1167
997
|
};
|
|
1168
998
|
}
|
|
1169
999
|
/**
|
|
@@ -1172,8 +1002,6 @@ function scanLeft(initial, f) {
|
|
|
1172
1002
|
* @complexity O(1)
|
|
1173
1003
|
* @tsplus static fncts.VectorOps single
|
|
1174
1004
|
*/
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
1005
|
function single(a) {
|
|
1178
1006
|
return vector_1(a);
|
|
1179
1007
|
}
|
|
@@ -1185,102 +1013,87 @@ function single(a) {
|
|
|
1185
1013
|
* @complexity `O(log(n))`
|
|
1186
1014
|
* @tsplus pipeable fncts.Vector slice
|
|
1187
1015
|
*/
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
1016
|
function slice_1(from, to) {
|
|
1191
|
-
return
|
|
1017
|
+
return self => {
|
|
1192
1018
|
let {
|
|
1193
1019
|
bits,
|
|
1194
1020
|
length
|
|
1195
|
-
} =
|
|
1021
|
+
} = self;
|
|
1196
1022
|
let _to = to;
|
|
1197
1023
|
let _from = from;
|
|
1198
|
-
_to = Math.min(length, to);
|
|
1199
|
-
|
|
1024
|
+
_to = Math.min(length, to);
|
|
1025
|
+
// Handle negative indices
|
|
1200
1026
|
if (_from < 0) {
|
|
1201
1027
|
_from = length + from;
|
|
1202
1028
|
}
|
|
1203
|
-
|
|
1204
1029
|
if (_to < 0) {
|
|
1205
1030
|
_to = length + to;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
|
|
1031
|
+
}
|
|
1032
|
+
// Should we just return the empty Vector?
|
|
1209
1033
|
if (_to <= _from || _to <= 0 || length <= _from) {
|
|
1210
1034
|
return empty_1();
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1035
|
+
}
|
|
1036
|
+
// Return Vector unchanged if we are slicing nothing off
|
|
1214
1037
|
if (_from <= 0 && length <= _to) {
|
|
1215
|
-
return
|
|
1038
|
+
return self;
|
|
1216
1039
|
}
|
|
1217
|
-
|
|
1218
1040
|
const newLength = _to - _from;
|
|
1219
|
-
let prefixSize = (0, tsplus_module_2.getPrefixSize)(
|
|
1220
|
-
const suffixSize = (0, tsplus_module_2.getSuffixSize)(
|
|
1221
|
-
|
|
1041
|
+
let prefixSize = (0, tsplus_module_2.getPrefixSize)(self);
|
|
1042
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(self);
|
|
1043
|
+
// Both indices lie in the prefix
|
|
1222
1044
|
if (_to <= prefixSize) {
|
|
1223
|
-
return new tsplus_module_1.Vector((0, tsplus_module_2.setPrefix)(newLength, 0), 0, newLength,
|
|
1045
|
+
return new tsplus_module_1.Vector((0, tsplus_module_2.setPrefix)(newLength, 0), 0, newLength, self.prefix.slice(prefixSize - _to, prefixSize - _from), undefined, tsplus_module_2.emptyAffix);
|
|
1224
1046
|
}
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1047
|
+
const suffixStart = length - suffixSize;
|
|
1048
|
+
// Both indices lie in the suffix
|
|
1228
1049
|
if (suffixStart <= _from) {
|
|
1229
|
-
return new tsplus_module_1.Vector((0, tsplus_module_2.setSuffix)(newLength, 0), 0, newLength, tsplus_module_2.emptyAffix, undefined,
|
|
1050
|
+
return new tsplus_module_1.Vector((0, tsplus_module_2.setSuffix)(newLength, 0), 0, newLength, tsplus_module_2.emptyAffix, undefined, self.suffix.slice(_from - suffixStart, _to - suffixStart));
|
|
1230
1051
|
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1052
|
+
const newVector = mutableClone_1(self);
|
|
1053
|
+
newVector.length = newLength;
|
|
1054
|
+
// Both indices lie in the tree
|
|
1235
1055
|
if (prefixSize <= _from && _to <= suffixStart) {
|
|
1236
|
-
(0, tsplus_module_2.sliceTreeVector)(_from - prefixSize +
|
|
1056
|
+
(0, tsplus_module_2.sliceTreeVector)(_from - prefixSize + self.offset, _to - prefixSize + self.offset - 1, self.root, (0, tsplus_module_2.getDepth)(self), self.offset, newVector);
|
|
1237
1057
|
return newVector;
|
|
1238
1058
|
}
|
|
1239
|
-
|
|
1240
1059
|
if (0 < _from) {
|
|
1241
1060
|
// we need _to slice something off of the left
|
|
1242
1061
|
if (_from < prefixSize) {
|
|
1243
1062
|
// shorten the prefix even though it's not strictly needed,
|
|
1244
1063
|
// so that referenced items can be GC'd
|
|
1245
|
-
newVector.prefix =
|
|
1064
|
+
newVector.prefix = self.prefix.slice(0, prefixSize - _from);
|
|
1246
1065
|
bits = (0, tsplus_module_2.setPrefix)(prefixSize - _from, bits);
|
|
1247
1066
|
} else {
|
|
1248
1067
|
// if we're here `_to` can't lie in the tree, so we can set the
|
|
1249
1068
|
// root
|
|
1250
1069
|
(0, tsplus_module_2.zeroOffset)();
|
|
1251
|
-
newVector.root = (0, tsplus_module_2.sliceLeft)(newVector.root, (0, tsplus_module_2.getDepth)(
|
|
1070
|
+
newVector.root = (0, tsplus_module_2.sliceLeft)(newVector.root, (0, tsplus_module_2.getDepth)(self), _from - prefixSize, self.offset, true);
|
|
1252
1071
|
newVector.offset = tsplus_module_2.newOffset;
|
|
1253
|
-
|
|
1254
1072
|
if (newVector.root === undefined) {
|
|
1255
1073
|
bits = (0, tsplus_module_2.setDepth)(0, bits);
|
|
1256
1074
|
}
|
|
1257
|
-
|
|
1258
1075
|
bits = (0, tsplus_module_2.setPrefix)(tsplus_module_2.newAffix.length, bits);
|
|
1259
1076
|
prefixSize = tsplus_module_2.newAffix.length;
|
|
1260
1077
|
newVector.prefix = tsplus_module_2.newAffix;
|
|
1261
1078
|
}
|
|
1262
1079
|
}
|
|
1263
|
-
|
|
1264
1080
|
if (_to < length) {
|
|
1265
1081
|
// we need _to slice something off of the right
|
|
1266
1082
|
if (length - _to < suffixSize) {
|
|
1267
|
-
bits = (0, tsplus_module_2.setSuffix)(suffixSize - (length - _to), bits);
|
|
1083
|
+
bits = (0, tsplus_module_2.setSuffix)(suffixSize - (length - _to), bits);
|
|
1084
|
+
// slice the suffix even though it's not strictly needed,
|
|
1268
1085
|
// _to allow the removed items _to be GC'd
|
|
1269
|
-
|
|
1270
|
-
newVector.suffix = as.suffix.slice(0, suffixSize - (length - _to));
|
|
1086
|
+
newVector.suffix = self.suffix.slice(0, suffixSize - (length - _to));
|
|
1271
1087
|
} else {
|
|
1272
|
-
newVector.root = (0, tsplus_module_2.sliceRight)(newVector.root, (0, tsplus_module_2.getDepth)(
|
|
1273
|
-
|
|
1088
|
+
newVector.root = (0, tsplus_module_2.sliceRight)(newVector.root, (0, tsplus_module_2.getDepth)(self), _to - prefixSize - 1, newVector.offset);
|
|
1274
1089
|
if (newVector.root === undefined) {
|
|
1275
1090
|
bits = (0, tsplus_module_2.setDepth)(0, bits);
|
|
1276
1091
|
newVector.offset = 0;
|
|
1277
1092
|
}
|
|
1278
|
-
|
|
1279
1093
|
bits = (0, tsplus_module_2.setSuffix)(tsplus_module_2.newAffix.length, bits);
|
|
1280
1094
|
newVector.suffix = tsplus_module_2.newAffix;
|
|
1281
1095
|
}
|
|
1282
1096
|
}
|
|
1283
|
-
|
|
1284
1097
|
newVector.bits = bits;
|
|
1285
1098
|
return newVector;
|
|
1286
1099
|
};
|
|
@@ -1288,13 +1101,9 @@ function slice_1(from, to) {
|
|
|
1288
1101
|
/**
|
|
1289
1102
|
* @tsplus pipeable fncts.Vector sort
|
|
1290
1103
|
*/
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
function sort(
|
|
1294
|
-
/** @tsplus auto */
|
|
1295
|
-
O) {
|
|
1104
|
+
function sort( /** @tsplus auto */O) {
|
|
1296
1105
|
return self => {
|
|
1297
|
-
return sortWith_1(O.compare)(self);
|
|
1106
|
+
return sortWith_1((a, b) => O.compare(b)(a))(self);
|
|
1298
1107
|
};
|
|
1299
1108
|
}
|
|
1300
1109
|
/**
|
|
@@ -1308,16 +1117,14 @@ O) {
|
|
|
1308
1117
|
*
|
|
1309
1118
|
* @tsplus pipeable fncts.Vector sortWith
|
|
1310
1119
|
*/
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
1120
|
function sortWith_1(compare) {
|
|
1314
|
-
return
|
|
1121
|
+
return self => {
|
|
1315
1122
|
const arr = [];
|
|
1316
1123
|
let i = 0;
|
|
1317
1124
|
forEach_1(elm => arr.push({
|
|
1318
1125
|
idx: i++,
|
|
1319
1126
|
elm
|
|
1320
|
-
}))(
|
|
1127
|
+
}))(self);
|
|
1321
1128
|
arr.sort(({
|
|
1322
1129
|
elm: a,
|
|
1323
1130
|
idx: i
|
|
@@ -1329,11 +1136,9 @@ function sortWith_1(compare) {
|
|
|
1329
1136
|
return c !== 0 ? c : i < j ? -1 : 1;
|
|
1330
1137
|
});
|
|
1331
1138
|
const newL = emptyPushable_1();
|
|
1332
|
-
|
|
1333
1139
|
for (let i = 0; i < arr.length; ++i) {
|
|
1334
1140
|
tsplus_module_2.push(arr[i].elm)(newL);
|
|
1335
1141
|
}
|
|
1336
|
-
|
|
1337
1142
|
return newL;
|
|
1338
1143
|
};
|
|
1339
1144
|
}
|
|
@@ -1347,11 +1152,9 @@ function sortWith_1(compare) {
|
|
|
1347
1152
|
*
|
|
1348
1153
|
* @tsplus pipeable fncts.Vector splitAt
|
|
1349
1154
|
*/
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
1155
|
function splitAt_1(index) {
|
|
1353
|
-
return
|
|
1354
|
-
return [slice_1(0, index)(
|
|
1156
|
+
return self => {
|
|
1157
|
+
return [slice_1(0, index)(self), slice_1(index, self.length)(self)];
|
|
1355
1158
|
};
|
|
1356
1159
|
}
|
|
1357
1160
|
/**
|
|
@@ -1362,12 +1165,10 @@ function splitAt_1(index) {
|
|
|
1362
1165
|
*
|
|
1363
1166
|
* @tsplus pipeable fncts.Vector splitWhen
|
|
1364
1167
|
*/
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
1168
|
function splitWhen(predicate) {
|
|
1368
|
-
return
|
|
1369
|
-
const idx = findIndex_1(predicate)(
|
|
1370
|
-
return idx === -1 ? [
|
|
1169
|
+
return self => {
|
|
1170
|
+
const idx = findIndex_1(predicate)(self);
|
|
1171
|
+
return idx === -1 ? [self, empty_1()] : splitAt_1(idx)(self);
|
|
1371
1172
|
};
|
|
1372
1173
|
}
|
|
1373
1174
|
/**
|
|
@@ -1378,10 +1179,8 @@ function splitWhen(predicate) {
|
|
|
1378
1179
|
*
|
|
1379
1180
|
* @tsplus getter fncts.Vector tail
|
|
1380
1181
|
*/
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
function tail(as) {
|
|
1384
|
-
return slice_1(1, as.length)(as);
|
|
1182
|
+
function tail(self) {
|
|
1183
|
+
return slice_1(1, self.length)(self);
|
|
1385
1184
|
}
|
|
1386
1185
|
/**
|
|
1387
1186
|
* Takes the first `n` elements from a Vector and returns them in a new Vector.
|
|
@@ -1389,11 +1188,9 @@ function tail(as) {
|
|
|
1389
1188
|
* @complexity `O(log(n))`
|
|
1390
1189
|
* @tsplus pipeable fncts.Vector take
|
|
1391
1190
|
*/
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
1191
|
function take(n) {
|
|
1395
|
-
return
|
|
1396
|
-
return slice_1(0, n)(
|
|
1192
|
+
return self => {
|
|
1193
|
+
return slice_1(0, n)(self);
|
|
1397
1194
|
};
|
|
1398
1195
|
}
|
|
1399
1196
|
/**
|
|
@@ -1405,17 +1202,15 @@ function take(n) {
|
|
|
1405
1202
|
*
|
|
1406
1203
|
* @tsplus pipeable fncts.Vector takeWhile
|
|
1407
1204
|
*/
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
1205
|
function takeWhile(predicate) {
|
|
1411
|
-
return
|
|
1206
|
+
return self => {
|
|
1412
1207
|
const {
|
|
1413
1208
|
index
|
|
1414
1209
|
} = (0, tsplus_module_2.foldLeftCb)(findNotIndexCb, {
|
|
1415
1210
|
predicate,
|
|
1416
1211
|
index: 0
|
|
1417
|
-
},
|
|
1418
|
-
return slice_1(0, index)(
|
|
1212
|
+
}, self);
|
|
1213
|
+
return slice_1(0, index)(self);
|
|
1419
1214
|
};
|
|
1420
1215
|
}
|
|
1421
1216
|
/**
|
|
@@ -1425,11 +1220,9 @@ function takeWhile(predicate) {
|
|
|
1425
1220
|
* @complexity `O(log(n))`
|
|
1426
1221
|
* @tsplus pipeable fncts.Vector takeLast
|
|
1427
1222
|
*/
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
1223
|
function takeLast(n) {
|
|
1431
|
-
return
|
|
1432
|
-
return slice_1(
|
|
1224
|
+
return self => {
|
|
1225
|
+
return slice_1(self.length - n, self.length)(self);
|
|
1433
1226
|
};
|
|
1434
1227
|
}
|
|
1435
1228
|
/**
|
|
@@ -1441,17 +1234,15 @@ function takeLast(n) {
|
|
|
1441
1234
|
*
|
|
1442
1235
|
* @tsplus pipeable fncts.Vector takeLastWhile
|
|
1443
1236
|
*/
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
1237
|
function takeLastWhile(predicate) {
|
|
1447
|
-
return
|
|
1238
|
+
return self => {
|
|
1448
1239
|
const {
|
|
1449
1240
|
index
|
|
1450
1241
|
} = (0, tsplus_module_2.foldRightCb)(findNotIndexCb, {
|
|
1451
1242
|
predicate,
|
|
1452
1243
|
index: 0
|
|
1453
|
-
},
|
|
1454
|
-
return slice_1(
|
|
1244
|
+
}, self);
|
|
1245
|
+
return slice_1(self.length - index, self.length)(self);
|
|
1455
1246
|
};
|
|
1456
1247
|
}
|
|
1457
1248
|
/**
|
|
@@ -1460,8 +1251,6 @@ function takeLastWhile(predicate) {
|
|
|
1460
1251
|
* @complexity `O(n)`
|
|
1461
1252
|
* @tsplus getter fncts.Vector toArray
|
|
1462
1253
|
*/
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
1254
|
function toArray(self) {
|
|
1466
1255
|
return foldLeft_1([], tsplus_module_2.arrayPush)(self);
|
|
1467
1256
|
}
|
|
@@ -1471,8 +1260,6 @@ function toArray(self) {
|
|
|
1471
1260
|
* @complexity `O(n)`
|
|
1472
1261
|
* @tsplus getter fncts.Vector toList
|
|
1473
1262
|
*/
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
1263
|
function toList(self) {
|
|
1477
1264
|
const buffer = new tsplus_module_6.ListBuffer();
|
|
1478
1265
|
forEach_1(a => {
|
|
@@ -1480,7 +1267,6 @@ function toList(self) {
|
|
|
1480
1267
|
})(self);
|
|
1481
1268
|
return buffer.toList;
|
|
1482
1269
|
}
|
|
1483
|
-
|
|
1484
1270
|
function _traverseWithIndex_1(self) {
|
|
1485
1271
|
return G => f => foldLeftWithIndex_1(G.pure(emptyPushable_1()), (i, b, a) => G.zipWith(f(i, a), (v, b) => {
|
|
1486
1272
|
tsplus_module_2.push(b)(v);
|
|
@@ -1490,43 +1276,32 @@ function _traverseWithIndex_1(self) {
|
|
|
1490
1276
|
/**
|
|
1491
1277
|
* @tsplus getter fncts.Vector traverse
|
|
1492
1278
|
*/
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
1279
|
function _traverse(self) {
|
|
1496
1280
|
return G => f => _traverseWithIndex_1(self)(G)((_, a) => f(a));
|
|
1497
1281
|
}
|
|
1498
|
-
|
|
1499
1282
|
const traverseWithIndex = G => f => self => _traverseWithIndex_1(self)(G)(f);
|
|
1500
|
-
|
|
1501
1283
|
exports.traverseWithIndex = traverseWithIndex;
|
|
1502
|
-
|
|
1503
1284
|
const traverse = G => f => self => _traverseWithIndex_1(self)(G)((_, a) => f(a));
|
|
1504
1285
|
/**
|
|
1505
1286
|
* Returns a new Vector without repeated elements by using the given
|
|
1506
1287
|
* Eq instance to determine when elements are equal
|
|
1507
1288
|
*
|
|
1508
1289
|
* @complexity `O(n)`
|
|
1509
|
-
* @tsplus
|
|
1290
|
+
* @tsplus pipeable fncts.Vector uniq
|
|
1510
1291
|
*/
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
1292
|
exports.traverse = traverse;
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
return E => dropRepeatsWith_1(E.equals)(as);
|
|
1293
|
+
function uniq(E) {
|
|
1294
|
+
return self => dropRepeatsWith_1((a, b) => E.equals(b)(a))(self);
|
|
1517
1295
|
}
|
|
1518
1296
|
/**
|
|
1519
1297
|
* @tsplus static fncts.VectorOps unfold
|
|
1520
1298
|
*/
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
1299
|
function unfold(b, f) {
|
|
1524
1300
|
const out = emptyPushable_1();
|
|
1525
|
-
let state = b;
|
|
1526
|
-
|
|
1301
|
+
let state = b;
|
|
1302
|
+
// eslint-disable-next-line no-constant-condition
|
|
1527
1303
|
while (true) {
|
|
1528
1304
|
const mt = f(state);
|
|
1529
|
-
|
|
1530
1305
|
if (tsplus_module_7.isJust(mt)) {
|
|
1531
1306
|
const [a, b] = mt.value;
|
|
1532
1307
|
tsplus_module_2.push(a)(out);
|
|
@@ -1535,10 +1310,8 @@ function unfold(b, f) {
|
|
|
1535
1310
|
break;
|
|
1536
1311
|
}
|
|
1537
1312
|
}
|
|
1538
|
-
|
|
1539
1313
|
return out;
|
|
1540
1314
|
}
|
|
1541
|
-
|
|
1542
1315
|
function findCb(value, state) {
|
|
1543
1316
|
if (state.predicate(value)) {
|
|
1544
1317
|
state.result = value;
|
|
@@ -1554,14 +1327,12 @@ function findCb(value, state) {
|
|
|
1554
1327
|
* @complexity O(n)
|
|
1555
1328
|
* @tsplus pipeable fncts.Vector unsafeFind
|
|
1556
1329
|
*/
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
1330
|
function unsafeFind_1(predicate) {
|
|
1560
|
-
return
|
|
1331
|
+
return self => {
|
|
1561
1332
|
return (0, tsplus_module_2.foldLeftCb)(findCb, {
|
|
1562
1333
|
predicate,
|
|
1563
1334
|
result: undefined
|
|
1564
|
-
},
|
|
1335
|
+
}, self).result;
|
|
1565
1336
|
};
|
|
1566
1337
|
}
|
|
1567
1338
|
/**
|
|
@@ -1571,14 +1342,12 @@ function unsafeFind_1(predicate) {
|
|
|
1571
1342
|
* @complexity O(n)
|
|
1572
1343
|
* @tsplus pipeable fncts.Vector unsafeFindLast
|
|
1573
1344
|
*/
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
1345
|
function unsafeFindLast_1(predicate) {
|
|
1577
|
-
return
|
|
1346
|
+
return self => {
|
|
1578
1347
|
return (0, tsplus_module_2.foldRightCb)(findCb, {
|
|
1579
1348
|
predicate,
|
|
1580
1349
|
result: undefined
|
|
1581
|
-
},
|
|
1350
|
+
}, self).result;
|
|
1582
1351
|
};
|
|
1583
1352
|
}
|
|
1584
1353
|
/**
|
|
@@ -1589,28 +1358,23 @@ function unsafeFindLast_1(predicate) {
|
|
|
1589
1358
|
* @tsplus pipeable fncts.Vector unsafeGet
|
|
1590
1359
|
* @tsplus pipeable-index fncts.Vector
|
|
1591
1360
|
*/
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
1361
|
function unsafeGet_1(index) {
|
|
1595
|
-
return
|
|
1596
|
-
if (index < 0 ||
|
|
1362
|
+
return self => {
|
|
1363
|
+
if (index < 0 || self.length <= index) {
|
|
1597
1364
|
return undefined;
|
|
1598
1365
|
}
|
|
1599
|
-
|
|
1600
|
-
const
|
|
1601
|
-
const suffixSize = (0, tsplus_module_2.getSuffixSize)(l);
|
|
1602
|
-
|
|
1366
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(self);
|
|
1367
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(self);
|
|
1603
1368
|
if (index < prefixSize) {
|
|
1604
|
-
return
|
|
1605
|
-
} else if (index >=
|
|
1606
|
-
return
|
|
1369
|
+
return self.prefix[prefixSize - index - 1];
|
|
1370
|
+
} else if (index >= self.length - suffixSize) {
|
|
1371
|
+
return self.suffix[index - (self.length - suffixSize)];
|
|
1607
1372
|
}
|
|
1608
|
-
|
|
1609
1373
|
const {
|
|
1610
1374
|
offset
|
|
1611
|
-
} =
|
|
1612
|
-
const depth = (0, tsplus_module_2.getDepth)(
|
|
1613
|
-
return
|
|
1375
|
+
} = self;
|
|
1376
|
+
const depth = (0, tsplus_module_2.getDepth)(self);
|
|
1377
|
+
return self.root.sizes === undefined ? (0, tsplus_module_2.nodeNthDense)(self.root, depth, offset === 0 ? index - prefixSize : (0, tsplus_module_2.handleOffset)(depth, offset, index - prefixSize)) : (0, tsplus_module_2.nodeNth)(self.root, depth, offset, index - prefixSize);
|
|
1614
1378
|
};
|
|
1615
1379
|
}
|
|
1616
1380
|
/**
|
|
@@ -1620,11 +1384,9 @@ function unsafeGet_1(index) {
|
|
|
1620
1384
|
* @complexity O(1)
|
|
1621
1385
|
* @tsplus getter fncts.Vector unsafeHead
|
|
1622
1386
|
*/
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
const prefixSize = (0, tsplus_module_2.getPrefixSize)(l);
|
|
1627
|
-
return prefixSize !== 0 ? l.prefix[prefixSize - 1] : l.length !== 0 ? l.suffix[0] : undefined;
|
|
1387
|
+
function unsafeHead_1(self) {
|
|
1388
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(self);
|
|
1389
|
+
return prefixSize !== 0 ? self.prefix[prefixSize - 1] : self.length !== 0 ? self.suffix[0] : undefined;
|
|
1628
1390
|
}
|
|
1629
1391
|
/**
|
|
1630
1392
|
* Returns the last element of the Vector. If the Vector is empty the
|
|
@@ -1633,11 +1395,9 @@ function unsafeHead_1(l) {
|
|
|
1633
1395
|
* @complexity O(1)
|
|
1634
1396
|
* @tsplus getter fncts.Vector unsafeLast
|
|
1635
1397
|
*/
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
const suffixSize = (0, tsplus_module_2.getSuffixSize)(l);
|
|
1640
|
-
return suffixSize !== 0 ? l.suffix[suffixSize - 1] : l.length !== 0 ? l.prefix[0] : undefined;
|
|
1398
|
+
function unsafeLast_1(self) {
|
|
1399
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(self);
|
|
1400
|
+
return suffixSize !== 0 ? self.suffix[suffixSize - 1] : self.length !== 0 ? self.prefix[0] : undefined;
|
|
1641
1401
|
}
|
|
1642
1402
|
/**
|
|
1643
1403
|
* Returns a Vector that has the entry specified by the index replaced with the given value.
|
|
@@ -1647,45 +1407,36 @@ function unsafeLast_1(l) {
|
|
|
1647
1407
|
* @complexity O(log(n))
|
|
1648
1408
|
* @tsplus pipeable fncts.Vector updateAt
|
|
1649
1409
|
*/
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
1410
|
function updateAt_1(i, a) {
|
|
1653
|
-
return
|
|
1654
|
-
if (i < 0 ||
|
|
1655
|
-
return
|
|
1411
|
+
return self => {
|
|
1412
|
+
if (i < 0 || self.length <= i) {
|
|
1413
|
+
return self;
|
|
1656
1414
|
}
|
|
1657
|
-
|
|
1658
|
-
const
|
|
1659
|
-
const
|
|
1660
|
-
const newVector = mutableClone_1(as);
|
|
1661
|
-
|
|
1415
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(self);
|
|
1416
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(self);
|
|
1417
|
+
const newVector = mutableClone_1(self);
|
|
1662
1418
|
if (i < prefixSize) {
|
|
1663
1419
|
const newPrefix = (0, tsplus_module_2.copyArray)(newVector.prefix);
|
|
1664
1420
|
newPrefix[newPrefix.length - i - 1] = a;
|
|
1665
1421
|
newVector.prefix = newPrefix;
|
|
1666
|
-
} else if (i >=
|
|
1422
|
+
} else if (i >= self.length - suffixSize) {
|
|
1667
1423
|
const newSuffix = (0, tsplus_module_2.copyArray)(newVector.suffix);
|
|
1668
|
-
newSuffix[i - (
|
|
1424
|
+
newSuffix[i - (self.length - suffixSize)] = a;
|
|
1669
1425
|
newVector.suffix = newSuffix;
|
|
1670
1426
|
} else {
|
|
1671
|
-
newVector.root = (0, tsplus_module_2.updateNode)(
|
|
1427
|
+
newVector.root = (0, tsplus_module_2.updateNode)(self.root, (0, tsplus_module_2.getDepth)(self), i - prefixSize, self.offset, a);
|
|
1672
1428
|
}
|
|
1673
|
-
|
|
1674
1429
|
return newVector;
|
|
1675
1430
|
};
|
|
1676
1431
|
}
|
|
1677
1432
|
/**
|
|
1678
1433
|
* @tsplus static fncts.VectorOps __call
|
|
1679
1434
|
*/
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
1435
|
function vector_1(...elements) {
|
|
1683
1436
|
const v = emptyPushable_1();
|
|
1684
|
-
|
|
1685
1437
|
for (const element of elements) {
|
|
1686
1438
|
tsplus_module_2.push(element)(v);
|
|
1687
1439
|
}
|
|
1688
|
-
|
|
1689
1440
|
return v;
|
|
1690
1441
|
}
|
|
1691
1442
|
//# sourceMappingURL=api.cjs.map
|