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