@fncts/base 0.0.1
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 +43 -0
- package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -0
- package/_cjs/collection/Iterable/api.cjs +857 -0
- package/_cjs/collection/Iterable/api.cjs.map +1 -0
- package/_cjs/collection/Iterable/constructors.cjs +114 -0
- package/_cjs/collection/Iterable/constructors.cjs.map +1 -0
- package/_cjs/collection/Iterable/definition.cjs +9 -0
- package/_cjs/collection/Iterable/definition.cjs.map +1 -0
- package/_cjs/collection/Iterable.cjs +45 -0
- package/_cjs/collection/Iterable.cjs.map +1 -0
- package/_cjs/collection/compat/Array/api.cjs +72 -0
- package/_cjs/collection/compat/Array/api.cjs.map +1 -0
- package/_cjs/collection/compat/Array/definition.cjs +9 -0
- package/_cjs/collection/compat/Array/definition.cjs.map +1 -0
- package/_cjs/collection/compat/Array.cjs +32 -0
- package/_cjs/collection/compat/Array.cjs.map +1 -0
- package/_cjs/collection/compat/ArrayLike/api.cjs +51 -0
- package/_cjs/collection/compat/ArrayLike/api.cjs.map +1 -0
- package/_cjs/collection/compat/ArrayLike/definition.cjs +6 -0
- package/_cjs/collection/compat/ArrayLike/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/api/empty.cjs +16 -0
- package/_cjs/collection/immutable/Conc/api/empty.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs +34 -0
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/api/replicate.cjs +20 -0
- package/_cjs/collection/immutable/Conc/api/replicate.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/api.cjs +1493 -0
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/constructors.cjs +61 -0
- package/_cjs/collection/immutable/Conc/constructors.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/definition.cjs +852 -0
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc.cjs +84 -0
- package/_cjs/collection/immutable/Conc.cjs.map +1 -0
- package/_cjs/collection/immutable/Dictionary/api.cjs +84 -0
- package/_cjs/collection/immutable/Dictionary/api.cjs.map +1 -0
- package/_cjs/collection/immutable/Dictionary/definition.cjs +16 -0
- package/_cjs/collection/immutable/Dictionary/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/HashMap/api.cjs +873 -0
- package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -0
- package/_cjs/collection/immutable/HashMap/definition.cjs +135 -0
- package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/HashMap/internal.cjs +403 -0
- package/_cjs/collection/immutable/HashMap/internal.cjs.map +1 -0
- package/_cjs/collection/immutable/HashMap.cjs +32 -0
- package/_cjs/collection/immutable/HashMap.cjs.map +1 -0
- package/_cjs/collection/immutable/HashSet/api.cjs +590 -0
- package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -0
- package/_cjs/collection/immutable/HashSet/definition.cjs +412 -0
- package/_cjs/collection/immutable/HashSet/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/HashSet.cjs +32 -0
- package/_cjs/collection/immutable/HashSet.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableArray/api.cjs +1807 -0
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs +79 -0
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs +56 -0
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs +187 -0
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableArray.cjs +58 -0
- package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +634 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs +105 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs +27 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs +72 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +143 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs +71 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs.map +1 -0
- package/_cjs/collection/immutable/List/api/foldLeft.cjs +28 -0
- package/_cjs/collection/immutable/List/api/foldLeft.cjs.map +1 -0
- package/_cjs/collection/immutable/List/api/unsafeTail.cjs +26 -0
- package/_cjs/collection/immutable/List/api/unsafeTail.cjs.map +1 -0
- package/_cjs/collection/immutable/List/api.cjs +443 -0
- package/_cjs/collection/immutable/List/api.cjs.map +1 -0
- package/_cjs/collection/immutable/List/constructors.cjs +92 -0
- package/_cjs/collection/immutable/List/constructors.cjs.map +1 -0
- package/_cjs/collection/immutable/List/definition.cjs +125 -0
- package/_cjs/collection/immutable/List/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/List.cjs +71 -0
- package/_cjs/collection/immutable/List.cjs.map +1 -0
- package/_cjs/collection/immutable/Queue/api.cjs +210 -0
- package/_cjs/collection/immutable/Queue/api.cjs.map +1 -0
- package/_cjs/collection/immutable/Queue/constructors.cjs +33 -0
- package/_cjs/collection/immutable/Queue/constructors.cjs.map +1 -0
- package/_cjs/collection/immutable/Queue/definition.cjs +53 -0
- package/_cjs/collection/immutable/Queue/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/Queue/guards.cjs +20 -0
- package/_cjs/collection/immutable/Queue/guards.cjs.map +1 -0
- package/_cjs/collection/immutable/Queue.cjs +58 -0
- package/_cjs/collection/immutable/Queue.cjs.map +1 -0
- package/_cjs/collection/immutable/SortedMap/api.cjs +691 -0
- package/_cjs/collection/immutable/SortedMap/api.cjs.map +1 -0
- package/_cjs/collection/immutable/SortedMap/definition.cjs +27 -0
- package/_cjs/collection/immutable/SortedMap/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/SortedMap/internal.cjs +530 -0
- package/_cjs/collection/immutable/SortedMap/internal.cjs.map +1 -0
- package/_cjs/collection/immutable/SortedMap/iterator.cjs +394 -0
- package/_cjs/collection/immutable/SortedMap/iterator.cjs.map +1 -0
- package/_cjs/collection/immutable/SortedMap/node.cjs +23 -0
- package/_cjs/collection/immutable/SortedMap/node.cjs.map +1 -0
- package/_cjs/collection/immutable/SortedMap.cjs +71 -0
- package/_cjs/collection/immutable/SortedMap.cjs.map +1 -0
- package/_cjs/collection/immutable/Vector/api.cjs +1525 -0
- package/_cjs/collection/immutable/Vector/api.cjs.map +1 -0
- package/_cjs/collection/immutable/Vector/definition.cjs +105 -0
- package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/Vector/internal.cjs +1665 -0
- package/_cjs/collection/immutable/Vector/internal.cjs.map +1 -0
- package/_cjs/collection/immutable/Vector.cjs +32 -0
- package/_cjs/collection/immutable/Vector.cjs.map +1 -0
- package/_cjs/collection/mutable/HashMap.cjs +390 -0
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -0
- package/_cjs/collection/mutable/HashSet.cjs +308 -0
- package/_cjs/collection/mutable/HashSet.cjs.map +1 -0
- package/_cjs/collection/mutable/ListBuffer.cjs +156 -0
- package/_cjs/collection/mutable/ListBuffer.cjs.map +1 -0
- package/_cjs/collection/mutable/internal.cjs +39 -0
- package/_cjs/collection/mutable/internal.cjs.map +1 -0
- package/_cjs/control/Eval/api/sequenceArray.cjs +22 -0
- package/_cjs/control/Eval/api/sequenceArray.cjs.map +1 -0
- package/_cjs/control/Eval/api.cjs +148 -0
- package/_cjs/control/Eval/api.cjs.map +1 -0
- package/_cjs/control/Eval/constructors.cjs +49 -0
- package/_cjs/control/Eval/constructors.cjs.map +1 -0
- package/_cjs/control/Eval/definition.cjs +68 -0
- package/_cjs/control/Eval/definition.cjs.map +1 -0
- package/_cjs/control/Eval/instance.cjs +52 -0
- package/_cjs/control/Eval/instance.cjs.map +1 -0
- package/_cjs/control/Eval/run.cjs +72 -0
- package/_cjs/control/Eval/run.cjs.map +1 -0
- package/_cjs/control/Eval.cjs +71 -0
- package/_cjs/control/Eval.cjs.map +1 -0
- package/_cjs/control/LazyValue.cjs +38 -0
- package/_cjs/control/LazyValue.cjs.map +1 -0
- package/_cjs/control/Z/api.cjs +667 -0
- package/_cjs/control/Z/api.cjs.map +1 -0
- package/_cjs/control/Z/definition.cjs +227 -0
- package/_cjs/control/Z/definition.cjs.map +1 -0
- package/_cjs/control/Z/instances.cjs +28 -0
- package/_cjs/control/Z/instances.cjs.map +1 -0
- package/_cjs/control/Z/runtime.cjs +387 -0
- package/_cjs/control/Z/runtime.cjs.map +1 -0
- package/_cjs/control/Z.cjs +58 -0
- package/_cjs/control/Z.cjs.map +1 -0
- package/_cjs/data/Byte.cjs +6 -0
- package/_cjs/data/Byte.cjs.map +1 -0
- package/_cjs/data/CaseClass.cjs +127 -0
- package/_cjs/data/CaseClass.cjs.map +1 -0
- package/_cjs/data/Cause/api/fold.cjs +191 -0
- package/_cjs/data/Cause/api/fold.cjs.map +1 -0
- package/_cjs/data/Cause/api/isEmpty.cjs +83 -0
- package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -0
- package/_cjs/data/Cause/api/linearize.cjs +32 -0
- package/_cjs/data/Cause/api/linearize.cjs.map +1 -0
- package/_cjs/data/Cause/api/prettyPrint.cjs +51 -0
- package/_cjs/data/Cause/api/prettyPrint.cjs.map +1 -0
- package/_cjs/data/Cause/api/unified.cjs +168 -0
- package/_cjs/data/Cause/api/unified.cjs.map +1 -0
- package/_cjs/data/Cause/api.cjs +1406 -0
- package/_cjs/data/Cause/api.cjs.map +1 -0
- package/_cjs/data/Cause/definition.cjs +670 -0
- package/_cjs/data/Cause/definition.cjs.map +1 -0
- package/_cjs/data/Cause.cjs +32 -0
- package/_cjs/data/Cause.cjs.map +1 -0
- package/_cjs/data/Const/api.cjs +30 -0
- package/_cjs/data/Const/api.cjs.map +1 -0
- package/_cjs/data/Const/definition.cjs +9 -0
- package/_cjs/data/Const/definition.cjs.map +1 -0
- package/_cjs/data/Const/instances.cjs +50 -0
- package/_cjs/data/Const/instances.cjs.map +1 -0
- package/_cjs/data/Const.cjs +45 -0
- package/_cjs/data/Const.cjs.map +1 -0
- package/_cjs/data/Duration/api.cjs +97 -0
- package/_cjs/data/Duration/api.cjs.map +1 -0
- package/_cjs/data/Duration/definition.cjs +50 -0
- package/_cjs/data/Duration/definition.cjs.map +1 -0
- package/_cjs/data/Duration.cjs +32 -0
- package/_cjs/data/Duration.cjs.map +1 -0
- package/_cjs/data/Either/api/align.cjs +19 -0
- package/_cjs/data/Either/api/align.cjs.map +1 -0
- package/_cjs/data/Either/api/alignWith.cjs +28 -0
- package/_cjs/data/Either/api/alignWith.cjs.map +1 -0
- package/_cjs/data/Either/api.cjs +343 -0
- package/_cjs/data/Either/api.cjs.map +1 -0
- package/_cjs/data/Either/constructors.cjs +95 -0
- package/_cjs/data/Either/constructors.cjs.map +1 -0
- package/_cjs/data/Either/definition.cjs +56 -0
- package/_cjs/data/Either/definition.cjs.map +1 -0
- package/_cjs/data/Either/destructors.cjs +24 -0
- package/_cjs/data/Either/destructors.cjs.map +1 -0
- package/_cjs/data/Either/instances.cjs +85 -0
- package/_cjs/data/Either/instances.cjs.map +1 -0
- package/_cjs/data/Either.cjs +71 -0
- package/_cjs/data/Either.cjs.map +1 -0
- package/_cjs/data/Environment/api.cjs +116 -0
- package/_cjs/data/Environment/api.cjs.map +1 -0
- package/_cjs/data/Environment/definition.cjs +60 -0
- package/_cjs/data/Environment/definition.cjs.map +1 -0
- package/_cjs/data/Environment.cjs +32 -0
- package/_cjs/data/Environment.cjs.map +1 -0
- package/_cjs/data/ExecutionStrategy.cjs +73 -0
- package/_cjs/data/ExecutionStrategy.cjs.map +1 -0
- package/_cjs/data/Exit/api.cjs +259 -0
- package/_cjs/data/Exit/api.cjs.map +1 -0
- package/_cjs/data/Exit/constructors.cjs +93 -0
- package/_cjs/data/Exit/constructors.cjs.map +1 -0
- package/_cjs/data/Exit/definition.cjs +139 -0
- package/_cjs/data/Exit/definition.cjs.map +1 -0
- package/_cjs/data/Exit.cjs +45 -0
- package/_cjs/data/Exit.cjs.map +1 -0
- package/_cjs/data/FiberId/api.cjs +72 -0
- package/_cjs/data/FiberId/api.cjs.map +1 -0
- package/_cjs/data/FiberId/constructors.cjs +41 -0
- package/_cjs/data/FiberId/constructors.cjs.map +1 -0
- package/_cjs/data/FiberId/definition.cjs +130 -0
- package/_cjs/data/FiberId/definition.cjs.map +1 -0
- package/_cjs/data/FiberId.cjs +45 -0
- package/_cjs/data/FiberId.cjs.map +1 -0
- package/_cjs/data/Identity/api.cjs +42 -0
- package/_cjs/data/Identity/api.cjs.map +1 -0
- package/_cjs/data/Identity/definition.cjs +9 -0
- package/_cjs/data/Identity/definition.cjs.map +1 -0
- package/_cjs/data/Identity/instances.cjs +50 -0
- package/_cjs/data/Identity/instances.cjs.map +1 -0
- package/_cjs/data/Identity.cjs +45 -0
- package/_cjs/data/Identity.cjs.map +1 -0
- package/_cjs/data/Maybe/api.cjs +265 -0
- package/_cjs/data/Maybe/api.cjs.map +1 -0
- package/_cjs/data/Maybe/constructors.cjs +117 -0
- package/_cjs/data/Maybe/constructors.cjs.map +1 -0
- package/_cjs/data/Maybe/definition.cjs +128 -0
- package/_cjs/data/Maybe/definition.cjs.map +1 -0
- package/_cjs/data/Maybe/destructors.cjs +19 -0
- package/_cjs/data/Maybe/destructors.cjs.map +1 -0
- package/_cjs/data/Maybe/instances.cjs +68 -0
- package/_cjs/data/Maybe/instances.cjs.map +1 -0
- package/_cjs/data/Maybe.cjs +71 -0
- package/_cjs/data/Maybe.cjs.map +1 -0
- package/_cjs/data/Newtype.cjs +27 -0
- package/_cjs/data/Newtype.cjs.map +1 -0
- package/_cjs/data/Patch/api.cjs +137 -0
- package/_cjs/data/Patch/api.cjs.map +1 -0
- package/_cjs/data/Patch/definition.cjs +88 -0
- package/_cjs/data/Patch/definition.cjs.map +1 -0
- package/_cjs/data/Patch.cjs +32 -0
- package/_cjs/data/Patch.cjs.map +1 -0
- package/_cjs/data/Predicate/api.cjs +41 -0
- package/_cjs/data/Predicate/api.cjs.map +1 -0
- package/_cjs/data/Predicate/definition.cjs +6 -0
- package/_cjs/data/Predicate/definition.cjs.map +1 -0
- package/_cjs/data/Predicate.cjs +32 -0
- package/_cjs/data/Predicate.cjs.map +1 -0
- package/_cjs/data/Refinement/api.cjs +43 -0
- package/_cjs/data/Refinement/api.cjs.map +1 -0
- package/_cjs/data/Refinement/definition.cjs +6 -0
- package/_cjs/data/Refinement/definition.cjs.map +1 -0
- package/_cjs/data/Refinement.cjs +32 -0
- package/_cjs/data/Refinement.cjs.map +1 -0
- package/_cjs/data/Struct/api.cjs +37 -0
- package/_cjs/data/Struct/api.cjs.map +1 -0
- package/_cjs/data/Struct/definition.cjs +16 -0
- package/_cjs/data/Struct/definition.cjs.map +1 -0
- package/_cjs/data/Tag/constructors.cjs +20 -0
- package/_cjs/data/Tag/constructors.cjs.map +1 -0
- package/_cjs/data/Tag/definition.cjs +57 -0
- package/_cjs/data/Tag/definition.cjs.map +1 -0
- package/_cjs/data/Tag.cjs +32 -0
- package/_cjs/data/Tag.cjs.map +1 -0
- package/_cjs/data/These/constructors.cjs +37 -0
- package/_cjs/data/These/constructors.cjs.map +1 -0
- package/_cjs/data/These/definition.cjs +63 -0
- package/_cjs/data/These/definition.cjs.map +1 -0
- package/_cjs/data/These/destructors.cjs +29 -0
- package/_cjs/data/These/destructors.cjs.map +1 -0
- package/_cjs/data/These.cjs +45 -0
- package/_cjs/data/These.cjs.map +1 -0
- package/_cjs/data/Trace/api.cjs +35 -0
- package/_cjs/data/Trace/api.cjs.map +1 -0
- package/_cjs/data/Trace/constructors.cjs +32 -0
- package/_cjs/data/Trace/constructors.cjs.map +1 -0
- package/_cjs/data/Trace/definition.cjs +21 -0
- package/_cjs/data/Trace/definition.cjs.map +1 -0
- package/_cjs/data/Trace.cjs +45 -0
- package/_cjs/data/Trace.cjs.map +1 -0
- package/_cjs/data/TraceElement/definition.cjs +75 -0
- package/_cjs/data/TraceElement/definition.cjs.map +1 -0
- package/_cjs/data/TraceElement.cjs +19 -0
- package/_cjs/data/TraceElement.cjs.map +1 -0
- package/_cjs/data/exceptions/ArrayIndexOutOfBoundsError.cjs +20 -0
- package/_cjs/data/exceptions/ArrayIndexOutOfBoundsError.cjs.map +1 -0
- package/_cjs/data/exceptions/IllegalArgumentError.cjs +21 -0
- package/_cjs/data/exceptions/IllegalArgumentError.cjs.map +1 -0
- package/_cjs/data/exceptions/IllegalStateError.cjs +20 -0
- package/_cjs/data/exceptions/IllegalStateError.cjs.map +1 -0
- package/_cjs/data/exceptions/IndexOutOfBoundsError.cjs +20 -0
- package/_cjs/data/exceptions/IndexOutOfBoundsError.cjs.map +1 -0
- package/_cjs/data/exceptions/InterruptedException.cjs +27 -0
- package/_cjs/data/exceptions/InterruptedException.cjs.map +1 -0
- package/_cjs/data/exceptions/InvalidCapacityError.cjs +23 -0
- package/_cjs/data/exceptions/InvalidCapacityError.cjs.map +1 -0
- package/_cjs/data/exceptions/NoSuchElementError.cjs +20 -0
- package/_cjs/data/exceptions/NoSuchElementError.cjs.map +1 -0
- package/_cjs/data/exceptions.cjs +97 -0
- package/_cjs/data/exceptions.cjs.map +1 -0
- package/_cjs/data/function/api.cjs +52 -0
- package/_cjs/data/function/api.cjs.map +1 -0
- package/_cjs/data/function/definition.cjs +6 -0
- package/_cjs/data/function/definition.cjs.map +1 -0
- package/_cjs/data/function/pipe.cjs +74 -0
- package/_cjs/data/function/pipe.cjs.map +1 -0
- package/_cjs/data/function.cjs +45 -0
- package/_cjs/data/function.cjs.map +1 -0
- package/_cjs/data/number/api.cjs +14 -0
- package/_cjs/data/number/api.cjs.map +1 -0
- package/_cjs/data/number/definition.cjs +6 -0
- package/_cjs/data/number/definition.cjs.map +1 -0
- package/_cjs/data/number/instances.cjs +34 -0
- package/_cjs/data/number/instances.cjs.map +1 -0
- package/_cjs/data/number.cjs +45 -0
- package/_cjs/data/number.cjs.map +1 -0
- package/_cjs/data/object/definition.cjs +6 -0
- package/_cjs/data/object/definition.cjs.map +1 -0
- package/_cjs/data/object.cjs +19 -0
- package/_cjs/data/object.cjs.map +1 -0
- package/_cjs/data/string/api.cjs +254 -0
- package/_cjs/data/string/api.cjs.map +1 -0
- package/_cjs/data/string/definition.cjs +6 -0
- package/_cjs/data/string/definition.cjs.map +1 -0
- package/_cjs/data/string/instances.cjs +55 -0
- package/_cjs/data/string/instances.cjs.map +1 -0
- package/_cjs/data/string.cjs +45 -0
- package/_cjs/data/string.cjs.map +1 -0
- package/_cjs/global/api.cjs +11 -0
- package/_cjs/global/api.cjs.map +1 -0
- package/_cjs/internal/AtomicBoolean.cjs +18 -0
- package/_cjs/internal/AtomicBoolean.cjs.map +1 -0
- package/_cjs/internal/AtomicNumber.cjs +36 -0
- package/_cjs/internal/AtomicNumber.cjs.map +1 -0
- package/_cjs/internal/AtomicReference.cjs +40 -0
- package/_cjs/internal/AtomicReference.cjs.map +1 -0
- package/_cjs/internal/Stack.cjs +69 -0
- package/_cjs/internal/Stack.cjs.map +1 -0
- package/_cjs/optics/At/api.cjs +24 -0
- package/_cjs/optics/At/api.cjs.map +1 -0
- package/_cjs/optics/At/definition.cjs +34 -0
- package/_cjs/optics/At/definition.cjs.map +1 -0
- package/_cjs/optics/At.cjs +32 -0
- package/_cjs/optics/At.cjs.map +1 -0
- package/_cjs/optics/Fold/definition.cjs +21 -0
- package/_cjs/optics/Fold/definition.cjs.map +1 -0
- package/_cjs/optics/Fold.cjs +19 -0
- package/_cjs/optics/Fold.cjs.map +1 -0
- package/_cjs/optics/Getter/definition.cjs +22 -0
- package/_cjs/optics/Getter/definition.cjs.map +1 -0
- package/_cjs/optics/Getter.cjs +19 -0
- package/_cjs/optics/Getter.cjs.map +1 -0
- package/_cjs/optics/Index/api.cjs +37 -0
- package/_cjs/optics/Index/api.cjs.map +1 -0
- package/_cjs/optics/Index/definition.cjs +20 -0
- package/_cjs/optics/Index/definition.cjs.map +1 -0
- package/_cjs/optics/Index.cjs +32 -0
- package/_cjs/optics/Index.cjs.map +1 -0
- package/_cjs/optics/Iso/api.cjs +25 -0
- package/_cjs/optics/Iso/api.cjs.map +1 -0
- package/_cjs/optics/Iso/definition.cjs +54 -0
- package/_cjs/optics/Iso/definition.cjs.map +1 -0
- package/_cjs/optics/Iso.cjs +32 -0
- package/_cjs/optics/Iso.cjs.map +1 -0
- package/_cjs/optics/Lens/api.cjs +171 -0
- package/_cjs/optics/Lens/api.cjs.map +1 -0
- package/_cjs/optics/Lens/definition.cjs +50 -0
- package/_cjs/optics/Lens/definition.cjs.map +1 -0
- package/_cjs/optics/Lens.cjs +32 -0
- package/_cjs/optics/Lens.cjs.map +1 -0
- package/_cjs/optics/Optional/api/compose.cjs +27 -0
- package/_cjs/optics/Optional/api/compose.cjs.map +1 -0
- package/_cjs/optics/Optional/definition.cjs +57 -0
- package/_cjs/optics/Optional/definition.cjs.map +1 -0
- package/_cjs/optics/Optional.cjs +32 -0
- package/_cjs/optics/Optional.cjs.map +1 -0
- package/_cjs/optics/Prism/api/compose.cjs +29 -0
- package/_cjs/optics/Prism/api/compose.cjs.map +1 -0
- package/_cjs/optics/Prism/api/fromNullable.cjs +27 -0
- package/_cjs/optics/Prism/api/fromNullable.cjs.map +1 -0
- package/_cjs/optics/Prism/api/just.cjs +29 -0
- package/_cjs/optics/Prism/api/just.cjs.map +1 -0
- package/_cjs/optics/Prism/definition.cjs +48 -0
- package/_cjs/optics/Prism/definition.cjs.map +1 -0
- package/_cjs/optics/Prism.cjs +58 -0
- package/_cjs/optics/Prism.cjs.map +1 -0
- package/_cjs/optics/Setter/definition.cjs +33 -0
- package/_cjs/optics/Setter/definition.cjs.map +1 -0
- package/_cjs/optics/Setter.cjs +19 -0
- package/_cjs/optics/Setter.cjs.map +1 -0
- package/_cjs/optics/Traversal/api/compose.cjs +22 -0
- package/_cjs/optics/Traversal/api/compose.cjs.map +1 -0
- package/_cjs/optics/Traversal/api/fromTraversable.cjs +22 -0
- package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -0
- package/_cjs/optics/Traversal/definition.cjs +53 -0
- package/_cjs/optics/Traversal/definition.cjs.map +1 -0
- package/_cjs/optics/Traversal.cjs +45 -0
- package/_cjs/optics/Traversal.cjs.map +1 -0
- package/_cjs/typeclass/Align.cjs +29 -0
- package/_cjs/typeclass/Align.cjs.map +1 -0
- package/_cjs/typeclass/Alt.cjs +26 -0
- package/_cjs/typeclass/Alt.cjs.map +1 -0
- package/_cjs/typeclass/Alternative.cjs +32 -0
- package/_cjs/typeclass/Alternative.cjs.map +1 -0
- package/_cjs/typeclass/Applicative.cjs +31 -0
- package/_cjs/typeclass/Applicative.cjs.map +1 -0
- package/_cjs/typeclass/ApplicativeExcept.cjs +56 -0
- package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -0
- package/_cjs/typeclass/Apply.cjs +136 -0
- package/_cjs/typeclass/Apply.cjs.map +1 -0
- package/_cjs/typeclass/Chain.cjs +35 -0
- package/_cjs/typeclass/Chain.cjs.map +1 -0
- package/_cjs/typeclass/Closure.cjs +21 -0
- package/_cjs/typeclass/Closure.cjs.map +1 -0
- package/_cjs/typeclass/Eq.cjs +21 -0
- package/_cjs/typeclass/Eq.cjs.map +1 -0
- package/_cjs/typeclass/Equatable/api.cjs +45 -0
- package/_cjs/typeclass/Equatable/api.cjs.map +1 -0
- package/_cjs/typeclass/Equatable/definition.cjs +28 -0
- package/_cjs/typeclass/Equatable/definition.cjs.map +1 -0
- package/_cjs/typeclass/Equatable/fast-equals.cjs +520 -0
- package/_cjs/typeclass/Equatable/fast-equals.cjs.map +1 -0
- package/_cjs/typeclass/Equatable.cjs +45 -0
- package/_cjs/typeclass/Equatable.cjs.map +1 -0
- package/_cjs/typeclass/Fail.cjs +22 -0
- package/_cjs/typeclass/Fail.cjs.map +1 -0
- package/_cjs/typeclass/Filterable.cjs +32 -0
- package/_cjs/typeclass/Filterable.cjs.map +1 -0
- package/_cjs/typeclass/FilterableWithIndex.cjs +35 -0
- package/_cjs/typeclass/FilterableWithIndex.cjs.map +1 -0
- package/_cjs/typeclass/Foldable.cjs +34 -0
- package/_cjs/typeclass/Foldable.cjs.map +1 -0
- package/_cjs/typeclass/FoldableWithIndex.cjs +36 -0
- package/_cjs/typeclass/FoldableWithIndex.cjs.map +1 -0
- package/_cjs/typeclass/Functor.cjs +30 -0
- package/_cjs/typeclass/Functor.cjs.map +1 -0
- package/_cjs/typeclass/FunctorWithIndex.cjs +30 -0
- package/_cjs/typeclass/FunctorWithIndex.cjs.map +1 -0
- package/_cjs/typeclass/Has.cjs +17 -0
- package/_cjs/typeclass/Has.cjs.map +1 -0
- package/_cjs/typeclass/Hash.cjs +18 -0
- package/_cjs/typeclass/Hash.cjs.map +1 -0
- package/_cjs/typeclass/HashEq.cjs +51 -0
- package/_cjs/typeclass/HashEq.cjs.map +1 -0
- package/_cjs/typeclass/Hashable/definition.cjs +28 -0
- package/_cjs/typeclass/Hashable/definition.cjs.map +1 -0
- package/_cjs/typeclass/Hashable/hash.cjs +267 -0
- package/_cjs/typeclass/Hashable/hash.cjs.map +1 -0
- package/_cjs/typeclass/Hashable.cjs +32 -0
- package/_cjs/typeclass/Hashable.cjs.map +1 -0
- package/_cjs/typeclass/Monad.cjs +31 -0
- package/_cjs/typeclass/Monad.cjs.map +1 -0
- package/_cjs/typeclass/MonadExcept.cjs +36 -0
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -0
- package/_cjs/typeclass/Monoid.cjs +27 -0
- package/_cjs/typeclass/Monoid.cjs.map +1 -0
- package/_cjs/typeclass/Nil.cjs +6 -0
- package/_cjs/typeclass/Nil.cjs.map +1 -0
- package/_cjs/typeclass/Ord/api/contramap.cjs +19 -0
- package/_cjs/typeclass/Ord/api/contramap.cjs.map +1 -0
- package/_cjs/typeclass/Ord/api/max.cjs +15 -0
- package/_cjs/typeclass/Ord/api/max.cjs.map +1 -0
- package/_cjs/typeclass/Ord/api/min.cjs +15 -0
- package/_cjs/typeclass/Ord/api/min.cjs.map +1 -0
- package/_cjs/typeclass/Ord/api.cjs +45 -0
- package/_cjs/typeclass/Ord/api.cjs.map +1 -0
- package/_cjs/typeclass/Ord/definition.cjs +28 -0
- package/_cjs/typeclass/Ord/definition.cjs.map +1 -0
- package/_cjs/typeclass/Ord/instances.cjs +52 -0
- package/_cjs/typeclass/Ord/instances.cjs.map +1 -0
- package/_cjs/typeclass/Ord.cjs +45 -0
- package/_cjs/typeclass/Ord.cjs.map +1 -0
- package/_cjs/typeclass/Ordering.cjs +57 -0
- package/_cjs/typeclass/Ordering.cjs.map +1 -0
- package/_cjs/typeclass/Pointed.cjs +25 -0
- package/_cjs/typeclass/Pointed.cjs.map +1 -0
- package/_cjs/typeclass/Semialign.cjs +121 -0
- package/_cjs/typeclass/Semialign.cjs.map +1 -0
- package/_cjs/typeclass/Semigroup/api.cjs +37 -0
- package/_cjs/typeclass/Semigroup/api.cjs.map +1 -0
- package/_cjs/typeclass/Semigroup/definition.cjs +18 -0
- package/_cjs/typeclass/Semigroup/definition.cjs.map +1 -0
- package/_cjs/typeclass/Semigroup.cjs +32 -0
- package/_cjs/typeclass/Semigroup.cjs.map +1 -0
- package/_cjs/typeclass/Semimonoidal.cjs +24 -0
- package/_cjs/typeclass/Semimonoidal.cjs.map +1 -0
- package/_cjs/typeclass/Showable/definition.cjs +32 -0
- package/_cjs/typeclass/Showable/definition.cjs.map +1 -0
- package/_cjs/typeclass/Showable/show.cjs +837 -0
- package/_cjs/typeclass/Showable/show.cjs.map +1 -0
- package/_cjs/typeclass/Showable/styles.cjs +39 -0
- package/_cjs/typeclass/Showable/styles.cjs.map +1 -0
- package/_cjs/typeclass/Showable/util.cjs +433 -0
- package/_cjs/typeclass/Showable/util.cjs.map +1 -0
- package/_cjs/typeclass/Showable.cjs +32 -0
- package/_cjs/typeclass/Showable.cjs.map +1 -0
- package/_cjs/typeclass/Traversable.cjs +54 -0
- package/_cjs/typeclass/Traversable.cjs.map +1 -0
- package/_cjs/typeclass/TraversableWithIndex.cjs +49 -0
- package/_cjs/typeclass/TraversableWithIndex.cjs.map +1 -0
- package/_cjs/typeclass/Witherable.cjs +68 -0
- package/_cjs/typeclass/Witherable.cjs.map +1 -0
- package/_cjs/typeclass/WitherableWithIndex.cjs +76 -0
- package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -0
- package/_cjs/typeclass/builtin/Symbol.cjs +6 -0
- package/_cjs/typeclass/builtin/Symbol.cjs.map +1 -0
- package/_cjs/typeclass/builtin.cjs +19 -0
- package/_cjs/typeclass/builtin.cjs.map +1 -0
- package/_cjs/typeclass.cjs +474 -0
- package/_cjs/typeclass.cjs.map +1 -0
- package/_cjs/types/extractions.cjs +6 -0
- package/_cjs/types/extractions.cjs.map +1 -0
- package/_cjs/types/test.cjs +6 -0
- package/_cjs/types/test.cjs.map +1 -0
- package/_cjs/types/utility.cjs +6 -0
- package/_cjs/types/utility.cjs.map +1 -0
- package/_cjs/types.cjs +45 -0
- package/_cjs/types.cjs.map +1 -0
- package/_cjs/util/AnsiFormat.cjs +338 -0
- package/_cjs/util/AnsiFormat.cjs.map +1 -0
- package/_cjs/util/PCGRandom.cjs +177 -0
- package/_cjs/util/PCGRandom.cjs.map +1 -0
- package/_cjs/util/assert.cjs +24 -0
- package/_cjs/util/assert.cjs.map +1 -0
- package/_cjs/util/pattern.cjs +23 -0
- package/_cjs/util/pattern.cjs.map +1 -0
- package/_cjs/util/predicates.cjs +157 -0
- package/_cjs/util/predicates.cjs.map +1 -0
- package/_cjs/util/rand/Random.cjs +103 -0
- package/_cjs/util/rand/Random.cjs.map +1 -0
- package/_cjs/util/rand/distribution/Distribution.cjs +6 -0
- package/_cjs/util/rand/distribution/Distribution.cjs.map +1 -0
- package/_cjs/util/rand/distribution/UniformArrayIntDistribution.cjs +32 -0
- package/_cjs/util/rand/distribution/UniformArrayIntDistribution.cjs.map +1 -0
- package/_cjs/util/rand/distribution/UniformBigIntDistribution.cjs +50 -0
- package/_cjs/util/rand/distribution/UniformBigIntDistribution.cjs.map +1 -0
- package/_cjs/util/rand/distribution/UniformIntDistribution.cjs +70 -0
- package/_cjs/util/rand/distribution/UniformIntDistribution.cjs.map +1 -0
- package/_cjs/util/rand/distribution/internals/ArrayInt.cjs +220 -0
- package/_cjs/util/rand/distribution/internals/ArrayInt.cjs.map +1 -0
- package/_cjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.cjs +44 -0
- package/_cjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.cjs.map +1 -0
- package/_cjs/util/rand/distribution/internals/UniformIntDistributionInternal.cjs +56 -0
- package/_cjs/util/rand/distribution/internals/UniformIntDistributionInternal.cjs.map +1 -0
- package/_cjs/util/rand/generator/MersenneTwister.cjs +115 -0
- package/_cjs/util/rand/generator/MersenneTwister.cjs.map +1 -0
- package/_cjs/util/rand/generator/RandomGenerator.cjs +23 -0
- package/_cjs/util/rand/generator/RandomGenerator.cjs.map +1 -0
- package/_cjs/util/rand.cjs +88 -0
- package/_cjs/util/rand.cjs.map +1 -0
- package/_mjs/collection/Iterable/api/traverseConc.mjs +28 -0
- package/_mjs/collection/Iterable/api/traverseConc.mjs.map +1 -0
- package/_mjs/collection/Iterable/api.mjs +784 -0
- package/_mjs/collection/Iterable/api.mjs.map +1 -0
- package/_mjs/collection/Iterable/constructors.mjs +100 -0
- package/_mjs/collection/Iterable/constructors.mjs.map +1 -0
- package/_mjs/collection/Iterable/definition.mjs +2 -0
- package/_mjs/collection/Iterable/definition.mjs.map +1 -0
- package/_mjs/collection/Iterable.mjs +5 -0
- package/_mjs/collection/Iterable.mjs.map +1 -0
- package/_mjs/collection/compat/Array/api.mjs +56 -0
- package/_mjs/collection/compat/Array/api.mjs.map +1 -0
- package/_mjs/collection/compat/Array/definition.mjs +2 -0
- package/_mjs/collection/compat/Array/definition.mjs.map +1 -0
- package/_mjs/collection/compat/Array.mjs +4 -0
- package/_mjs/collection/compat/Array.mjs.map +1 -0
- package/_mjs/collection/compat/ArrayLike/api.mjs +40 -0
- package/_mjs/collection/compat/ArrayLike/api.mjs.map +1 -0
- package/_mjs/collection/compat/ArrayLike/definition.mjs +2 -0
- package/_mjs/collection/compat/ArrayLike/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/api/empty.mjs +9 -0
- package/_mjs/collection/immutable/Conc/api/empty.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs +22 -0
- package/_mjs/collection/immutable/Conc/api/makeBy.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/api/replicate.mjs +9 -0
- package/_mjs/collection/immutable/Conc/api/replicate.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/api.mjs +1340 -0
- package/_mjs/collection/immutable/Conc/api.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/constructors.mjs +40 -0
- package/_mjs/collection/immutable/Conc/constructors.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/definition.mjs +798 -0
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc.mjs +10 -0
- package/_mjs/collection/immutable/Conc.mjs.map +1 -0
- package/_mjs/collection/immutable/Dictionary/api.mjs +62 -0
- package/_mjs/collection/immutable/Dictionary/api.mjs.map +1 -0
- package/_mjs/collection/immutable/Dictionary/definition.mjs +3 -0
- package/_mjs/collection/immutable/Dictionary/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/HashMap/api.mjs +724 -0
- package/_mjs/collection/immutable/HashMap/api.mjs.map +1 -0
- package/_mjs/collection/immutable/HashMap/definition.mjs +111 -0
- package/_mjs/collection/immutable/HashMap/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/HashMap/internal.mjs +352 -0
- package/_mjs/collection/immutable/HashMap/internal.mjs.map +1 -0
- package/_mjs/collection/immutable/HashMap.mjs +4 -0
- package/_mjs/collection/immutable/HashMap.mjs.map +1 -0
- package/_mjs/collection/immutable/HashSet/api.mjs +515 -0
- package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -0
- package/_mjs/collection/immutable/HashSet/definition.mjs +370 -0
- package/_mjs/collection/immutable/HashSet/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/HashSet.mjs +4 -0
- package/_mjs/collection/immutable/HashSet.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +1514 -0
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs +56 -0
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs +34 -0
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs +142 -0
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableArray.mjs +6 -0
- package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +521 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs +76 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs +14 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs +52 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +110 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs +7 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs.map +1 -0
- package/_mjs/collection/immutable/List/api/foldLeft.mjs +17 -0
- package/_mjs/collection/immutable/List/api/foldLeft.mjs.map +1 -0
- package/_mjs/collection/immutable/List/api/unsafeTail.mjs +14 -0
- package/_mjs/collection/immutable/List/api/unsafeTail.mjs.map +1 -0
- package/_mjs/collection/immutable/List/api.mjs +388 -0
- package/_mjs/collection/immutable/List/api.mjs.map +1 -0
- package/_mjs/collection/immutable/List/constructors.mjs +71 -0
- package/_mjs/collection/immutable/List/constructors.mjs.map +1 -0
- package/_mjs/collection/immutable/List/definition.mjs +106 -0
- package/_mjs/collection/immutable/List/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/List.mjs +9 -0
- package/_mjs/collection/immutable/List.mjs.map +1 -0
- package/_mjs/collection/immutable/Queue/api.mjs +165 -0
- package/_mjs/collection/immutable/Queue/api.mjs.map +1 -0
- package/_mjs/collection/immutable/Queue/constructors.mjs +18 -0
- package/_mjs/collection/immutable/Queue/constructors.mjs.map +1 -0
- package/_mjs/collection/immutable/Queue/definition.mjs +38 -0
- package/_mjs/collection/immutable/Queue/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/Queue/guards.mjs +9 -0
- package/_mjs/collection/immutable/Queue/guards.mjs.map +1 -0
- package/_mjs/collection/immutable/Queue.mjs +6 -0
- package/_mjs/collection/immutable/Queue.mjs.map +1 -0
- package/_mjs/collection/immutable/SortedMap/api.mjs +631 -0
- package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -0
- package/_mjs/collection/immutable/SortedMap/definition.mjs +18 -0
- package/_mjs/collection/immutable/SortedMap/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/SortedMap/internal.mjs +515 -0
- package/_mjs/collection/immutable/SortedMap/internal.mjs.map +1 -0
- package/_mjs/collection/immutable/SortedMap/iterator.mjs +373 -0
- package/_mjs/collection/immutable/SortedMap/iterator.mjs.map +1 -0
- package/_mjs/collection/immutable/SortedMap/node.mjs +13 -0
- package/_mjs/collection/immutable/SortedMap/node.mjs.map +1 -0
- package/_mjs/collection/immutable/SortedMap.mjs +7 -0
- package/_mjs/collection/immutable/SortedMap.mjs.map +1 -0
- package/_mjs/collection/immutable/Vector/api.mjs +1367 -0
- package/_mjs/collection/immutable/Vector/api.mjs.map +1 -0
- package/_mjs/collection/immutable/Vector/definition.mjs +81 -0
- package/_mjs/collection/immutable/Vector/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/Vector/internal.mjs +1557 -0
- package/_mjs/collection/immutable/Vector/internal.mjs.map +1 -0
- package/_mjs/collection/immutable/Vector.mjs +4 -0
- package/_mjs/collection/immutable/Vector.mjs.map +1 -0
- package/_mjs/collection/mutable/HashMap.mjs +370 -0
- package/_mjs/collection/mutable/HashMap.mjs.map +1 -0
- package/_mjs/collection/mutable/HashSet.mjs +290 -0
- package/_mjs/collection/mutable/HashSet.mjs.map +1 -0
- package/_mjs/collection/mutable/ListBuffer.mjs +141 -0
- package/_mjs/collection/mutable/ListBuffer.mjs.map +1 -0
- package/_mjs/collection/mutable/internal.mjs +26 -0
- package/_mjs/collection/mutable/internal.mjs.map +1 -0
- package/_mjs/control/Eval/api/sequenceArray.mjs +10 -0
- package/_mjs/control/Eval/api/sequenceArray.mjs.map +1 -0
- package/_mjs/control/Eval/api.mjs +98 -0
- package/_mjs/control/Eval/api.mjs.map +1 -0
- package/_mjs/control/Eval/constructors.mjs +35 -0
- package/_mjs/control/Eval/constructors.mjs.map +1 -0
- package/_mjs/control/Eval/definition.mjs +47 -0
- package/_mjs/control/Eval/definition.mjs.map +1 -0
- package/_mjs/control/Eval/instance.mjs +33 -0
- package/_mjs/control/Eval/instance.mjs.map +1 -0
- package/_mjs/control/Eval/run.mjs +60 -0
- package/_mjs/control/Eval/run.mjs.map +1 -0
- package/_mjs/control/Eval.mjs +7 -0
- package/_mjs/control/Eval.mjs.map +1 -0
- package/_mjs/control/LazyValue.mjs +27 -0
- package/_mjs/control/LazyValue.mjs.map +1 -0
- package/_mjs/control/Z/api.mjs +541 -0
- package/_mjs/control/Z/api.mjs.map +1 -0
- package/_mjs/control/Z/definition.mjs +169 -0
- package/_mjs/control/Z/definition.mjs.map +1 -0
- package/_mjs/control/Z/instances.mjs +14 -0
- package/_mjs/control/Z/instances.mjs.map +1 -0
- package/_mjs/control/Z/runtime.mjs +354 -0
- package/_mjs/control/Z/runtime.mjs.map +1 -0
- package/_mjs/control/Z.mjs +6 -0
- package/_mjs/control/Z.mjs.map +1 -0
- package/_mjs/data/Byte.mjs +2 -0
- package/_mjs/data/Byte.mjs.map +1 -0
- package/_mjs/data/CaseClass.mjs +103 -0
- package/_mjs/data/CaseClass.mjs.map +1 -0
- package/_mjs/data/Cause/api/fold.mjs +174 -0
- package/_mjs/data/Cause/api/fold.mjs.map +1 -0
- package/_mjs/data/Cause/api/isEmpty.mjs +72 -0
- package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -0
- package/_mjs/data/Cause/api/linearize.mjs +19 -0
- package/_mjs/data/Cause/api/linearize.mjs.map +1 -0
- package/_mjs/data/Cause/api/prettyPrint.mjs +37 -0
- package/_mjs/data/Cause/api/prettyPrint.mjs.map +1 -0
- package/_mjs/data/Cause/api/unified.mjs +150 -0
- package/_mjs/data/Cause/api/unified.mjs.map +1 -0
- package/_mjs/data/Cause/api.mjs +1200 -0
- package/_mjs/data/Cause/api.mjs.map +1 -0
- package/_mjs/data/Cause/definition.mjs +612 -0
- package/_mjs/data/Cause/definition.mjs.map +1 -0
- package/_mjs/data/Cause.mjs +4 -0
- package/_mjs/data/Cause.mjs.map +1 -0
- package/_mjs/data/Const/api.mjs +17 -0
- package/_mjs/data/Const/api.mjs.map +1 -0
- package/_mjs/data/Const/definition.mjs +2 -0
- package/_mjs/data/Const/definition.mjs.map +1 -0
- package/_mjs/data/Const/instances.mjs +32 -0
- package/_mjs/data/Const/instances.mjs.map +1 -0
- package/_mjs/data/Const.mjs +5 -0
- package/_mjs/data/Const.mjs.map +1 -0
- package/_mjs/data/Duration/api.mjs +70 -0
- package/_mjs/data/Duration/api.mjs.map +1 -0
- package/_mjs/data/Duration/definition.mjs +29 -0
- package/_mjs/data/Duration/definition.mjs.map +1 -0
- package/_mjs/data/Duration.mjs +4 -0
- package/_mjs/data/Duration.mjs.map +1 -0
- package/_mjs/data/Either/api/align.mjs +6 -0
- package/_mjs/data/Either/api/align.mjs.map +1 -0
- package/_mjs/data/Either/api/alignWith.mjs +16 -0
- package/_mjs/data/Either/api/alignWith.mjs.map +1 -0
- package/_mjs/data/Either/api.mjs +211 -0
- package/_mjs/data/Either/api.mjs.map +1 -0
- package/_mjs/data/Either/constructors.mjs +70 -0
- package/_mjs/data/Either/constructors.mjs.map +1 -0
- package/_mjs/data/Either/definition.mjs +40 -0
- package/_mjs/data/Either/definition.mjs.map +1 -0
- package/_mjs/data/Either/destructors.mjs +17 -0
- package/_mjs/data/Either/destructors.mjs.map +1 -0
- package/_mjs/data/Either/instances.mjs +66 -0
- package/_mjs/data/Either/instances.mjs.map +1 -0
- package/_mjs/data/Either.mjs +7 -0
- package/_mjs/data/Either.mjs.map +1 -0
- package/_mjs/data/Environment/api.mjs +87 -0
- package/_mjs/data/Environment/api.mjs.map +1 -0
- package/_mjs/data/Environment/definition.mjs +38 -0
- package/_mjs/data/Environment/definition.mjs.map +1 -0
- package/_mjs/data/Environment.mjs +4 -0
- package/_mjs/data/Environment.mjs.map +1 -0
- package/_mjs/data/ExecutionStrategy.mjs +57 -0
- package/_mjs/data/ExecutionStrategy.mjs.map +1 -0
- package/_mjs/data/Exit/api.mjs +206 -0
- package/_mjs/data/Exit/api.mjs.map +1 -0
- package/_mjs/data/Exit/constructors.mjs +65 -0
- package/_mjs/data/Exit/constructors.mjs.map +1 -0
- package/_mjs/data/Exit/definition.mjs +106 -0
- package/_mjs/data/Exit/definition.mjs.map +1 -0
- package/_mjs/data/Exit.mjs +5 -0
- package/_mjs/data/Exit.mjs.map +1 -0
- package/_mjs/data/FiberId/api.mjs +55 -0
- package/_mjs/data/FiberId/api.mjs.map +1 -0
- package/_mjs/data/FiberId/constructors.mjs +24 -0
- package/_mjs/data/FiberId/constructors.mjs.map +1 -0
- package/_mjs/data/FiberId/definition.mjs +101 -0
- package/_mjs/data/FiberId/definition.mjs.map +1 -0
- package/_mjs/data/FiberId.mjs +5 -0
- package/_mjs/data/FiberId.mjs.map +1 -0
- package/_mjs/data/Identity/api.mjs +29 -0
- package/_mjs/data/Identity/api.mjs.map +1 -0
- package/_mjs/data/Identity/definition.mjs +2 -0
- package/_mjs/data/Identity/definition.mjs.map +1 -0
- package/_mjs/data/Identity/instances.mjs +32 -0
- package/_mjs/data/Identity/instances.mjs.map +1 -0
- package/_mjs/data/Identity.mjs +5 -0
- package/_mjs/data/Identity.mjs.map +1 -0
- package/_mjs/data/Maybe/api.mjs +206 -0
- package/_mjs/data/Maybe/api.mjs.map +1 -0
- package/_mjs/data/Maybe/constructors.mjs +92 -0
- package/_mjs/data/Maybe/constructors.mjs.map +1 -0
- package/_mjs/data/Maybe/definition.mjs +99 -0
- package/_mjs/data/Maybe/definition.mjs.map +1 -0
- package/_mjs/data/Maybe/destructors.mjs +12 -0
- package/_mjs/data/Maybe/destructors.mjs.map +1 -0
- package/_mjs/data/Maybe/instances.mjs +42 -0
- package/_mjs/data/Maybe/instances.mjs.map +1 -0
- package/_mjs/data/Maybe.mjs +7 -0
- package/_mjs/data/Maybe.mjs.map +1 -0
- package/_mjs/data/Newtype.mjs +11 -0
- package/_mjs/data/Newtype.mjs.map +1 -0
- package/_mjs/data/Patch/api.mjs +111 -0
- package/_mjs/data/Patch/api.mjs.map +1 -0
- package/_mjs/data/Patch/definition.mjs +61 -0
- package/_mjs/data/Patch/definition.mjs.map +1 -0
- package/_mjs/data/Patch.mjs +4 -0
- package/_mjs/data/Patch.mjs.map +1 -0
- package/_mjs/data/Predicate/api.mjs +28 -0
- package/_mjs/data/Predicate/api.mjs.map +1 -0
- package/_mjs/data/Predicate/definition.mjs +2 -0
- package/_mjs/data/Predicate/definition.mjs.map +1 -0
- package/_mjs/data/Predicate.mjs +4 -0
- package/_mjs/data/Predicate.mjs.map +1 -0
- package/_mjs/data/Refinement/api.mjs +30 -0
- package/_mjs/data/Refinement/api.mjs.map +1 -0
- package/_mjs/data/Refinement/definition.mjs +2 -0
- package/_mjs/data/Refinement/definition.mjs.map +1 -0
- package/_mjs/data/Refinement.mjs +4 -0
- package/_mjs/data/Refinement.mjs.map +1 -0
- package/_mjs/data/Struct/api.mjs +26 -0
- package/_mjs/data/Struct/api.mjs.map +1 -0
- package/_mjs/data/Struct/definition.mjs +3 -0
- package/_mjs/data/Struct/definition.mjs.map +1 -0
- package/_mjs/data/Tag/constructors.mjs +9 -0
- package/_mjs/data/Tag/constructors.mjs.map +1 -0
- package/_mjs/data/Tag/definition.mjs +36 -0
- package/_mjs/data/Tag/definition.mjs.map +1 -0
- package/_mjs/data/Tag.mjs +4 -0
- package/_mjs/data/Tag.mjs.map +1 -0
- package/_mjs/data/These/constructors.mjs +26 -0
- package/_mjs/data/These/constructors.mjs.map +1 -0
- package/_mjs/data/These/definition.mjs +46 -0
- package/_mjs/data/These/definition.mjs.map +1 -0
- package/_mjs/data/These/destructors.mjs +22 -0
- package/_mjs/data/These/destructors.mjs.map +1 -0
- package/_mjs/data/These.mjs +5 -0
- package/_mjs/data/These.mjs.map +1 -0
- package/_mjs/data/Trace/api.mjs +19 -0
- package/_mjs/data/Trace/api.mjs.map +1 -0
- package/_mjs/data/Trace/constructors.mjs +16 -0
- package/_mjs/data/Trace/constructors.mjs.map +1 -0
- package/_mjs/data/Trace/definition.mjs +12 -0
- package/_mjs/data/Trace/definition.mjs.map +1 -0
- package/_mjs/data/Trace.mjs +5 -0
- package/_mjs/data/Trace.mjs.map +1 -0
- package/_mjs/data/TraceElement/definition.mjs +62 -0
- package/_mjs/data/TraceElement/definition.mjs.map +1 -0
- package/_mjs/data/TraceElement.mjs +3 -0
- package/_mjs/data/TraceElement.mjs.map +1 -0
- package/_mjs/data/exceptions/ArrayIndexOutOfBoundsError.mjs +10 -0
- package/_mjs/data/exceptions/ArrayIndexOutOfBoundsError.mjs.map +1 -0
- package/_mjs/data/exceptions/IllegalArgumentError.mjs +11 -0
- package/_mjs/data/exceptions/IllegalArgumentError.mjs.map +1 -0
- package/_mjs/data/exceptions/IllegalStateError.mjs +10 -0
- package/_mjs/data/exceptions/IllegalStateError.mjs.map +1 -0
- package/_mjs/data/exceptions/IndexOutOfBoundsError.mjs +10 -0
- package/_mjs/data/exceptions/IndexOutOfBoundsError.mjs.map +1 -0
- package/_mjs/data/exceptions/InterruptedException.mjs +13 -0
- package/_mjs/data/exceptions/InterruptedException.mjs.map +1 -0
- package/_mjs/data/exceptions/InvalidCapacityError.mjs +12 -0
- package/_mjs/data/exceptions/InvalidCapacityError.mjs.map +1 -0
- package/_mjs/data/exceptions/NoSuchElementError.mjs +10 -0
- package/_mjs/data/exceptions/NoSuchElementError.mjs.map +1 -0
- package/_mjs/data/exceptions.mjs +9 -0
- package/_mjs/data/exceptions.mjs.map +1 -0
- package/_mjs/data/function/api.mjs +37 -0
- package/_mjs/data/function/api.mjs.map +1 -0
- package/_mjs/data/function/definition.mjs +2 -0
- package/_mjs/data/function/definition.mjs.map +1 -0
- package/_mjs/data/function/pipe.mjs +67 -0
- package/_mjs/data/function/pipe.mjs.map +1 -0
- package/_mjs/data/function.mjs +5 -0
- package/_mjs/data/function.mjs.map +1 -0
- package/_mjs/data/number/api.mjs +7 -0
- package/_mjs/data/number/api.mjs.map +1 -0
- package/_mjs/data/number/definition.mjs +2 -0
- package/_mjs/data/number/definition.mjs.map +1 -0
- package/_mjs/data/number/instances.mjs +20 -0
- package/_mjs/data/number/instances.mjs.map +1 -0
- package/_mjs/data/number.mjs +5 -0
- package/_mjs/data/number.mjs.map +1 -0
- package/_mjs/data/object/definition.mjs +2 -0
- package/_mjs/data/object/definition.mjs.map +1 -0
- package/_mjs/data/object.mjs +3 -0
- package/_mjs/data/object.mjs.map +1 -0
- package/_mjs/data/string/api.mjs +192 -0
- package/_mjs/data/string/api.mjs.map +1 -0
- package/_mjs/data/string/definition.mjs +2 -0
- package/_mjs/data/string/definition.mjs.map +1 -0
- package/_mjs/data/string/instances.mjs +36 -0
- package/_mjs/data/string/instances.mjs.map +1 -0
- package/_mjs/data/string.mjs +5 -0
- package/_mjs/data/string.mjs.map +1 -0
- package/_mjs/global/api.mjs +4 -0
- package/_mjs/global/api.mjs.map +1 -0
- package/_mjs/internal/AtomicBoolean.mjs +8 -0
- package/_mjs/internal/AtomicBoolean.mjs.map +1 -0
- package/_mjs/internal/AtomicNumber.mjs +26 -0
- package/_mjs/internal/AtomicNumber.mjs.map +1 -0
- package/_mjs/internal/AtomicReference.mjs +31 -0
- package/_mjs/internal/AtomicReference.mjs.map +1 -0
- package/_mjs/internal/Stack.mjs +56 -0
- package/_mjs/internal/Stack.mjs.map +1 -0
- package/_mjs/optics/At/api.mjs +12 -0
- package/_mjs/optics/At/api.mjs.map +1 -0
- package/_mjs/optics/At/definition.mjs +19 -0
- package/_mjs/optics/At/definition.mjs.map +1 -0
- package/_mjs/optics/At.mjs +4 -0
- package/_mjs/optics/At.mjs.map +1 -0
- package/_mjs/optics/Fold/definition.mjs +12 -0
- package/_mjs/optics/Fold/definition.mjs.map +1 -0
- package/_mjs/optics/Fold.mjs +3 -0
- package/_mjs/optics/Fold.mjs.map +1 -0
- package/_mjs/optics/Getter/definition.mjs +13 -0
- package/_mjs/optics/Getter/definition.mjs.map +1 -0
- package/_mjs/optics/Getter.mjs +3 -0
- package/_mjs/optics/Getter.mjs.map +1 -0
- package/_mjs/optics/Index/api.mjs +22 -0
- package/_mjs/optics/Index/api.mjs.map +1 -0
- package/_mjs/optics/Index/definition.mjs +11 -0
- package/_mjs/optics/Index/definition.mjs.map +1 -0
- package/_mjs/optics/Index.mjs +4 -0
- package/_mjs/optics/Index.mjs.map +1 -0
- package/_mjs/optics/Iso/api.mjs +13 -0
- package/_mjs/optics/Iso/api.mjs.map +1 -0
- package/_mjs/optics/Iso/definition.mjs +34 -0
- package/_mjs/optics/Iso/definition.mjs.map +1 -0
- package/_mjs/optics/Iso.mjs +4 -0
- package/_mjs/optics/Iso.mjs.map +1 -0
- package/_mjs/optics/Lens/api.mjs +140 -0
- package/_mjs/optics/Lens/api.mjs.map +1 -0
- package/_mjs/optics/Lens/definition.mjs +29 -0
- package/_mjs/optics/Lens/definition.mjs.map +1 -0
- package/_mjs/optics/Lens.mjs +4 -0
- package/_mjs/optics/Lens.mjs.map +1 -0
- package/_mjs/optics/Optional/api/compose.mjs +14 -0
- package/_mjs/optics/Optional/api/compose.mjs.map +1 -0
- package/_mjs/optics/Optional/definition.mjs +35 -0
- package/_mjs/optics/Optional/definition.mjs.map +1 -0
- package/_mjs/optics/Optional.mjs +6 -0
- package/_mjs/optics/Optional.mjs.map +1 -0
- package/_mjs/optics/Prism/api/compose.mjs +15 -0
- package/_mjs/optics/Prism/api/compose.mjs.map +1 -0
- package/_mjs/optics/Prism/api/fromNullable.mjs +14 -0
- package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -0
- package/_mjs/optics/Prism/api/just.mjs +15 -0
- package/_mjs/optics/Prism/api/just.mjs.map +1 -0
- package/_mjs/optics/Prism/definition.mjs +28 -0
- package/_mjs/optics/Prism/definition.mjs.map +1 -0
- package/_mjs/optics/Prism.mjs +8 -0
- package/_mjs/optics/Prism.mjs.map +1 -0
- package/_mjs/optics/Setter/definition.mjs +23 -0
- package/_mjs/optics/Setter/definition.mjs.map +1 -0
- package/_mjs/optics/Setter.mjs +3 -0
- package/_mjs/optics/Setter.mjs.map +1 -0
- package/_mjs/optics/Traversal/api/compose.mjs +11 -0
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -0
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +10 -0
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -0
- package/_mjs/optics/Traversal/definition.mjs +33 -0
- package/_mjs/optics/Traversal/definition.mjs.map +1 -0
- package/_mjs/optics/Traversal.mjs +7 -0
- package/_mjs/optics/Traversal.mjs.map +1 -0
- package/_mjs/typeclass/Align.mjs +13 -0
- package/_mjs/typeclass/Align.mjs.map +1 -0
- package/_mjs/typeclass/Alt.mjs +10 -0
- package/_mjs/typeclass/Alt.mjs.map +1 -0
- package/_mjs/typeclass/Alternative.mjs +15 -0
- package/_mjs/typeclass/Alternative.mjs.map +1 -0
- package/_mjs/typeclass/Applicative.mjs +14 -0
- package/_mjs/typeclass/Applicative.mjs.map +1 -0
- package/_mjs/typeclass/ApplicativeExcept.mjs +33 -0
- package/_mjs/typeclass/ApplicativeExcept.mjs.map +1 -0
- package/_mjs/typeclass/Apply.mjs +114 -0
- package/_mjs/typeclass/Apply.mjs.map +1 -0
- package/_mjs/typeclass/Chain.mjs +18 -0
- package/_mjs/typeclass/Chain.mjs.map +1 -0
- package/_mjs/typeclass/Closure.mjs +12 -0
- package/_mjs/typeclass/Closure.mjs.map +1 -0
- package/_mjs/typeclass/Eq.mjs +12 -0
- package/_mjs/typeclass/Eq.mjs.map +1 -0
- package/_mjs/typeclass/Equatable/api.mjs +31 -0
- package/_mjs/typeclass/Equatable/api.mjs.map +1 -0
- package/_mjs/typeclass/Equatable/definition.mjs +12 -0
- package/_mjs/typeclass/Equatable/definition.mjs.map +1 -0
- package/_mjs/typeclass/Equatable/fast-equals.mjs +476 -0
- package/_mjs/typeclass/Equatable/fast-equals.mjs.map +1 -0
- package/_mjs/typeclass/Equatable.mjs +5 -0
- package/_mjs/typeclass/Equatable.mjs.map +1 -0
- package/_mjs/typeclass/Fail.mjs +11 -0
- package/_mjs/typeclass/Fail.mjs.map +1 -0
- package/_mjs/typeclass/Filterable.mjs +16 -0
- package/_mjs/typeclass/Filterable.mjs.map +1 -0
- package/_mjs/typeclass/FilterableWithIndex.mjs +18 -0
- package/_mjs/typeclass/FilterableWithIndex.mjs.map +1 -0
- package/_mjs/typeclass/Foldable.mjs +19 -0
- package/_mjs/typeclass/Foldable.mjs.map +1 -0
- package/_mjs/typeclass/FoldableWithIndex.mjs +20 -0
- package/_mjs/typeclass/FoldableWithIndex.mjs.map +1 -0
- package/_mjs/typeclass/Functor.mjs +15 -0
- package/_mjs/typeclass/Functor.mjs.map +1 -0
- package/_mjs/typeclass/FunctorWithIndex.mjs +14 -0
- package/_mjs/typeclass/FunctorWithIndex.mjs.map +1 -0
- package/_mjs/typeclass/Has.mjs +10 -0
- package/_mjs/typeclass/Has.mjs.map +1 -0
- package/_mjs/typeclass/Hash.mjs +9 -0
- package/_mjs/typeclass/Hash.mjs.map +1 -0
- package/_mjs/typeclass/HashEq.mjs +32 -0
- package/_mjs/typeclass/HashEq.mjs.map +1 -0
- package/_mjs/typeclass/Hashable/definition.mjs +12 -0
- package/_mjs/typeclass/Hashable/definition.mjs.map +1 -0
- package/_mjs/typeclass/Hashable/hash.mjs +242 -0
- package/_mjs/typeclass/Hashable/hash.mjs.map +1 -0
- package/_mjs/typeclass/Hashable.mjs +4 -0
- package/_mjs/typeclass/Hashable.mjs.map +1 -0
- package/_mjs/typeclass/Monad.mjs +14 -0
- package/_mjs/typeclass/Monad.mjs.map +1 -0
- package/_mjs/typeclass/MonadExcept.mjs +17 -0
- package/_mjs/typeclass/MonadExcept.mjs.map +1 -0
- package/_mjs/typeclass/Monoid.mjs +12 -0
- package/_mjs/typeclass/Monoid.mjs.map +1 -0
- package/_mjs/typeclass/Nil.mjs +2 -0
- package/_mjs/typeclass/Nil.mjs.map +1 -0
- package/_mjs/typeclass/Ord/api/contramap.mjs +12 -0
- package/_mjs/typeclass/Ord/api/contramap.mjs.map +1 -0
- package/_mjs/typeclass/Ord/api/max.mjs +8 -0
- package/_mjs/typeclass/Ord/api/max.mjs.map +1 -0
- package/_mjs/typeclass/Ord/api/min.mjs +8 -0
- package/_mjs/typeclass/Ord/api/min.mjs.map +1 -0
- package/_mjs/typeclass/Ord/api.mjs +5 -0
- package/_mjs/typeclass/Ord/api.mjs.map +1 -0
- package/_mjs/typeclass/Ord/definition.mjs +13 -0
- package/_mjs/typeclass/Ord/definition.mjs.map +1 -0
- package/_mjs/typeclass/Ord/instances.mjs +34 -0
- package/_mjs/typeclass/Ord/instances.mjs.map +1 -0
- package/_mjs/typeclass/Ord.mjs +5 -0
- package/_mjs/typeclass/Ord.mjs.map +1 -0
- package/_mjs/typeclass/Ordering.mjs +42 -0
- package/_mjs/typeclass/Ordering.mjs.map +1 -0
- package/_mjs/typeclass/Pointed.mjs +10 -0
- package/_mjs/typeclass/Pointed.mjs.map +1 -0
- package/_mjs/typeclass/Semialign.mjs +84 -0
- package/_mjs/typeclass/Semialign.mjs.map +1 -0
- package/_mjs/typeclass/Semigroup/api.mjs +22 -0
- package/_mjs/typeclass/Semigroup/api.mjs.map +1 -0
- package/_mjs/typeclass/Semigroup/definition.mjs +8 -0
- package/_mjs/typeclass/Semigroup/definition.mjs.map +1 -0
- package/_mjs/typeclass/Semigroup.mjs +4 -0
- package/_mjs/typeclass/Semigroup.mjs.map +1 -0
- package/_mjs/typeclass/Semimonoidal.mjs +9 -0
- package/_mjs/typeclass/Semimonoidal.mjs.map +1 -0
- package/_mjs/typeclass/Showable/definition.mjs +13 -0
- package/_mjs/typeclass/Showable/definition.mjs.map +1 -0
- package/_mjs/typeclass/Showable/show.mjs +796 -0
- package/_mjs/typeclass/Showable/show.mjs.map +1 -0
- package/_mjs/typeclass/Showable/styles.mjs +22 -0
- package/_mjs/typeclass/Showable/styles.mjs.map +1 -0
- package/_mjs/typeclass/Showable/util.mjs +368 -0
- package/_mjs/typeclass/Showable/util.mjs.map +1 -0
- package/_mjs/typeclass/Showable.mjs +3 -0
- package/_mjs/typeclass/Showable.mjs.map +1 -0
- package/_mjs/typeclass/Traversable.mjs +32 -0
- package/_mjs/typeclass/Traversable.mjs.map +1 -0
- package/_mjs/typeclass/TraversableWithIndex.mjs +27 -0
- package/_mjs/typeclass/TraversableWithIndex.mjs.map +1 -0
- package/_mjs/typeclass/Witherable.mjs +40 -0
- package/_mjs/typeclass/Witherable.mjs.map +1 -0
- package/_mjs/typeclass/WitherableWithIndex.mjs +45 -0
- package/_mjs/typeclass/WitherableWithIndex.mjs.map +1 -0
- package/_mjs/typeclass/builtin/Symbol.mjs +2 -0
- package/_mjs/typeclass/builtin/Symbol.mjs.map +1 -0
- package/_mjs/typeclass/builtin.mjs +3 -0
- package/_mjs/typeclass/builtin.mjs.map +1 -0
- package/_mjs/typeclass.mjs +38 -0
- package/_mjs/typeclass.mjs.map +1 -0
- package/_mjs/types/extractions.mjs +2 -0
- package/_mjs/types/extractions.mjs.map +1 -0
- package/_mjs/types/test.mjs +2 -0
- package/_mjs/types/test.mjs.map +1 -0
- package/_mjs/types/utility.mjs +2 -0
- package/_mjs/types/utility.mjs.map +1 -0
- package/_mjs/types.mjs +5 -0
- package/_mjs/types.mjs.map +1 -0
- package/_mjs/util/AnsiFormat.mjs +244 -0
- package/_mjs/util/AnsiFormat.mjs.map +1 -0
- package/_mjs/util/PCGRandom.mjs +166 -0
- package/_mjs/util/PCGRandom.mjs.map +1 -0
- package/_mjs/util/assert.mjs +13 -0
- package/_mjs/util/assert.mjs.map +1 -0
- package/_mjs/util/pattern.mjs +9 -0
- package/_mjs/util/pattern.mjs.map +1 -0
- package/_mjs/util/predicates.mjs +93 -0
- package/_mjs/util/predicates.mjs.map +1 -0
- package/_mjs/util/rand/Random.mjs +92 -0
- package/_mjs/util/rand/Random.mjs.map +1 -0
- package/_mjs/util/rand/distribution/Distribution.mjs +2 -0
- package/_mjs/util/rand/distribution/Distribution.mjs.map +1 -0
- package/_mjs/util/rand/distribution/UniformArrayIntDistribution.mjs +26 -0
- package/_mjs/util/rand/distribution/UniformArrayIntDistribution.mjs.map +1 -0
- package/_mjs/util/rand/distribution/UniformBigIntDistribution.mjs +45 -0
- package/_mjs/util/rand/distribution/UniformBigIntDistribution.mjs.map +1 -0
- package/_mjs/util/rand/distribution/UniformIntDistribution.mjs +62 -0
- package/_mjs/util/rand/distribution/UniformIntDistribution.mjs.map +1 -0
- package/_mjs/util/rand/distribution/internals/ArrayInt.mjs +203 -0
- package/_mjs/util/rand/distribution/internals/ArrayInt.mjs.map +1 -0
- package/_mjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.mjs +37 -0
- package/_mjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.mjs.map +1 -0
- package/_mjs/util/rand/distribution/internals/UniformIntDistributionInternal.mjs +49 -0
- package/_mjs/util/rand/distribution/internals/UniformIntDistributionInternal.mjs.map +1 -0
- package/_mjs/util/rand/generator/MersenneTwister.mjs +106 -0
- package/_mjs/util/rand/generator/MersenneTwister.mjs.map +1 -0
- package/_mjs/util/rand/generator/RandomGenerator.mjs +17 -0
- package/_mjs/util/rand/generator/RandomGenerator.mjs.map +1 -0
- package/_mjs/util/rand.mjs +9 -0
- package/_mjs/util/rand.mjs.map +1 -0
- package/_src/collection/Iterable/api/traverseConc.ts +40 -0
- package/_src/collection/Iterable/api.ts +690 -0
- package/_src/collection/Iterable/constructors.ts +73 -0
- package/_src/collection/Iterable/definition.ts +15 -0
- package/_src/collection/Iterable.ts +5 -0
- package/_src/collection/compat/Array/api.ts +53 -0
- package/_src/collection/compat/Array/definition.ts +21 -0
- package/_src/collection/compat/Array.ts +4 -0
- package/_src/collection/compat/ArrayLike/api.ts +26 -0
- package/_src/collection/compat/ArrayLike/definition.ts +11 -0
- package/_src/collection/immutable/Conc/api/empty.ts +8 -0
- package/_src/collection/immutable/Conc/api/makeBy.ts +16 -0
- package/_src/collection/immutable/Conc/api/replicate.ts +6 -0
- package/_src/collection/immutable/Conc/api.ts +1146 -0
- package/_src/collection/immutable/Conc/constructors.ts +38 -0
- package/_src/collection/immutable/Conc/definition.ts +785 -0
- package/_src/collection/immutable/Conc.ts +11 -0
- package/_src/collection/immutable/Dictionary/api.ts +49 -0
- package/_src/collection/immutable/Dictionary/definition.ts +21 -0
- package/_src/collection/immutable/HashMap/api.ts +731 -0
- package/_src/collection/immutable/HashMap/definition.ts +128 -0
- package/_src/collection/immutable/HashMap/internal.ts +380 -0
- package/_src/collection/immutable/HashMap.ts +4 -0
- package/_src/collection/immutable/HashSet/api.ts +481 -0
- package/_src/collection/immutable/HashSet/definition.ts +402 -0
- package/_src/collection/immutable/HashSet.ts +4 -0
- package/_src/collection/immutable/ImmutableArray/api.ts +1519 -0
- package/_src/collection/immutable/ImmutableArray/constructors.ts +47 -0
- package/_src/collection/immutable/ImmutableArray/definition.ts +39 -0
- package/_src/collection/immutable/ImmutableArray/instances.ts +168 -0
- package/_src/collection/immutable/ImmutableArray.ts +6 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +513 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +66 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +31 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/destructors.ts +41 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/instances.ts +115 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray.ts +7 -0
- package/_src/collection/immutable/List/api/foldLeft.ts +12 -0
- package/_src/collection/immutable/List/api/unsafeTail.ts +9 -0
- package/_src/collection/immutable/List/api.ts +354 -0
- package/_src/collection/immutable/List/constructors.ts +64 -0
- package/_src/collection/immutable/List/definition.ts +91 -0
- package/_src/collection/immutable/List.ts +10 -0
- package/_src/collection/immutable/Queue/api.ts +142 -0
- package/_src/collection/immutable/Queue/constructors.ts +16 -0
- package/_src/collection/immutable/Queue/definition.ts +34 -0
- package/_src/collection/immutable/Queue/guards.ts +8 -0
- package/_src/collection/immutable/Queue.ts +6 -0
- package/_src/collection/immutable/SortedMap/api.ts +540 -0
- package/_src/collection/immutable/SortedMap/definition.ts +17 -0
- package/_src/collection/immutable/SortedMap/internal.ts +358 -0
- package/_src/collection/immutable/SortedMap/iterator.ts +304 -0
- package/_src/collection/immutable/SortedMap/node.ts +21 -0
- package/_src/collection/immutable/SortedMap.ts +7 -0
- package/_src/collection/immutable/Vector/api.ts +1335 -0
- package/_src/collection/immutable/Vector/definition.ts +96 -0
- package/_src/collection/immutable/Vector/internal.ts +1438 -0
- package/_src/collection/immutable/Vector.ts +4 -0
- package/_src/collection/mutable/HashMap.ts +338 -0
- package/_src/collection/mutable/HashSet.ts +254 -0
- package/_src/collection/mutable/ListBuffer.ts +123 -0
- package/_src/collection/mutable/internal.ts +26 -0
- package/_src/control/Eval/api/sequenceArray.ts +6 -0
- package/_src/control/Eval/api.ts +93 -0
- package/_src/control/Eval/constructors.ts +30 -0
- package/_src/control/Eval/definition.ts +67 -0
- package/_src/control/Eval/instance.ts +31 -0
- package/_src/control/Eval/run.ts +41 -0
- package/_src/control/Eval.ts +7 -0
- package/_src/control/LazyValue.ts +24 -0
- package/_src/control/Z/api.ts +619 -0
- package/_src/control/Z/definition.ts +189 -0
- package/_src/control/Z/instances.ts +14 -0
- package/_src/control/Z/runtime.ts +291 -0
- package/_src/control/Z.ts +6 -0
- package/_src/data/Byte.ts +1 -0
- package/_src/data/CaseClass.ts +112 -0
- package/_src/data/Cause/api/fold.ts +104 -0
- package/_src/data/Cause/api/isEmpty.ts +46 -0
- package/_src/data/Cause/api/linearize.ts +16 -0
- package/_src/data/Cause/api/prettyPrint.ts +38 -0
- package/_src/data/Cause/api/unified.ts +67 -0
- package/_src/data/Cause/api.ts +984 -0
- package/_src/data/Cause/definition.ts +521 -0
- package/_src/data/Cause.ts +4 -0
- package/_src/data/Const/api.ts +16 -0
- package/_src/data/Const/definition.ts +11 -0
- package/_src/data/Const/instances.ts +34 -0
- package/_src/data/Const.ts +5 -0
- package/_src/data/Duration/api.ts +69 -0
- package/_src/data/Duration/definition.ts +25 -0
- package/_src/data/Duration.ts +4 -0
- package/_src/data/Either/api/align.ts +8 -0
- package/_src/data/Either/api/alignWith.ts +21 -0
- package/_src/data/Either/api.ts +200 -0
- package/_src/data/Either/constructors.ts +77 -0
- package/_src/data/Either/definition.ts +48 -0
- package/_src/data/Either/destructors.ts +13 -0
- package/_src/data/Either/instances.ts +80 -0
- package/_src/data/Either.ts +7 -0
- package/_src/data/Environment/api.ts +78 -0
- package/_src/data/Environment/definition.ts +32 -0
- package/_src/data/Environment.ts +4 -0
- package/_src/data/ExecutionStrategy.ts +81 -0
- package/_src/data/Exit/api.ts +172 -0
- package/_src/data/Exit/constructors.ts +55 -0
- package/_src/data/Exit/definition.ts +102 -0
- package/_src/data/Exit.ts +5 -0
- package/_src/data/FiberId/api.ts +45 -0
- package/_src/data/FiberId/constructors.ts +21 -0
- package/_src/data/FiberId/definition.ts +91 -0
- package/_src/data/FiberId.ts +5 -0
- package/_src/data/Identity/api.ts +28 -0
- package/_src/data/Identity/definition.ts +11 -0
- package/_src/data/Identity/instances.ts +21 -0
- package/_src/data/Identity.ts +5 -0
- package/_src/data/Maybe/api.ts +187 -0
- package/_src/data/Maybe/constructors.ts +84 -0
- package/_src/data/Maybe/definition.ts +91 -0
- package/_src/data/Maybe/destructors.ts +11 -0
- package/_src/data/Maybe/instances.ts +53 -0
- package/_src/data/Maybe.ts +7 -0
- package/_src/data/Newtype.ts +66 -0
- package/_src/data/Patch/api.ts +75 -0
- package/_src/data/Patch/definition.ts +58 -0
- package/_src/data/Patch.ts +4 -0
- package/_src/data/Predicate/api.ts +27 -0
- package/_src/data/Predicate/definition.ts +10 -0
- package/_src/data/Predicate.ts +4 -0
- package/_src/data/Refinement/api.ts +29 -0
- package/_src/data/Refinement/definition.ts +13 -0
- package/_src/data/Refinement.ts +4 -0
- package/_src/data/Struct/api.ts +22 -0
- package/_src/data/Struct/definition.ts +23 -0
- package/_src/data/Tag/constructors.ts +6 -0
- package/_src/data/Tag/definition.ts +31 -0
- package/_src/data/Tag.ts +4 -0
- package/_src/data/These/constructors.ts +25 -0
- package/_src/data/These/definition.ts +47 -0
- package/_src/data/These/destructors.ts +20 -0
- package/_src/data/These.ts +5 -0
- package/_src/data/Trace/api.ts +13 -0
- package/_src/data/Trace/constructors.ts +13 -0
- package/_src/data/Trace/definition.ts +9 -0
- package/_src/data/Trace.ts +5 -0
- package/_src/data/TraceElement/definition.ts +69 -0
- package/_src/data/TraceElement.ts +3 -0
- package/_src/data/exceptions/ArrayIndexOutOfBoundsError.ts +9 -0
- package/_src/data/exceptions/IllegalArgumentError.ts +9 -0
- package/_src/data/exceptions/IllegalStateError.ts +9 -0
- package/_src/data/exceptions/IndexOutOfBoundsError.ts +9 -0
- package/_src/data/exceptions/InterruptedException.ts +13 -0
- package/_src/data/exceptions/InvalidCapacityError.ts +12 -0
- package/_src/data/exceptions/NoSuchElementError.ts +9 -0
- package/_src/data/exceptions.ts +9 -0
- package/_src/data/function/api.ts +39 -0
- package/_src/data/function/definition.ts +31 -0
- package/_src/data/function/pipe.ts +301 -0
- package/_src/data/function.ts +5 -0
- package/_src/data/number/api.ts +6 -0
- package/_src/data/number/definition.ts +13 -0
- package/_src/data/number/instances.ts +15 -0
- package/_src/data/number.ts +5 -0
- package/_src/data/object/definition.ts +12 -0
- package/_src/data/object.ts +3 -0
- package/_src/data/string/api.ts +182 -0
- package/_src/data/string/definition.ts +13 -0
- package/_src/data/string/instances.ts +24 -0
- package/_src/data/string.ts +5 -0
- package/_src/global/api.ts +23 -0
- package/_src/internal/AtomicBoolean.ts +7 -0
- package/_src/internal/AtomicNumber.ts +28 -0
- package/_src/internal/AtomicReference.ts +28 -0
- package/_src/internal/Stack.ts +52 -0
- package/_src/optics/At/api.ts +10 -0
- package/_src/optics/At/definition.ts +32 -0
- package/_src/optics/At.ts +4 -0
- package/_src/optics/Fold/definition.ts +38 -0
- package/_src/optics/Fold.ts +3 -0
- package/_src/optics/Getter/definition.ts +34 -0
- package/_src/optics/Getter.ts +3 -0
- package/_src/optics/Index/api.ts +19 -0
- package/_src/optics/Index/definition.ts +24 -0
- package/_src/optics/Index.ts +4 -0
- package/_src/optics/Iso/api.ts +11 -0
- package/_src/optics/Iso/definition.ts +52 -0
- package/_src/optics/Iso.ts +4 -0
- package/_src/optics/Lens/api.ts +132 -0
- package/_src/optics/Lens/definition.ts +51 -0
- package/_src/optics/Lens.ts +4 -0
- package/_src/optics/Optional/api/compose.ts +15 -0
- package/_src/optics/Optional/definition.ts +90 -0
- package/_src/optics/Optional.ts +7 -0
- package/_src/optics/Prism/api/compose.ts +12 -0
- package/_src/optics/Prism/api/fromNullable.ts +12 -0
- package/_src/optics/Prism/api/just.ts +11 -0
- package/_src/optics/Prism/definition.ts +59 -0
- package/_src/optics/Prism.ts +9 -0
- package/_src/optics/Setter/definition.ts +66 -0
- package/_src/optics/Setter.ts +3 -0
- package/_src/optics/Traversal/api/compose.ts +13 -0
- package/_src/optics/Traversal/api/fromTraversable.ts +50 -0
- package/_src/optics/Traversal/definition.ts +73 -0
- package/_src/optics/Traversal.ts +8 -0
- package/_src/typeclass/Align.ts +28 -0
- package/_src/typeclass/Alt.ts +105 -0
- package/_src/typeclass/Alternative.ts +31 -0
- package/_src/typeclass/Applicative.ts +31 -0
- package/_src/typeclass/ApplicativeExcept.ts +226 -0
- package/_src/typeclass/Apply.ts +634 -0
- package/_src/typeclass/Chain.ts +226 -0
- package/_src/typeclass/Closure.ts +36 -0
- package/_src/typeclass/Eq.ts +36 -0
- package/_src/typeclass/Equatable/api.ts +34 -0
- package/_src/typeclass/Equatable/definition.ts +22 -0
- package/_src/typeclass/Equatable/fast-equals.ts +498 -0
- package/_src/typeclass/Equatable.ts +5 -0
- package/_src/typeclass/Fail.ts +40 -0
- package/_src/typeclass/Filterable.ts +139 -0
- package/_src/typeclass/FilterableWithIndex.ts +143 -0
- package/_src/typeclass/Foldable.ts +73 -0
- package/_src/typeclass/FoldableWithIndex.ts +96 -0
- package/_src/typeclass/Functor.ts +76 -0
- package/_src/typeclass/FunctorWithIndex.ts +43 -0
- package/_src/typeclass/Has.ts +19 -0
- package/_src/typeclass/Hash.ts +17 -0
- package/_src/typeclass/HashEq.ts +44 -0
- package/_src/typeclass/Hashable/definition.ts +22 -0
- package/_src/typeclass/Hashable/hash.ts +208 -0
- package/_src/typeclass/Hashable.ts +4 -0
- package/_src/typeclass/Monad.ts +26 -0
- package/_src/typeclass/MonadExcept.ts +47 -0
- package/_src/typeclass/Monoid.ts +31 -0
- package/_src/typeclass/Nil.ts +23 -0
- package/_src/typeclass/Ord/api/contramap.ts +13 -0
- package/_src/typeclass/Ord/api/max.ts +9 -0
- package/_src/typeclass/Ord/api/min.ts +9 -0
- package/_src/typeclass/Ord/api.ts +5 -0
- package/_src/typeclass/Ord/definition.ts +43 -0
- package/_src/typeclass/Ord/instances.ts +30 -0
- package/_src/typeclass/Ord.ts +5 -0
- package/_src/typeclass/Ordering.ts +42 -0
- package/_src/typeclass/Pointed.ts +37 -0
- package/_src/typeclass/Semialign.ts +551 -0
- package/_src/typeclass/Semigroup/api.ts +21 -0
- package/_src/typeclass/Semigroup/definition.ts +24 -0
- package/_src/typeclass/Semigroup.ts +4 -0
- package/_src/typeclass/Semimonoidal.ts +97 -0
- package/_src/typeclass/Showable/definition.ts +23 -0
- package/_src/typeclass/Showable/show.ts +914 -0
- package/_src/typeclass/Showable/styles.ts +57 -0
- package/_src/typeclass/Showable/util.ts +385 -0
- package/_src/typeclass/Showable.ts +2 -0
- package/_src/typeclass/Traversable.ts +177 -0
- package/_src/typeclass/TraversableWithIndex.ts +142 -0
- package/_src/typeclass/Witherable.ts +303 -0
- package/_src/typeclass/WitherableWithIndex.ts +359 -0
- package/_src/typeclass/builtin/Symbol.ts +8 -0
- package/_src/typeclass/builtin.ts +3 -0
- package/_src/typeclass.ts +38 -0
- package/_src/types/extractions.ts +11 -0
- package/_src/types/test.ts +0 -0
- package/_src/types/utility.ts +9 -0
- package/_src/types.ts +5 -0
- package/_src/util/AnsiFormat.ts +259 -0
- package/_src/util/PCGRandom.ts +191 -0
- package/_src/util/assert.ts +11 -0
- package/_src/util/pattern.ts +35 -0
- package/_src/util/predicates.ts +144 -0
- package/_src/util/rand/Random.ts +100 -0
- package/_src/util/rand/distribution/Distribution.ts +10 -0
- package/_src/util/rand/distribution/UniformArrayIntDistribution.ts +49 -0
- package/_src/util/rand/distribution/UniformBigIntDistribution.ts +62 -0
- package/_src/util/rand/distribution/UniformIntDistribution.ts +75 -0
- package/_src/util/rand/distribution/internals/ArrayInt.ts +200 -0
- package/_src/util/rand/distribution/internals/UniformArrayIntDistributionInternal.ts +43 -0
- package/_src/util/rand/distribution/internals/UniformIntDistributionInternal.ts +47 -0
- package/_src/util/rand/generator/MersenneTwister.ts +160 -0
- package/_src/util/rand/generator/RandomGenerator.ts +22 -0
- package/_src/util/rand.ts +20 -0
- package/collection/Iterable/api/traverseConc.d.ts +13 -0
- package/collection/Iterable/api.d.ts +172 -0
- package/collection/Iterable/constructors.d.ts +25 -0
- package/collection/Iterable/definition.d.ts +14 -0
- package/collection/Iterable.d.ts +3 -0
- package/collection/compat/Array/api.d.ts +32 -0
- package/collection/compat/Array/definition.d.ts +20 -0
- package/collection/compat/Array.d.ts +2 -0
- package/collection/compat/ArrayLike/api.d.ts +5 -0
- package/collection/compat/ArrayLike/definition.d.ts +13 -0
- package/collection/immutable/Conc/api/empty.d.ts +6 -0
- package/collection/immutable/Conc/api/makeBy.d.ts +7 -0
- package/collection/immutable/Conc/api/replicate.d.ts +6 -0
- package/collection/immutable/Conc/api.d.ts +368 -0
- package/collection/immutable/Conc/constructors.d.ts +27 -0
- package/collection/immutable/Conc/definition.d.ts +213 -0
- package/collection/immutable/Conc.d.ts +6 -0
- package/collection/immutable/Dictionary/api.d.ts +27 -0
- package/collection/immutable/Dictionary/definition.d.ts +19 -0
- package/collection/immutable/HashMap/api.d.ts +336 -0
- package/collection/immutable/HashMap/definition.d.ts +44 -0
- package/collection/immutable/HashMap/internal.d.ts +67 -0
- package/collection/immutable/HashMap.d.ts +2 -0
- package/collection/immutable/HashSet/api.d.ts +170 -0
- package/collection/immutable/HashSet/definition.d.ts +97 -0
- package/collection/immutable/HashSet.d.ts +2 -0
- package/collection/immutable/ImmutableArray/api.d.ts +680 -0
- package/collection/immutable/ImmutableArray/constructors.d.ts +32 -0
- package/collection/immutable/ImmutableArray/definition.d.ts +25 -0
- package/collection/immutable/ImmutableArray/instances.d.ts +18 -0
- package/collection/immutable/ImmutableArray.d.ts +4 -0
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +205 -0
- package/collection/immutable/ImmutableNonEmptyArray/constructors.d.ts +45 -0
- package/collection/immutable/ImmutableNonEmptyArray/definition.d.ts +28 -0
- package/collection/immutable/ImmutableNonEmptyArray/destructors.d.ts +32 -0
- package/collection/immutable/ImmutableNonEmptyArray/instances.d.ts +52 -0
- package/collection/immutable/ImmutableNonEmptyArray.d.ts +5 -0
- package/collection/immutable/List/api/foldLeft.d.ts +6 -0
- package/collection/immutable/List/api/unsafeTail.d.ts +6 -0
- package/collection/immutable/List/api.d.ts +100 -0
- package/collection/immutable/List/constructors.d.ts +27 -0
- package/collection/immutable/List/definition.d.ts +40 -0
- package/collection/immutable/List.d.ts +5 -0
- package/collection/immutable/Queue/api.d.ts +78 -0
- package/collection/immutable/Queue/constructors.d.ts +11 -0
- package/collection/immutable/Queue/definition.d.ts +12 -0
- package/collection/immutable/Queue/guards.d.ts +6 -0
- package/collection/immutable/Queue.d.ts +4 -0
- package/collection/immutable/SortedMap/api.d.ts +134 -0
- package/collection/immutable/SortedMap/definition.d.ts +13 -0
- package/collection/immutable/SortedMap/internal.d.ts +8 -0
- package/collection/immutable/SortedMap/iterator.d.ts +64 -0
- package/collection/immutable/SortedMap/node.d.ts +16 -0
- package/collection/immutable/SortedMap.d.ts +5 -0
- package/collection/immutable/Vector/api.d.ts +596 -0
- package/collection/immutable/Vector/definition.d.ts +66 -0
- package/collection/immutable/Vector/internal.d.ts +199 -0
- package/collection/immutable/Vector.d.ts +2 -0
- package/collection/mutable/HashMap.d.ts +55 -0
- package/collection/mutable/HashSet.d.ts +48 -0
- package/collection/mutable/ListBuffer.d.ts +19 -0
- package/collection/mutable/internal.d.ts +4 -0
- package/control/Eval/api/sequenceArray.d.ts +6 -0
- package/control/Eval/api.d.ts +53 -0
- package/control/Eval/constructors.d.ts +19 -0
- package/control/Eval/definition.d.ts +59 -0
- package/control/Eval/instance.d.ts +17 -0
- package/control/Eval/run.d.ts +7 -0
- package/control/Eval.d.ts +5 -0
- package/control/LazyValue.d.ts +15 -0
- package/control/Z/api.d.ts +343 -0
- package/control/Z/definition.d.ts +135 -0
- package/control/Z/instances.d.ts +7 -0
- package/control/Z/runtime.d.ts +55 -0
- package/control/Z.d.ts +4 -0
- package/data/Byte.d.ts +1 -0
- package/data/CaseClass.d.ts +26 -0
- package/data/Cause/api/fold.d.ts +19 -0
- package/data/Cause/api/isEmpty.d.ts +7 -0
- package/data/Cause/api/linearize.d.ts +7 -0
- package/data/Cause/api/prettyPrint.d.ts +6 -0
- package/data/Cause/api/unified.d.ts +9 -0
- package/data/Cause/api.d.ts +283 -0
- package/data/Cause/definition.d.ts +130 -0
- package/data/Cause.d.ts +2 -0
- package/data/Const/api.d.ts +12 -0
- package/data/Const/definition.d.ts +12 -0
- package/data/Const/instances.d.ts +20 -0
- package/data/Const.d.ts +3 -0
- package/data/Duration/api.d.ts +52 -0
- package/data/Duration/definition.d.ts +16 -0
- package/data/Duration.d.ts +2 -0
- package/data/Either/api/align.d.ts +3 -0
- package/data/Either/api/alignWith.d.ts +7 -0
- package/data/Either/api.d.ts +128 -0
- package/data/Either/constructors.d.ts +50 -0
- package/data/Either/definition.d.ts +40 -0
- package/data/Either/destructors.d.ts +6 -0
- package/data/Either/instances.d.ts +21 -0
- package/data/Either.d.ts +5 -0
- package/data/Environment/api.d.ts +45 -0
- package/data/Environment/definition.d.ts +25 -0
- package/data/Environment.d.ts +2 -0
- package/data/ExecutionStrategy.d.ts +45 -0
- package/data/Exit/api.d.ts +99 -0
- package/data/Exit/constructors.d.ts +45 -0
- package/data/Exit/definition.d.ts +70 -0
- package/data/Exit.d.ts +3 -0
- package/data/FiberId/api.d.ts +17 -0
- package/data/FiberId/constructors.d.ts +17 -0
- package/data/FiberId/definition.d.ts +65 -0
- package/data/FiberId.d.ts +3 -0
- package/data/Identity/api.d.ts +22 -0
- package/data/Identity/definition.d.ts +10 -0
- package/data/Identity/instances.d.ts +21 -0
- package/data/Identity.d.ts +3 -0
- package/data/Maybe/api.d.ts +125 -0
- package/data/Maybe/constructors.d.ts +47 -0
- package/data/Maybe/definition.d.ts +59 -0
- package/data/Maybe/destructors.d.ts +8 -0
- package/data/Maybe/instances.d.ts +15 -0
- package/data/Maybe.d.ts +5 -0
- package/data/Newtype.d.ts +36 -0
- package/data/Patch/api.d.ts +24 -0
- package/data/Patch/definition.d.ts +44 -0
- package/data/Patch.d.ts +2 -0
- package/data/Predicate/api.d.ts +21 -0
- package/data/Predicate/definition.d.ts +9 -0
- package/data/Predicate.d.ts +2 -0
- package/data/Refinement/api.d.ts +23 -0
- package/data/Refinement/definition.d.ts +12 -0
- package/data/Refinement.d.ts +2 -0
- package/data/Struct/api.d.ts +12 -0
- package/data/Struct/definition.d.ts +19 -0
- package/data/Tag/constructors.d.ts +6 -0
- package/data/Tag/definition.d.ts +19 -0
- package/data/Tag.d.ts +2 -0
- package/data/These/constructors.d.ts +19 -0
- package/data/These/definition.d.ts +45 -0
- package/data/These/destructors.d.ts +6 -0
- package/data/These.d.ts +3 -0
- package/data/Trace/api.d.ts +12 -0
- package/data/Trace/constructors.d.ts +14 -0
- package/data/Trace/definition.d.ts +12 -0
- package/data/Trace.d.ts +3 -0
- package/data/TraceElement/definition.d.ts +39 -0
- package/data/TraceElement.d.ts +1 -0
- package/data/exceptions/ArrayIndexOutOfBoundsError.d.ts +5 -0
- package/data/exceptions/IllegalArgumentError.d.ts +6 -0
- package/data/exceptions/IllegalStateError.d.ts +5 -0
- package/data/exceptions/IndexOutOfBoundsError.d.ts +5 -0
- package/data/exceptions/InterruptedException.d.ts +8 -0
- package/data/exceptions/InvalidCapacityError.d.ts +5 -0
- package/data/exceptions/NoSuchElementError.d.ts +5 -0
- package/data/exceptions.d.ts +7 -0
- package/data/function/api.d.ts +27 -0
- package/data/function/definition.d.ts +30 -0
- package/data/function/pipe.d.ts +25 -0
- package/data/function.d.ts +3 -0
- package/data/number/api.d.ts +5 -0
- package/data/number/definition.d.ts +13 -0
- package/data/number/instances.d.ts +11 -0
- package/data/number.d.ts +3 -0
- package/data/object/definition.d.ts +13 -0
- package/data/object.d.ts +1 -0
- package/data/string/api.d.ts +145 -0
- package/data/string/definition.d.ts +13 -0
- package/data/string/instances.d.ts +21 -0
- package/data/string.d.ts +3 -0
- package/global/api.d.ts +8 -0
- package/internal/AtomicBoolean.d.ts +4 -0
- package/internal/AtomicNumber.d.ts +7 -0
- package/internal/AtomicReference.d.ts +9 -0
- package/internal/Stack.d.ts +28 -0
- package/optics/At/api.d.ts +7 -0
- package/optics/At/definition.d.ts +22 -0
- package/optics/At.d.ts +2 -0
- package/optics/Fold/definition.d.ts +28 -0
- package/optics/Fold.d.ts +1 -0
- package/optics/Getter/definition.d.ts +24 -0
- package/optics/Getter.d.ts +1 -0
- package/optics/Index/api.d.ts +14 -0
- package/optics/Index/definition.d.ts +19 -0
- package/optics/Index.d.ts +2 -0
- package/optics/Iso/api.d.ts +6 -0
- package/optics/Iso/definition.d.ts +40 -0
- package/optics/Iso.d.ts +2 -0
- package/optics/Lens/api.d.ts +49 -0
- package/optics/Lens/definition.d.ts +40 -0
- package/optics/Lens.d.ts +2 -0
- package/optics/Optional/api/compose.d.ts +6 -0
- package/optics/Optional/definition.d.ts +62 -0
- package/optics/Optional.d.ts +2 -0
- package/optics/Prism/api/compose.d.ts +6 -0
- package/optics/Prism/api/fromNullable.d.ts +6 -0
- package/optics/Prism/api/just.d.ts +7 -0
- package/optics/Prism/definition.d.ts +42 -0
- package/optics/Prism.d.ts +4 -0
- package/optics/Setter/definition.d.ts +51 -0
- package/optics/Setter.d.ts +1 -0
- package/optics/Traversal/api/compose.d.ts +6 -0
- package/optics/Traversal/api/fromTraversable.d.ts +8 -0
- package/optics/Traversal/definition.d.ts +46 -0
- package/optics/Traversal.d.ts +3 -0
- package/package.json +16 -0
- package/typeclass/Align.d.ts +21 -0
- package/typeclass/Alt.d.ts +30 -0
- package/typeclass/Alternative.d.ts +23 -0
- package/typeclass/Applicative.d.ts +20 -0
- package/typeclass/ApplicativeExcept.d.ts +60 -0
- package/typeclass/Apply.d.ts +103 -0
- package/typeclass/Chain.d.ts +39 -0
- package/typeclass/Closure.d.ts +27 -0
- package/typeclass/Eq.d.ts +27 -0
- package/typeclass/Equatable/api.d.ts +11 -0
- package/typeclass/Equatable/definition.d.ts +18 -0
- package/typeclass/Equatable/fast-equals.d.ts +202 -0
- package/typeclass/Equatable.d.ts +3 -0
- package/typeclass/Fail.d.ts +23 -0
- package/typeclass/Filterable.d.ts +68 -0
- package/typeclass/FilterableWithIndex.d.ts +67 -0
- package/typeclass/Foldable.d.ts +47 -0
- package/typeclass/FoldableWithIndex.d.ts +49 -0
- package/typeclass/Functor.d.ts +37 -0
- package/typeclass/FunctorWithIndex.d.ts +27 -0
- package/typeclass/Has.d.ts +16 -0
- package/typeclass/Hash.d.ts +14 -0
- package/typeclass/HashEq.d.ts +30 -0
- package/typeclass/Hashable/definition.d.ts +18 -0
- package/typeclass/Hashable/hash.d.ts +55 -0
- package/typeclass/Hashable.d.ts +2 -0
- package/typeclass/Monad.d.ts +19 -0
- package/typeclass/MonadExcept.d.ts +32 -0
- package/typeclass/Monoid.d.ts +22 -0
- package/typeclass/Nil.d.ts +13 -0
- package/typeclass/Ord/api/contramap.d.ts +6 -0
- package/typeclass/Ord/api/max.d.ts +7 -0
- package/typeclass/Ord/api/min.d.ts +7 -0
- package/typeclass/Ord/api.d.ts +3 -0
- package/typeclass/Ord/definition.d.ts +31 -0
- package/typeclass/Ord/instances.d.ts +13 -0
- package/typeclass/Ord.d.ts +3 -0
- package/typeclass/Ordering.d.ts +32 -0
- package/typeclass/Pointed.d.ts +21 -0
- package/typeclass/Semialign.d.ts +84 -0
- package/typeclass/Semigroup/api.d.ts +12 -0
- package/typeclass/Semigroup/definition.d.ts +20 -0
- package/typeclass/Semigroup.d.ts +2 -0
- package/typeclass/Semimonoidal.d.ts +25 -0
- package/typeclass/Showable/definition.d.ts +17 -0
- package/typeclass/Showable/show.d.ts +54 -0
- package/typeclass/Showable/styles.d.ts +8 -0
- package/typeclass/Showable/util.d.ts +38 -0
- package/typeclass/Showable.d.ts +2 -0
- package/typeclass/Traversable.d.ts +71 -0
- package/typeclass/TraversableWithIndex.d.ts +64 -0
- package/typeclass/Witherable.d.ts +98 -0
- package/typeclass/WitherableWithIndex.d.ts +114 -0
- package/typeclass/builtin/Symbol.d.ts +8 -0
- package/typeclass/builtin.d.ts +1 -0
- package/typeclass.d.ts +36 -0
- package/types/extractions.d.ts +12 -0
- package/types/test.d.ts +1 -0
- package/types/utility.d.ts +8 -0
- package/types.d.ts +3 -0
- package/util/AnsiFormat.d.ts +107 -0
- package/util/PCGRandom.d.ts +50 -0
- package/util/assert.d.ts +5 -0
- package/util/pattern.d.ts +68 -0
- package/util/predicates.d.ts +36 -0
- package/util/rand/Random.d.ts +69 -0
- package/util/rand/distribution/Distribution.d.ts +9 -0
- package/util/rand/distribution/UniformArrayIntDistribution.d.ts +23 -0
- package/util/rand/distribution/UniformBigIntDistribution.d.ts +22 -0
- package/util/rand/distribution/UniformIntDistribution.d.ts +22 -0
- package/util/rand/distribution/internals/ArrayInt.d.ts +57 -0
- package/util/rand/distribution/internals/UniformArrayIntDistributionInternal.d.ts +12 -0
- package/util/rand/distribution/internals/UniformIntDistributionInternal.d.ts +6 -0
- package/util/rand/generator/MersenneTwister.d.ts +11 -0
- package/util/rand/generator/RandomGenerator.d.ts +10 -0
- package/util/rand.d.ts +9 -0
|
@@ -0,0 +1,1525 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.append_ = void 0;
|
|
7
|
+
exports.chunksOf_ = chunksOf_;
|
|
8
|
+
exports.concat_ = void 0;
|
|
9
|
+
exports.contains_ = contains_;
|
|
10
|
+
exports.dropLast_ = dropLast_;
|
|
11
|
+
exports.dropRepeats = dropRepeats;
|
|
12
|
+
exports.dropRepeatsWith_ = void 0;
|
|
13
|
+
exports.dropWhile_ = dropWhile_;
|
|
14
|
+
exports.drop_ = drop_;
|
|
15
|
+
exports.elem_ = elem_;
|
|
16
|
+
exports.emptyPushable = exports.empty = void 0;
|
|
17
|
+
exports.equals_ = equals_;
|
|
18
|
+
exports.every_ = every_;
|
|
19
|
+
exports.findIndex_ = exports.exists_ = void 0;
|
|
20
|
+
exports.findLastIndex_ = findLastIndex_;
|
|
21
|
+
exports.findLast_ = findLast_;
|
|
22
|
+
exports.find_ = find_;
|
|
23
|
+
exports.flatMap_ = flatMap_;
|
|
24
|
+
exports.flatten = void 0;
|
|
25
|
+
exports.foldLeftWhile_ = foldLeftWhile_;
|
|
26
|
+
exports.foldMapWithIndex_ = exports.foldLeft_ = exports.foldLeftWithIndex_ = void 0;
|
|
27
|
+
exports.foldMap_ = foldMap_;
|
|
28
|
+
exports.foldRightWhile_ = foldRightWhile_;
|
|
29
|
+
exports.foldRightWithIndex_ = void 0;
|
|
30
|
+
exports.foldRight_ = foldRight_;
|
|
31
|
+
exports.forEachWithIndex_ = forEachWithIndex_;
|
|
32
|
+
exports.forEach_ = void 0;
|
|
33
|
+
exports.from = from;
|
|
34
|
+
exports.get_ = get_;
|
|
35
|
+
exports.groupWith_ = groupWith_;
|
|
36
|
+
exports.head = head;
|
|
37
|
+
exports.indexOf_ = indexOf_;
|
|
38
|
+
exports.insertAllAt_ = insertAllAt_;
|
|
39
|
+
exports.insertAt_ = insertAt_;
|
|
40
|
+
exports.intersperse_ = intersperse_;
|
|
41
|
+
exports.isEmpty = isEmpty;
|
|
42
|
+
exports.isNonEmpty = isNonEmpty;
|
|
43
|
+
exports.join_ = join_;
|
|
44
|
+
exports.last = last;
|
|
45
|
+
exports.lastIndexOf_ = lastIndexOf_;
|
|
46
|
+
exports.makeBy = makeBy;
|
|
47
|
+
exports.mapAccum_ = mapAccum_;
|
|
48
|
+
exports.map_ = exports.mapWithIndex_ = void 0;
|
|
49
|
+
exports.modifyAt_ = modifyAt_;
|
|
50
|
+
exports.mutableClone = void 0;
|
|
51
|
+
exports.none_ = none_;
|
|
52
|
+
exports.pair = pair;
|
|
53
|
+
exports.pop = void 0;
|
|
54
|
+
exports.prepend_ = prepend_;
|
|
55
|
+
exports.range = range;
|
|
56
|
+
exports.remove_ = remove_;
|
|
57
|
+
exports.replicate = replicate;
|
|
58
|
+
exports.scanLeft_ = scanLeft_;
|
|
59
|
+
exports.single = single;
|
|
60
|
+
exports.sortWith_ = exports.slice_ = void 0;
|
|
61
|
+
exports.sort_ = sort_;
|
|
62
|
+
exports.splitAt_ = void 0;
|
|
63
|
+
exports.splitWhen_ = splitWhen_;
|
|
64
|
+
exports.tail = tail;
|
|
65
|
+
exports.takeLastWhile_ = takeLastWhile_;
|
|
66
|
+
exports.takeLast_ = takeLast_;
|
|
67
|
+
exports.takeWhile_ = takeWhile_;
|
|
68
|
+
exports.take_ = take_;
|
|
69
|
+
exports.toArray = toArray;
|
|
70
|
+
exports.toList = toList;
|
|
71
|
+
exports.unfold = unfold;
|
|
72
|
+
exports.uniq = uniq;
|
|
73
|
+
exports.vector = exports.updateAt_ = exports.unsafeLast = exports.unsafeHead = exports.unsafeGet_ = exports.unsafeFind_ = exports.unsafeFindLast_ = void 0;
|
|
74
|
+
|
|
75
|
+
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Vector"));
|
|
76
|
+
|
|
77
|
+
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Vector/internal"));
|
|
78
|
+
|
|
79
|
+
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass/Equatable/api"));
|
|
80
|
+
|
|
81
|
+
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Vector/definition"));
|
|
82
|
+
|
|
83
|
+
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
|
84
|
+
|
|
85
|
+
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/mutable/ListBuffer"));
|
|
86
|
+
|
|
87
|
+
var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/definition"));
|
|
88
|
+
|
|
89
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
90
|
+
|
|
91
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
92
|
+
|
|
93
|
+
const append_ = append_1;
|
|
94
|
+
exports.append_ = append_;
|
|
95
|
+
const concat_ = concat_1;
|
|
96
|
+
exports.concat_ = concat_;
|
|
97
|
+
const dropRepeatsWith_ = dropRepeatsWith_1;
|
|
98
|
+
exports.dropRepeatsWith_ = dropRepeatsWith_;
|
|
99
|
+
const empty = empty_1;
|
|
100
|
+
exports.empty = empty;
|
|
101
|
+
const emptyPushable = emptyPushable_1;
|
|
102
|
+
exports.emptyPushable = emptyPushable;
|
|
103
|
+
const exists_ = exists_1;
|
|
104
|
+
exports.exists_ = exists_;
|
|
105
|
+
const findIndex_ = findIndex_1;
|
|
106
|
+
exports.findIndex_ = findIndex_;
|
|
107
|
+
const flatten = flatten_1;
|
|
108
|
+
exports.flatten = flatten;
|
|
109
|
+
const foldLeft_ = foldLeft_1;
|
|
110
|
+
exports.foldLeft_ = foldLeft_;
|
|
111
|
+
const foldLeftWithIndex_ = foldLeftWithIndex_1;
|
|
112
|
+
exports.foldLeftWithIndex_ = foldLeftWithIndex_;
|
|
113
|
+
const foldMapWithIndex_ = foldMapWithIndex_1;
|
|
114
|
+
exports.foldMapWithIndex_ = foldMapWithIndex_;
|
|
115
|
+
const foldRightWithIndex_ = foldRightWithIndex_1;
|
|
116
|
+
exports.foldRightWithIndex_ = foldRightWithIndex_;
|
|
117
|
+
const forEach_ = forEach_1;
|
|
118
|
+
exports.forEach_ = forEach_;
|
|
119
|
+
const map_ = map_1;
|
|
120
|
+
exports.map_ = map_;
|
|
121
|
+
const mapWithIndex_ = mapWithIndex_1;
|
|
122
|
+
exports.mapWithIndex_ = mapWithIndex_;
|
|
123
|
+
const mutableClone = mutableClone_1;
|
|
124
|
+
exports.mutableClone = mutableClone;
|
|
125
|
+
const pop = pop_1;
|
|
126
|
+
exports.pop = pop;
|
|
127
|
+
const slice_ = slice_1;
|
|
128
|
+
exports.slice_ = slice_;
|
|
129
|
+
const sortWith_ = sortWith_1;
|
|
130
|
+
exports.sortWith_ = sortWith_;
|
|
131
|
+
const splitAt_ = splitAt_1;
|
|
132
|
+
exports.splitAt_ = splitAt_;
|
|
133
|
+
const unsafeFind_ = unsafeFind_1;
|
|
134
|
+
exports.unsafeFind_ = unsafeFind_;
|
|
135
|
+
const unsafeFindLast_ = unsafeFindLast_1;
|
|
136
|
+
exports.unsafeFindLast_ = unsafeFindLast_;
|
|
137
|
+
const unsafeGet_ = unsafeGet_1;
|
|
138
|
+
exports.unsafeGet_ = unsafeGet_;
|
|
139
|
+
const unsafeHead = unsafeHead_1;
|
|
140
|
+
exports.unsafeHead = unsafeHead;
|
|
141
|
+
const unsafeLast = unsafeLast_1;
|
|
142
|
+
exports.unsafeLast = unsafeLast;
|
|
143
|
+
const updateAt_ = updateAt_1;
|
|
144
|
+
exports.updateAt_ = updateAt_;
|
|
145
|
+
const vector = vector_1;
|
|
146
|
+
exports.vector = vector;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Appends an element to the end of a Vector and returns the new Vector.
|
|
150
|
+
*
|
|
151
|
+
* @complexity O(n)
|
|
152
|
+
*
|
|
153
|
+
* @tsplus fluent fncts.Vector append
|
|
154
|
+
*/
|
|
155
|
+
function append_1(as, a) {
|
|
156
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(as);
|
|
157
|
+
|
|
158
|
+
if (suffixSize < 32) {
|
|
159
|
+
return new tsplus_module_1.Vector((0, tsplus_module_2.incrementSuffix)(as.bits), as.offset, as.length + 1, as.prefix, as.root, (0, tsplus_module_2.affixPush)(a, as.suffix, suffixSize));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const newSuffix = [a];
|
|
163
|
+
const newVector = mutableClone_1(as);
|
|
164
|
+
(0, tsplus_module_2.appendNodeToTree)(newVector, as.suffix);
|
|
165
|
+
newVector.suffix = newSuffix;
|
|
166
|
+
newVector.length++;
|
|
167
|
+
newVector.bits = (0, tsplus_module_2.setSuffix)(1, newVector.bits);
|
|
168
|
+
return newVector;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Maps a function over a Vector and concatenates all the resulting
|
|
172
|
+
* Vectors together.
|
|
173
|
+
*
|
|
174
|
+
* @tsplus fluent fncts.Vector flatMap
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
function flatMap_(ma, f) {
|
|
179
|
+
return flatten_1(map_1(ma, f));
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Splits the Vector into chunks of the given size.
|
|
183
|
+
*
|
|
184
|
+
* @tsplus fluent fncts.Vector chunksOf
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
function chunksOf_(as, size) {
|
|
189
|
+
const {
|
|
190
|
+
buffer,
|
|
191
|
+
l2
|
|
192
|
+
} = foldLeft_1(as, {
|
|
193
|
+
l2: emptyPushable_1(),
|
|
194
|
+
buffer: emptyPushable_1()
|
|
195
|
+
}, ({
|
|
196
|
+
buffer,
|
|
197
|
+
l2
|
|
198
|
+
}, elem) => {
|
|
199
|
+
tsplus_module_2.push(buffer, elem);
|
|
200
|
+
|
|
201
|
+
if (buffer.length === size) {
|
|
202
|
+
return {
|
|
203
|
+
l2: tsplus_module_2.push(l2, buffer),
|
|
204
|
+
buffer: emptyPushable_1()
|
|
205
|
+
};
|
|
206
|
+
} else {
|
|
207
|
+
return {
|
|
208
|
+
l2,
|
|
209
|
+
buffer
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
return buffer.length === 0 ? l2 : tsplus_module_2.push(l2, buffer);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function concat_1(self, that) {
|
|
217
|
+
if (self.length === 0) {
|
|
218
|
+
return that;
|
|
219
|
+
} else if (that.length === 0) {
|
|
220
|
+
return self;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const newSize = self.length + that.length;
|
|
224
|
+
const rightSuffixSize = (0, tsplus_module_2.getSuffixSize)(that);
|
|
225
|
+
let newVector = mutableClone_1(self);
|
|
226
|
+
|
|
227
|
+
if (that.root === undefined) {
|
|
228
|
+
// right is nothing but a prefix and a suffix
|
|
229
|
+
const nrOfAffixes = (0, tsplus_module_2.concatAffixes)(self, that);
|
|
230
|
+
|
|
231
|
+
for (let i = 0; i < nrOfAffixes; ++i) {
|
|
232
|
+
newVector = (0, tsplus_module_2.appendNodeToTree)(newVector, tsplus_module_2.concatBuffer[i]);
|
|
233
|
+
newVector.length += tsplus_module_2.concatBuffer[i].length; // wipe pointer, otherwise it might end up keeping the array alive
|
|
234
|
+
|
|
235
|
+
tsplus_module_2.concatBuffer[i] = undefined;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
newVector.length = newSize;
|
|
239
|
+
newVector.suffix = tsplus_module_2.concatBuffer[nrOfAffixes];
|
|
240
|
+
newVector.bits = (0, tsplus_module_2.setSuffix)(tsplus_module_2.concatBuffer[nrOfAffixes].length, newVector.bits);
|
|
241
|
+
tsplus_module_2.concatBuffer[nrOfAffixes] = undefined;
|
|
242
|
+
return newVector;
|
|
243
|
+
} else {
|
|
244
|
+
const leftSuffixSize = (0, tsplus_module_2.getSuffixSize)(self);
|
|
245
|
+
|
|
246
|
+
if (leftSuffixSize > 0) {
|
|
247
|
+
newVector = (0, tsplus_module_2.appendNodeToTree)(newVector, self.suffix.slice(0, leftSuffixSize));
|
|
248
|
+
newVector.length += leftSuffixSize;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
newVector = (0, tsplus_module_2.appendNodeToTree)(newVector, that.prefix.slice(0, (0, tsplus_module_2.getPrefixSize)(that)).reverse());
|
|
252
|
+
const newNode = (0, tsplus_module_2.concatSubTree)(newVector.root, (0, tsplus_module_2.getDepth)(newVector), that.root, (0, tsplus_module_2.getDepth)(that), true);
|
|
253
|
+
const newDepth = (0, tsplus_module_2.getHeight)(newNode);
|
|
254
|
+
(0, tsplus_module_2.setSizes)(newNode, newDepth);
|
|
255
|
+
newVector.root = newNode;
|
|
256
|
+
newVector.offset &= ~(tsplus_module_2.mask << (0, tsplus_module_2.getDepth)(self) * tsplus_module_2.branchBits);
|
|
257
|
+
newVector.length = newSize;
|
|
258
|
+
newVector.bits = (0, tsplus_module_2.setSuffix)(rightSuffixSize, (0, tsplus_module_2.setDepth)(newDepth, newVector.bits));
|
|
259
|
+
newVector.suffix = that.suffix;
|
|
260
|
+
return newVector;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const containsState = {
|
|
265
|
+
element: undefined,
|
|
266
|
+
result: false
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
function containsCb(value, state) {
|
|
270
|
+
return !(state.result = value === state.element);
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Returns `true` if the Vector contains the specified element.
|
|
274
|
+
* Otherwise it returns `false`.
|
|
275
|
+
*
|
|
276
|
+
* @complexity O(n)
|
|
277
|
+
* @tsplus fluent fncts.Vector contains
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
function contains_(as, element) {
|
|
282
|
+
containsState.element = element;
|
|
283
|
+
containsState.result = false;
|
|
284
|
+
return (0, tsplus_module_2.foldLeftCb)(containsCb, containsState, as).result;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Returns a new Vector without the first `n` elements.
|
|
288
|
+
*
|
|
289
|
+
* @complexity `O(log(n))`
|
|
290
|
+
* @tsplus fluent fncts.Vector drop
|
|
291
|
+
*/
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
function drop_(as, n) {
|
|
295
|
+
return slice_1(as, n, as.length);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Returns a new Vector without the last `n` elements.
|
|
299
|
+
*
|
|
300
|
+
* @complexity `O(log(n))`
|
|
301
|
+
* @tsplus fluent fncts.Vector dropLast
|
|
302
|
+
*/
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
function dropLast_(as, n) {
|
|
306
|
+
return slice_1(as, 0, as.length - n);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Returns a new Vector without repeated elements.
|
|
310
|
+
*
|
|
311
|
+
* @complexity `O(n)`
|
|
312
|
+
* @tsplus getter fncts.Vector dropRepeats
|
|
313
|
+
*/
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
function dropRepeats(as) {
|
|
317
|
+
return dropRepeatsWith_1(as, tsplus_module_3.strictEquals);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Returns a new Vector without repeated elements by using the given
|
|
321
|
+
* function to determine when elements are equal.
|
|
322
|
+
*
|
|
323
|
+
* @complexity `O(n)`
|
|
324
|
+
* @tsplus fluent fncts.Vector dropRepeatsWith
|
|
325
|
+
*/
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
function dropRepeatsWith_1(as, predicate) {
|
|
329
|
+
return foldLeft_1(as, emptyPushable_1(), (acc, a) => acc.length !== 0 && predicate(unsafeLast_1(acc), a) ? acc : tsplus_module_2.push(acc, a));
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
function findNotIndexCb(value, state) {
|
|
333
|
+
if (state.predicate(value)) {
|
|
334
|
+
++state.index;
|
|
335
|
+
return true;
|
|
336
|
+
} else {
|
|
337
|
+
return false;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Removes the first elements in the Vector for which the predicate returns
|
|
342
|
+
* `true`.
|
|
343
|
+
*
|
|
344
|
+
* @complexity `O(k + log(n))` where `k` is the number of elements
|
|
345
|
+
* satisfying the predicate.
|
|
346
|
+
* @tsplus fluent fncts.Vector dropWhile
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
function dropWhile_(as, predicate) {
|
|
351
|
+
const {
|
|
352
|
+
index
|
|
353
|
+
} = (0, tsplus_module_2.foldLeftCb)(findNotIndexCb, {
|
|
354
|
+
predicate,
|
|
355
|
+
index: 0
|
|
356
|
+
}, as);
|
|
357
|
+
return slice_1(as, index, as.length);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
function elemCb(value, state) {
|
|
361
|
+
return !(state.result = state.equals(value, state.element));
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* @tsplus getter fncts.Vector elem
|
|
365
|
+
*/
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
function elem_(self) {
|
|
369
|
+
return E => {
|
|
370
|
+
const elemState = {
|
|
371
|
+
equals: E.equals_,
|
|
372
|
+
element: undefined,
|
|
373
|
+
result: false
|
|
374
|
+
};
|
|
375
|
+
return a => {
|
|
376
|
+
elemState.element = a;
|
|
377
|
+
return (0, tsplus_module_2.foldLeftCb)(elemCb, elemState, self).result;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Returns true if the two Vectors are equivalent.
|
|
383
|
+
*
|
|
384
|
+
* @complexity O(n)
|
|
385
|
+
* @tsplus fluent fncts.Vector equals
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
function equals_(self, that) {
|
|
390
|
+
return tsplus_module_4.corresponds_(self, that, tsplus_module_3.strictEquals);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
function everyCb(value, state) {
|
|
394
|
+
return state.result = state.predicate(value);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
function every_(as, predicate) {
|
|
398
|
+
return (0, tsplus_module_2.foldLeftCb)(everyCb, {
|
|
399
|
+
predicate,
|
|
400
|
+
result: true
|
|
401
|
+
}, as).result;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Creates an empty Vector.
|
|
405
|
+
*
|
|
406
|
+
* @complexity O(1)
|
|
407
|
+
* @tsplus static fncts.VectorOps empty
|
|
408
|
+
*/
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
function empty_1() {
|
|
412
|
+
return new tsplus_module_1.Vector(0, 0, 0, tsplus_module_2.emptyAffix, undefined, tsplus_module_2.emptyAffix);
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* @tsplus static fncts.VectorOps emptyPushable
|
|
416
|
+
*/
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
function emptyPushable_1() {
|
|
420
|
+
return new tsplus_module_1.Vector(0, 0, 0, [], undefined, []);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
function existsCb(value, state) {
|
|
424
|
+
return !(state.result = state.predicate(value));
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Returns true if and only if there exists an element in the Vector for
|
|
428
|
+
* which the predicate returns true.
|
|
429
|
+
*
|
|
430
|
+
* @complexity O(n)
|
|
431
|
+
*
|
|
432
|
+
* @tsplus fluent fncts.Vector exists
|
|
433
|
+
*/
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
function exists_1(as, predicate) {
|
|
437
|
+
return (0, tsplus_module_2.foldLeftCb)(existsCb, {
|
|
438
|
+
predicate,
|
|
439
|
+
result: false
|
|
440
|
+
}, as).result;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Returns the _first_ element for which the predicate returns `true`.
|
|
444
|
+
* If no such element is found the function returns `undefined`.
|
|
445
|
+
*
|
|
446
|
+
* @complexity O(n)
|
|
447
|
+
* @tsplus fluent fncts.Vector find
|
|
448
|
+
*/
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
function find_(as, predicate) {
|
|
452
|
+
return tsplus_module_5.fromNullable(unsafeFind_1(as, predicate));
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
function findIndexCb(value, state) {
|
|
456
|
+
++state.index;
|
|
457
|
+
return !(state.found = state.predicate(value));
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Returns the index of the `first` element for which the predicate
|
|
461
|
+
* returns true. If no such element is found the function returns
|
|
462
|
+
* `-1`.
|
|
463
|
+
*
|
|
464
|
+
* @complexity O(n)
|
|
465
|
+
* @tsplus fluent fncts.Vector findIndex
|
|
466
|
+
*/
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
function findIndex_1(as, predicate) {
|
|
470
|
+
const {
|
|
471
|
+
found,
|
|
472
|
+
index
|
|
473
|
+
} = (0, tsplus_module_2.foldLeftCb)(findIndexCb, {
|
|
474
|
+
predicate,
|
|
475
|
+
found: false,
|
|
476
|
+
index: -1
|
|
477
|
+
}, as);
|
|
478
|
+
return found ? index : -1;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Returns the _last_ element for which the predicate returns `true`.
|
|
482
|
+
* If no such element is found the function returns `undefined`.
|
|
483
|
+
*
|
|
484
|
+
* @complexity O(n)
|
|
485
|
+
* @tsplus fluent fncts.Vector findLast
|
|
486
|
+
*/
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
function findLast_(as, predicate) {
|
|
490
|
+
return tsplus_module_5.fromNullable(unsafeFindLast_1(as, predicate));
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Returns the index of the `last` element for which the predicate
|
|
494
|
+
* returns true. If no such element is found the function returns
|
|
495
|
+
* `-1`.
|
|
496
|
+
*
|
|
497
|
+
* @complexity O(n)
|
|
498
|
+
* @tsplus fluent fncts.Vector findLastIndex
|
|
499
|
+
*/
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
function findLastIndex_(as, predicate) {
|
|
503
|
+
const {
|
|
504
|
+
found,
|
|
505
|
+
index
|
|
506
|
+
} = (0, tsplus_module_2.foldRightCb)(findIndexCb, {
|
|
507
|
+
predicate,
|
|
508
|
+
found: false,
|
|
509
|
+
index: -0
|
|
510
|
+
}, as);
|
|
511
|
+
return found ? index : -1;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Flattens a Vector of Vectors into a Vector. Note that this function does
|
|
515
|
+
* not flatten recursively. It removes one level of nesting only.
|
|
516
|
+
*
|
|
517
|
+
* @complexity O(n * log(m)), where n is the length of the outer Vector and m the length of the inner Vectors.
|
|
518
|
+
*
|
|
519
|
+
* @tsplus getter fncts.Vector flatten
|
|
520
|
+
*/
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
function flatten_1(mma) {
|
|
524
|
+
return foldLeft_1(mma, empty_1(), (acc, a) => concat_1(acc, a));
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
function from(sequence) {
|
|
528
|
+
const l = emptyPushable_1();
|
|
529
|
+
|
|
530
|
+
if (sequence.length > 0 && (sequence[0] !== undefined || 0 in sequence)) {
|
|
531
|
+
for (let i = 0; i < sequence.length; ++i) {
|
|
532
|
+
tsplus_module_2.push(l, sequence[i]);
|
|
533
|
+
}
|
|
534
|
+
} else if (Symbol.iterator in sequence) {
|
|
535
|
+
const iterator = sequence[Symbol.iterator]();
|
|
536
|
+
let cur;
|
|
537
|
+
|
|
538
|
+
while (!(cur = iterator.next()).done) {
|
|
539
|
+
tsplus_module_2.push(l, cur.value);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
return l;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Folds a function over a Vector. Left-associative.
|
|
547
|
+
*
|
|
548
|
+
* @tsplus fluent fncts.Vector foldLeft
|
|
549
|
+
*/
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
function foldLeft_1(fa, initial, f) {
|
|
553
|
+
return foldLeftWithIndex_1(fa, initial, (_, b, a) => f(b, a));
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* @tsplus fluent fncts.Vector foldLeftWithIndex
|
|
557
|
+
*/
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
function foldLeftWithIndex_1(fa, b, f) {
|
|
561
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(fa);
|
|
562
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(fa);
|
|
563
|
+
let [acc, index] = (0, tsplus_module_2.foldLeftPrefix)(f, b, fa.prefix, prefixSize);
|
|
564
|
+
|
|
565
|
+
if (fa.root !== undefined) {
|
|
566
|
+
[acc, index] = (0, tsplus_module_2.foldLeftNode)(f, acc, fa.root, (0, tsplus_module_2.getDepth)(fa), index);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
return (0, tsplus_module_2.foldLeftSuffix)(f, acc, fa.suffix, suffixSize, index)[0];
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Similar to `foldl`. But, for each element it calls the predicate function
|
|
573
|
+
* _before_ the folding function and stops folding if it returns `false`.
|
|
574
|
+
*
|
|
575
|
+
*
|
|
576
|
+
* @example
|
|
577
|
+
* const isOdd = (_acc:, x) => x % 2 === 1;
|
|
578
|
+
*
|
|
579
|
+
* const xs = V.vector(1, 3, 5, 60, 777, 800);
|
|
580
|
+
* foldlWhile(isOdd, (n, m) => n + m, 0, xs) //=> 9
|
|
581
|
+
*
|
|
582
|
+
* const ys = V.vector(2, 4, 6);
|
|
583
|
+
* foldlWhile(isOdd, (n, m) => n + m, 111, ys) //=> 111
|
|
584
|
+
*/
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
function foldWhileCb(a, state, i) {
|
|
588
|
+
if (state.predicate(state.result) === false) {
|
|
589
|
+
return false;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
state.result = state.f(i, state.result, a);
|
|
593
|
+
return true;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* @tsplus fluent fncts.Vector foldLeftWhile
|
|
597
|
+
*/
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
function foldLeftWhile_(fa, b, cont, f) {
|
|
601
|
+
if (!cont(b)) {
|
|
602
|
+
return b;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
return (0, tsplus_module_2.foldLeftCb)(foldWhileCb, {
|
|
606
|
+
predicate: cont,
|
|
607
|
+
f,
|
|
608
|
+
result: b
|
|
609
|
+
}, fa).result;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* @tsplus fluent fncts.Vector foldRightWhile
|
|
613
|
+
*/
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
function foldRightWhile_(fa, b, cont, f) {
|
|
617
|
+
return (0, tsplus_module_2.foldRightCb)(foldWhileCb, {
|
|
618
|
+
predicate: cont,
|
|
619
|
+
result: b,
|
|
620
|
+
f: (i, b, a) => f(i, a, b)
|
|
621
|
+
}, fa).result;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* @tsplus getter fncts.Vector foldMap
|
|
625
|
+
*/
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
function foldMap_(self) {
|
|
629
|
+
return M => f => foldMapWithIndex_1(self)(M)((_, a) => f(a));
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* @tsplus getter fncts.Vector foldMapWithIndex
|
|
633
|
+
*/
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
function foldMapWithIndex_1(self) {
|
|
637
|
+
return M => f => foldLeftWithIndex_1(self, M.nat, (i, b, a) => M.combine_(b, f(i, a)));
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Folds a function over a Vector. Right-associative.
|
|
641
|
+
*
|
|
642
|
+
* @complexity O(n)
|
|
643
|
+
* @tsplus fluent fncts.Vector foldRight
|
|
644
|
+
*/
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
function foldRight_(fa, initial, f) {
|
|
648
|
+
return foldRightWithIndex_1(fa, initial, (_, a, b) => f(a, b));
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Folds a function over a Vector. Right-associative.
|
|
652
|
+
*
|
|
653
|
+
* @complexity O(n)
|
|
654
|
+
* @tsplus fluent fncts.Vector foldRightWithIndex
|
|
655
|
+
*/
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
function foldRightWithIndex_1(fa, b, f) {
|
|
659
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(fa);
|
|
660
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(fa);
|
|
661
|
+
let [acc, j] = (0, tsplus_module_2.foldRightSuffix)(f, b, fa.suffix, suffixSize, fa.length - 1);
|
|
662
|
+
|
|
663
|
+
if (fa.root !== undefined) {
|
|
664
|
+
[acc, j] = (0, tsplus_module_2.foldRightNode)(f, acc, fa.root, (0, tsplus_module_2.getDepth)(fa), j);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
return (0, tsplus_module_2.foldRightPrefix)(f, acc, fa.prefix, prefixSize, j)[0];
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Invokes a given callback for each element in the Vector from left to
|
|
671
|
+
* right. Returns `undefined`.
|
|
672
|
+
*
|
|
673
|
+
* This function is very similar to map. It should be used instead of
|
|
674
|
+
* `map` when the mapping function has side-effects. Whereas `map`
|
|
675
|
+
* constructs a new Vector `forEach` merely returns `undefined`. This
|
|
676
|
+
* makes `forEach` faster when the new Vector is unneeded.
|
|
677
|
+
*
|
|
678
|
+
* @complexity O(n)
|
|
679
|
+
* @tsplus fluent fncts.Vector forEach
|
|
680
|
+
*/
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
function forEach_1(as, f) {
|
|
684
|
+
foldLeft_1(as, undefined, (_, element) => f(element));
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* @tsplus fluent fncts.Vector forEachWithIndex
|
|
688
|
+
*/
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
function forEachWithIndex_(as, f) {
|
|
692
|
+
foldLeftWithIndex_1(as, undefined, (index, _, element) => f(index, element));
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Gets the nth element of the Vector. If `n` is out of bounds
|
|
696
|
+
* `undefined` is returned.
|
|
697
|
+
*
|
|
698
|
+
* @complexity O(log(n))
|
|
699
|
+
* @tsplus fluent fncts.Vector get
|
|
700
|
+
*/
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
function get_(self, index) {
|
|
704
|
+
return tsplus_module_5.fromNullable(unsafeGet_1(self, index));
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* Returns a Vector of Vectors where each subvector's elements are pairwise
|
|
708
|
+
* equal based on the given comparison function.
|
|
709
|
+
*
|
|
710
|
+
* Note that only adjacent elements are compared for equality. If all
|
|
711
|
+
* equal elements should be grouped together the Vector should be sorted
|
|
712
|
+
* before grouping.
|
|
713
|
+
*
|
|
714
|
+
* @tsplus fluent fncts.Vector groupWith
|
|
715
|
+
*/
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
function groupWith_(as, f) {
|
|
719
|
+
const result = emptyPushable_1();
|
|
720
|
+
let buffer = emptyPushable_1();
|
|
721
|
+
forEach_1(as, a => {
|
|
722
|
+
if (buffer.length !== 0 && !f(unsafeLast_1(buffer), a)) {
|
|
723
|
+
tsplus_module_2.push(result, buffer);
|
|
724
|
+
buffer = emptyPushable_1();
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
tsplus_module_2.push(buffer, a);
|
|
728
|
+
});
|
|
729
|
+
return buffer.length === 0 ? result : tsplus_module_2.push(result, buffer);
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Returns the first element of the Vector.
|
|
733
|
+
*
|
|
734
|
+
* @complexity O(1)
|
|
735
|
+
* @tsplus getter fncts.Vector head
|
|
736
|
+
*/
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
function head(self) {
|
|
740
|
+
return tsplus_module_5.fromNullable(unsafeHead_1(self));
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
function indexOfCb(value, state) {
|
|
744
|
+
++state.index;
|
|
745
|
+
return !(state.found = tsplus_module_3.strictEquals(value, state.element));
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Returns the index of the _first_ element in the Vector that is equal
|
|
749
|
+
* to the given element. If no such element is found `-1` is returned.
|
|
750
|
+
*
|
|
751
|
+
* @complexity O(n)
|
|
752
|
+
* @tsplus fluent fncts.Vector indexOf
|
|
753
|
+
*/
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
function indexOf_(as, element) {
|
|
757
|
+
const state = {
|
|
758
|
+
element,
|
|
759
|
+
found: false,
|
|
760
|
+
index: -1
|
|
761
|
+
};
|
|
762
|
+
(0, tsplus_module_2.foldLeftCb)(indexOfCb, state, as);
|
|
763
|
+
return state.found ? state.index : -1;
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Inserts the given element at the given index in the Vector.
|
|
767
|
+
*
|
|
768
|
+
* @complexity O(log(n))
|
|
769
|
+
* @tsplus fluent fncts.Vector insertAt
|
|
770
|
+
*/
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
function insertAt_(as, index, element) {
|
|
774
|
+
return concat_1(append_1(slice_1(as, 0, index), element), slice_1(as, index, as.length));
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Inserts the given Vector of elements at the given index in the Vector.
|
|
778
|
+
*
|
|
779
|
+
* @complexity `O(log(n))`
|
|
780
|
+
* @tsplus fluent fncts.Vector insertAllAt
|
|
781
|
+
*/
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
function insertAllAt_(as, index, elements) {
|
|
785
|
+
return concat_1(concat_1(slice_1(as, 0, index), elements), slice_1(as, index, as.length));
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Inserts a separator between each element in a Vector.
|
|
789
|
+
*
|
|
790
|
+
* @tsplus fluent fncts.Vector intersperse
|
|
791
|
+
*/
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
function intersperse_(as, separator) {
|
|
795
|
+
return pop_1(foldLeft_1(as, emptyPushable_1(), (l2, a) => tsplus_module_2.push(tsplus_module_2.push(l2, a), separator)));
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* @tsplus fluent fncts.Vector isEmpty
|
|
799
|
+
*/
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
function isEmpty(l) {
|
|
803
|
+
return l.length === 0;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* @tsplus fluent fncts.Vector isNonEmpty
|
|
807
|
+
*/
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
function isNonEmpty(l) {
|
|
811
|
+
return l.length > 0;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Concatenates the strings in the Vector separated by a specified separator.
|
|
815
|
+
*
|
|
816
|
+
* @tsplus fluent fncts.Vector join
|
|
817
|
+
*/
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
function join_(as, separator) {
|
|
821
|
+
return foldLeft_1(as, "", (a, b) => a.length === 0 ? b : a + separator + b);
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Returns the last element of the Vector.
|
|
825
|
+
*
|
|
826
|
+
* @complexity O(1)
|
|
827
|
+
* @tsplus getter fncts.Vector last
|
|
828
|
+
*/
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
function last(l) {
|
|
832
|
+
return tsplus_module_5.fromNullable(unsafeLast_1(l));
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Returns the index of the _last_ element in the Vector that is equal
|
|
836
|
+
* to the given element. If no such element is found `-1` is returned.
|
|
837
|
+
*
|
|
838
|
+
* @complexity O(n)
|
|
839
|
+
* @tsplus fluent fncts.Vector lastIndexOf
|
|
840
|
+
*/
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
function lastIndexOf_(as, element) {
|
|
844
|
+
const state = {
|
|
845
|
+
element,
|
|
846
|
+
found: false,
|
|
847
|
+
index: 0
|
|
848
|
+
};
|
|
849
|
+
(0, tsplus_module_2.foldRightCb)(indexOfCb, state, as);
|
|
850
|
+
return state.found ? as.length - state.index : -1;
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* Generates a new Vector by calling a function with the current index
|
|
854
|
+
* `n` times.
|
|
855
|
+
*
|
|
856
|
+
* @complexity O(n)
|
|
857
|
+
* @tsplus static fncts.VectorOps makeBy
|
|
858
|
+
*/
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
function makeBy(n, f) {
|
|
862
|
+
const l = emptyPushable_1();
|
|
863
|
+
|
|
864
|
+
for (let i = 0; i < n; i++) {
|
|
865
|
+
tsplus_module_2.push(l, f(i));
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
return l;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* @tsplus fluent fncts.Vector mapAccum
|
|
872
|
+
*/
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
function mapAccum_(fa, s, f) {
|
|
876
|
+
return foldLeft_1(fa, [emptyPushable_1(), s], ([acc, s], a) => {
|
|
877
|
+
const r = f(s, a);
|
|
878
|
+
tsplus_module_2.push(acc, r[0]);
|
|
879
|
+
return [acc, r[1]];
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Applies a function to each element in the given Vector and returns a
|
|
884
|
+
* new Vector of the values that the function return.
|
|
885
|
+
*
|
|
886
|
+
* @complexity O(n)
|
|
887
|
+
* @tsplus fluent fncts.Vector map
|
|
888
|
+
*/
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
function map_1(fa, f) {
|
|
892
|
+
return mapWithIndex_1(fa, (_, a) => f(a));
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Applies a function to each element in the given Vector and returns a
|
|
896
|
+
* new Vector of the values that the function return.
|
|
897
|
+
*
|
|
898
|
+
* @complexity O(n)
|
|
899
|
+
* @tsplus fluent fncts.Vector mapWithIndex
|
|
900
|
+
*/
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
function mapWithIndex_1(fa, f) {
|
|
904
|
+
return new tsplus_module_1.Vector(fa.bits, fa.offset, fa.length, (0, tsplus_module_2.mapPrefix)(f, fa.prefix, (0, tsplus_module_2.getPrefixSize)(fa)), fa.root === undefined ? undefined : (0, tsplus_module_2.mapNode)(f, fa.root, (0, tsplus_module_2.getDepth)(fa), (0, tsplus_module_2.getPrefixSize)(fa), 1)[0], (0, tsplus_module_2.mapAffix)(f, fa.suffix, (0, tsplus_module_2.getSuffixSize)(fa), fa.length));
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* @tsplus getter fncts.Vector mutableClone
|
|
908
|
+
*/
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
function mutableClone_1(as) {
|
|
912
|
+
return new tsplus_module_1.Vector(as.bits, as.offset, as.length, as.prefix, as.root, as.suffix);
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Returns a Vector that has the entry specified by the index replaced with
|
|
916
|
+
* the value returned by applying the function to the value.
|
|
917
|
+
*
|
|
918
|
+
* If the index is out of bounds the given Vector is
|
|
919
|
+
* returned unchanged.
|
|
920
|
+
*
|
|
921
|
+
* @complexity `O(log(n))`
|
|
922
|
+
*
|
|
923
|
+
* @tsplus fluent fncts.Vector modifyAt
|
|
924
|
+
*/
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
function modifyAt_(as, i, f) {
|
|
928
|
+
if (i < 0 || as.length <= i) {
|
|
929
|
+
return as;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
return updateAt_1(as, i, f(unsafeGet_1(as, i)));
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* Returns `true` if and only if the predicate function returns
|
|
936
|
+
* `false` for every element in the given Vector.
|
|
937
|
+
*
|
|
938
|
+
* @complexity O(n)
|
|
939
|
+
*
|
|
940
|
+
* @tsplus fluent fncts.Vector none
|
|
941
|
+
*/
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
function none_(as, predicate) {
|
|
945
|
+
return !exists_1(as, predicate);
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Takes two arguments and returns a Vector that contains them.
|
|
949
|
+
*
|
|
950
|
+
* @complexity O(1)
|
|
951
|
+
* @tsplus static fncts.VectorOps pair
|
|
952
|
+
*/
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
function pair(first, second) {
|
|
956
|
+
return new tsplus_module_1.Vector(2, 0, 2, tsplus_module_2.emptyAffix, undefined, [first, second]);
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* Returns a new Vector with the last element removed. If the Vector is
|
|
960
|
+
* empty the empty Vector is returned.
|
|
961
|
+
*
|
|
962
|
+
* @complexity `O(1)`
|
|
963
|
+
* @tsplus getter fncts.Vector pop
|
|
964
|
+
*/
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
function pop_1(as) {
|
|
968
|
+
return slice_1(as, 0, -1);
|
|
969
|
+
}
|
|
970
|
+
/**
|
|
971
|
+
* Prepends an element to the front of a Vector and returns the new Vector.
|
|
972
|
+
*
|
|
973
|
+
* @complexity O(1)
|
|
974
|
+
*
|
|
975
|
+
* @tsplus fluent fncts.Vector prepend
|
|
976
|
+
*/
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
function prepend_(as, a) {
|
|
980
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(as);
|
|
981
|
+
|
|
982
|
+
if (prefixSize < 32) {
|
|
983
|
+
return new tsplus_module_1.Vector((0, tsplus_module_2.incrementPrefix)(as.bits), as.offset, as.length + 1, (0, tsplus_module_2.affixPush)(a, as.prefix, prefixSize), as.root, as.suffix);
|
|
984
|
+
} else {
|
|
985
|
+
const newVector = mutableClone_1(as);
|
|
986
|
+
(0, tsplus_module_2.prependNodeToTree)(newVector, (0, tsplus_module_2.reverseArray)(as.prefix));
|
|
987
|
+
const newPrefix = [a];
|
|
988
|
+
newVector.prefix = newPrefix;
|
|
989
|
+
newVector.length++;
|
|
990
|
+
newVector.bits = (0, tsplus_module_2.setPrefix)(1, newVector.bits);
|
|
991
|
+
return newVector;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Returns a Vector of numbers between an inclusive lower bound and an exclusive upper bound.
|
|
996
|
+
*
|
|
997
|
+
* @complexity O(n)
|
|
998
|
+
* @tsplus static fncts.VectorOps range
|
|
999
|
+
*/
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
function range(start, end) {
|
|
1003
|
+
const vec = emptyPushable_1();
|
|
1004
|
+
|
|
1005
|
+
for (let i = start; i < end; ++i) {
|
|
1006
|
+
tsplus_module_2.push(vec, i);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
return vec;
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Takes an index, a number of elements to remove and a Vector. Returns a
|
|
1013
|
+
* new Vector with the given amount of elements removed from the specified
|
|
1014
|
+
* index.
|
|
1015
|
+
*
|
|
1016
|
+
* @complexity `O(log(n))`
|
|
1017
|
+
*
|
|
1018
|
+
* @tsplus fluent fncts.Vector remove
|
|
1019
|
+
*/
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
function remove_(as, from, amount) {
|
|
1023
|
+
return concat_1(slice_1(as, 0, from), slice_1(as, from + amount, as.length));
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Returns a Vector of a given length that contains the specified value
|
|
1027
|
+
* in all positions.
|
|
1028
|
+
*
|
|
1029
|
+
* @complexity O(n)
|
|
1030
|
+
* @tsplus static fncts.VectorOps replicate
|
|
1031
|
+
*/
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
function replicate(n, a) {
|
|
1035
|
+
let t = n;
|
|
1036
|
+
const l = emptyPushable_1();
|
|
1037
|
+
|
|
1038
|
+
while (--t >= 0) {
|
|
1039
|
+
tsplus_module_2.push(l, a);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
return l;
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Folds a function over a Vector from left to right while collecting
|
|
1046
|
+
* all the intermediate steps in a resulting Vector.
|
|
1047
|
+
*
|
|
1048
|
+
* @tsplus fluent fncts.Vector scanLeft
|
|
1049
|
+
*/
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
function scanLeft_(as, initial, f) {
|
|
1053
|
+
return foldLeft_1(as, tsplus_module_2.push(emptyPushable_1(), initial), (l2, a) => tsplus_module_2.push(l2, f(unsafeLast_1(l2), a)));
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Takes a single arguments and returns a singleton Vector that contains it.
|
|
1057
|
+
*
|
|
1058
|
+
* @complexity O(1)
|
|
1059
|
+
* @tsplus static fncts.VectorOps single
|
|
1060
|
+
*/
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
function single(a) {
|
|
1064
|
+
return vector_1(a);
|
|
1065
|
+
}
|
|
1066
|
+
/**
|
|
1067
|
+
* Returns a slice of a Vector. Elements are removed from the beginning and
|
|
1068
|
+
* end. Both the indices can be negative in which case they will count
|
|
1069
|
+
* from the right end of the Vector.
|
|
1070
|
+
*
|
|
1071
|
+
* @complexity `O(log(n))`
|
|
1072
|
+
* @tsplus fluent fncts.Vector slice
|
|
1073
|
+
*/
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
function slice_1(as, from, to) {
|
|
1077
|
+
let {
|
|
1078
|
+
bits,
|
|
1079
|
+
length
|
|
1080
|
+
} = as;
|
|
1081
|
+
let _to = to;
|
|
1082
|
+
let _from = from;
|
|
1083
|
+
_to = Math.min(length, to); // Handle negative indices
|
|
1084
|
+
|
|
1085
|
+
if (_from < 0) {
|
|
1086
|
+
_from = length + from;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
if (_to < 0) {
|
|
1090
|
+
_to = length + to;
|
|
1091
|
+
} // Should we just return the empty Vector?
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
if (_to <= _from || _to <= 0 || length <= _from) {
|
|
1095
|
+
return empty_1();
|
|
1096
|
+
} // Return Vector unchanged if we are slicing nothing off
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
if (_from <= 0 && length <= _to) {
|
|
1100
|
+
return as;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
const newLength = _to - _from;
|
|
1104
|
+
let prefixSize = (0, tsplus_module_2.getPrefixSize)(as);
|
|
1105
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(as); // Both indices lie in the prefix
|
|
1106
|
+
|
|
1107
|
+
if (_to <= prefixSize) {
|
|
1108
|
+
return new tsplus_module_1.Vector((0, tsplus_module_2.setPrefix)(newLength, 0), 0, newLength, as.prefix.slice(prefixSize - _to, prefixSize - _from), undefined, tsplus_module_2.emptyAffix);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
const suffixStart = length - suffixSize; // Both indices lie in the suffix
|
|
1112
|
+
|
|
1113
|
+
if (suffixStart <= _from) {
|
|
1114
|
+
return new tsplus_module_1.Vector((0, tsplus_module_2.setSuffix)(newLength, 0), 0, newLength, tsplus_module_2.emptyAffix, undefined, as.suffix.slice(_from - suffixStart, _to - suffixStart));
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
const newVector = mutableClone_1(as);
|
|
1118
|
+
newVector.length = newLength; // Both indices lie in the tree
|
|
1119
|
+
|
|
1120
|
+
if (prefixSize <= _from && _to <= suffixStart) {
|
|
1121
|
+
(0, tsplus_module_2.sliceTreeVector)(_from - prefixSize + as.offset, _to - prefixSize + as.offset - 1, as.root, (0, tsplus_module_2.getDepth)(as), as.offset, newVector);
|
|
1122
|
+
return newVector;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
if (0 < _from) {
|
|
1126
|
+
// we need _to slice something off of the left
|
|
1127
|
+
if (_from < prefixSize) {
|
|
1128
|
+
// shorten the prefix even though it's not strictly needed,
|
|
1129
|
+
// so that referenced items can be GC'd
|
|
1130
|
+
newVector.prefix = as.prefix.slice(0, prefixSize - _from);
|
|
1131
|
+
bits = (0, tsplus_module_2.setPrefix)(prefixSize - _from, bits);
|
|
1132
|
+
} else {
|
|
1133
|
+
// if we're here `_to` can't lie in the tree, so we can set the
|
|
1134
|
+
// root
|
|
1135
|
+
(0, tsplus_module_2.zeroOffset)();
|
|
1136
|
+
newVector.root = (0, tsplus_module_2.sliceLeft)(newVector.root, (0, tsplus_module_2.getDepth)(as), _from - prefixSize, as.offset, true);
|
|
1137
|
+
newVector.offset = tsplus_module_2.newOffset;
|
|
1138
|
+
|
|
1139
|
+
if (newVector.root === undefined) {
|
|
1140
|
+
bits = (0, tsplus_module_2.setDepth)(0, bits);
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
bits = (0, tsplus_module_2.setPrefix)(tsplus_module_2.newAffix.length, bits);
|
|
1144
|
+
prefixSize = tsplus_module_2.newAffix.length;
|
|
1145
|
+
newVector.prefix = tsplus_module_2.newAffix;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
if (_to < length) {
|
|
1150
|
+
// we need _to slice something off of the right
|
|
1151
|
+
if (length - _to < suffixSize) {
|
|
1152
|
+
bits = (0, tsplus_module_2.setSuffix)(suffixSize - (length - _to), bits); // slice the suffix even though it's not strictly needed,
|
|
1153
|
+
// _to allow the removed items _to be GC'd
|
|
1154
|
+
|
|
1155
|
+
newVector.suffix = as.suffix.slice(0, suffixSize - (length - _to));
|
|
1156
|
+
} else {
|
|
1157
|
+
newVector.root = (0, tsplus_module_2.sliceRight)(newVector.root, (0, tsplus_module_2.getDepth)(as), _to - prefixSize - 1, newVector.offset);
|
|
1158
|
+
|
|
1159
|
+
if (newVector.root === undefined) {
|
|
1160
|
+
bits = (0, tsplus_module_2.setDepth)(0, bits);
|
|
1161
|
+
newVector.offset = 0;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
bits = (0, tsplus_module_2.setSuffix)(tsplus_module_2.newAffix.length, bits);
|
|
1165
|
+
newVector.suffix = tsplus_module_2.newAffix;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
newVector.bits = bits;
|
|
1170
|
+
return newVector;
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* @tsplus getter fncts.Vector sort
|
|
1174
|
+
*/
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
function sort_(self) {
|
|
1178
|
+
return O => sortWith_1(self, O.compare_);
|
|
1179
|
+
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Sort the given Vector by comparing values using the given function.
|
|
1182
|
+
* The function receieves two values and should return `-1` if the
|
|
1183
|
+
* first value is stricty larger than the second, `0` is they are
|
|
1184
|
+
* equal and `1` if the first values is strictly smaller than the
|
|
1185
|
+
* second.
|
|
1186
|
+
*
|
|
1187
|
+
* @complexity O(n * log(n))
|
|
1188
|
+
*
|
|
1189
|
+
* @tsplus fluent fncts.Vector sortWith
|
|
1190
|
+
*/
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
function sortWith_1(as, compare) {
|
|
1194
|
+
const arr = [];
|
|
1195
|
+
let i = 0;
|
|
1196
|
+
forEach_1(as, elm => arr.push({
|
|
1197
|
+
idx: i++,
|
|
1198
|
+
elm
|
|
1199
|
+
}));
|
|
1200
|
+
arr.sort(({
|
|
1201
|
+
elm: a,
|
|
1202
|
+
idx: i
|
|
1203
|
+
}, {
|
|
1204
|
+
elm: b,
|
|
1205
|
+
idx: j
|
|
1206
|
+
}) => {
|
|
1207
|
+
const c = compare(a, b);
|
|
1208
|
+
return c !== 0 ? c : i < j ? -1 : 1;
|
|
1209
|
+
});
|
|
1210
|
+
const newL = emptyPushable_1();
|
|
1211
|
+
|
|
1212
|
+
for (let i = 0; i < arr.length; ++i) {
|
|
1213
|
+
tsplus_module_2.push(newL, arr[i].elm);
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
return newL;
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Splits a Vector at the given index and return the two sides in a pair.
|
|
1220
|
+
* The left side will contain all elements before but not including the
|
|
1221
|
+
* element at the given index. The right side contains the element at the
|
|
1222
|
+
* index and all elements after it.
|
|
1223
|
+
*
|
|
1224
|
+
* @complexity `O(log(n))`
|
|
1225
|
+
*
|
|
1226
|
+
* @tsplus fluent fncts.Vector splitAt
|
|
1227
|
+
*/
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
function splitAt_1(as, index) {
|
|
1231
|
+
return [slice_1(as, 0, index), slice_1(as, index, as.length)];
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Splits a Vector at the first element in the Vector for which the given
|
|
1235
|
+
* predicate returns `true`.
|
|
1236
|
+
*
|
|
1237
|
+
* @complexity `O(n)`
|
|
1238
|
+
*
|
|
1239
|
+
* @tsplus fluent fncts.Vector splitWhen
|
|
1240
|
+
*/
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
function splitWhen_(as, predicate) {
|
|
1244
|
+
const idx = findIndex_1(as, predicate);
|
|
1245
|
+
return idx === -1 ? [as, empty_1()] : splitAt_1(as, idx);
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Returns a new Vector with the first element removed. If the Vector is
|
|
1249
|
+
* empty the empty Vector is returned.
|
|
1250
|
+
*
|
|
1251
|
+
* @complexity `O(1)`
|
|
1252
|
+
*
|
|
1253
|
+
* @tsplus getter fncts.Vector tail
|
|
1254
|
+
*/
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
function tail(as) {
|
|
1258
|
+
return slice_1(as, 1, as.length);
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Takes the first `n` elements from a Vector and returns them in a new Vector.
|
|
1262
|
+
*
|
|
1263
|
+
* @complexity `O(log(n))`
|
|
1264
|
+
* @tsplus fluent fncts.Vector take
|
|
1265
|
+
*/
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
function take_(as, n) {
|
|
1269
|
+
return slice_1(as, 0, n);
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Takes the first elements in the Vector for which the predicate returns
|
|
1273
|
+
* `true`.
|
|
1274
|
+
*
|
|
1275
|
+
* @complexity `O(k + log(n))` where `k` is the number of elements satisfying
|
|
1276
|
+
* the predicate.
|
|
1277
|
+
*
|
|
1278
|
+
* @tsplus fluent fncts.Vector takeWhile
|
|
1279
|
+
*/
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
function takeWhile_(as, predicate) {
|
|
1283
|
+
const {
|
|
1284
|
+
index
|
|
1285
|
+
} = (0, tsplus_module_2.foldLeftCb)(findNotIndexCb, {
|
|
1286
|
+
predicate,
|
|
1287
|
+
index: 0
|
|
1288
|
+
}, as);
|
|
1289
|
+
return slice_1(as, 0, index);
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Takes the last `n` elements from a Vector and returns them in a new
|
|
1293
|
+
* Vector.
|
|
1294
|
+
*
|
|
1295
|
+
* @complexity `O(log(n))`
|
|
1296
|
+
* @tsplus fluent fncts.Vector takeLast
|
|
1297
|
+
*/
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
function takeLast_(as, n) {
|
|
1301
|
+
return slice_1(as, as.length - n, as.length);
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Takes the last elements in the Vector for which the predicate returns
|
|
1305
|
+
* `true`.
|
|
1306
|
+
*
|
|
1307
|
+
* @complexity `O(k + log(n))` where `k` is the number of elements
|
|
1308
|
+
* satisfying the predicate.
|
|
1309
|
+
*
|
|
1310
|
+
* @tsplus fluent fncts.Vector takeLastWhile
|
|
1311
|
+
*/
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
function takeLastWhile_(as, predicate) {
|
|
1315
|
+
const {
|
|
1316
|
+
index
|
|
1317
|
+
} = (0, tsplus_module_2.foldRightCb)(findNotIndexCb, {
|
|
1318
|
+
predicate,
|
|
1319
|
+
index: 0
|
|
1320
|
+
}, as);
|
|
1321
|
+
return slice_1(as, as.length - index, as.length);
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* Converts a Vector into an array.
|
|
1325
|
+
*
|
|
1326
|
+
* @complexity `O(n)`
|
|
1327
|
+
* @tsplus getter fncts.Vector toArray
|
|
1328
|
+
*/
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
function toArray(self) {
|
|
1332
|
+
return foldLeft_1(self, [], tsplus_module_2.arrayPush);
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* Converts a Vector into a List.
|
|
1336
|
+
*
|
|
1337
|
+
* @complexity `O(n)`
|
|
1338
|
+
* @tsplus getter fncts.Vector toList
|
|
1339
|
+
*/
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
function toList(self) {
|
|
1343
|
+
const buffer = new tsplus_module_6.ListBuffer();
|
|
1344
|
+
forEach_1(self, a => {
|
|
1345
|
+
buffer.append(a);
|
|
1346
|
+
});
|
|
1347
|
+
return buffer.toList;
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Returns a new Vector without repeated elements by using the given
|
|
1351
|
+
* Eq instance to determine when elements are equal
|
|
1352
|
+
*
|
|
1353
|
+
* @complexity `O(n)`
|
|
1354
|
+
* @tsplus getter fncts.Vector uniq
|
|
1355
|
+
*/
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
function uniq(as) {
|
|
1359
|
+
return E => dropRepeatsWith_1(as, E.equals_);
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* @tsplus static fncts.VectorOps unfold
|
|
1363
|
+
*/
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
function unfold(b, f) {
|
|
1367
|
+
const out = emptyPushable_1();
|
|
1368
|
+
let state = b; // eslint-disable-next-line no-constant-condition
|
|
1369
|
+
|
|
1370
|
+
while (true) {
|
|
1371
|
+
const mt = f(state);
|
|
1372
|
+
|
|
1373
|
+
if (tsplus_module_7.isJust(mt)) {
|
|
1374
|
+
const [a, b] = mt.value;
|
|
1375
|
+
tsplus_module_2.push(out, a);
|
|
1376
|
+
state = b;
|
|
1377
|
+
} else {
|
|
1378
|
+
break;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
return out;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
function findCb(value, state) {
|
|
1386
|
+
if (state.predicate(value)) {
|
|
1387
|
+
state.result = value;
|
|
1388
|
+
return false;
|
|
1389
|
+
} else {
|
|
1390
|
+
return true;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Returns the _first_ element for which the predicate returns `true`.
|
|
1395
|
+
* If no such element is found the function returns `undefined`.
|
|
1396
|
+
*
|
|
1397
|
+
* @complexity O(n)
|
|
1398
|
+
* @tsplus fluent fncts.Vector unsafeFind
|
|
1399
|
+
*/
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
function unsafeFind_1(as, predicate) {
|
|
1403
|
+
return (0, tsplus_module_2.foldLeftCb)(findCb, {
|
|
1404
|
+
predicate,
|
|
1405
|
+
result: undefined
|
|
1406
|
+
}, as).result;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Returns the _last_ element for which the predicate returns `true`.
|
|
1410
|
+
* If no such element is found the function returns `undefined`.
|
|
1411
|
+
*
|
|
1412
|
+
* @complexity O(n)
|
|
1413
|
+
* @tsplus fluent fncts.Vector unsafeFindLast
|
|
1414
|
+
*/
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
function unsafeFindLast_1(as, predicate) {
|
|
1418
|
+
return (0, tsplus_module_2.foldRightCb)(findCb, {
|
|
1419
|
+
predicate,
|
|
1420
|
+
result: undefined
|
|
1421
|
+
}, as).result;
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* Gets the nth element of the Vector. If `n` is out of bounds
|
|
1425
|
+
* `undefined` is returned.
|
|
1426
|
+
*
|
|
1427
|
+
* @complexity O(log(n))
|
|
1428
|
+
* @tsplus fluent fncts.Vector unsafeGet
|
|
1429
|
+
*/
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
function unsafeGet_1(l, index) {
|
|
1433
|
+
if (index < 0 || l.length <= index) {
|
|
1434
|
+
return undefined;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(l);
|
|
1438
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(l);
|
|
1439
|
+
|
|
1440
|
+
if (index < prefixSize) {
|
|
1441
|
+
return l.prefix[prefixSize - index - 1];
|
|
1442
|
+
} else if (index >= l.length - suffixSize) {
|
|
1443
|
+
return l.suffix[index - (l.length - suffixSize)];
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
const {
|
|
1447
|
+
offset
|
|
1448
|
+
} = l;
|
|
1449
|
+
const depth = (0, tsplus_module_2.getDepth)(l);
|
|
1450
|
+
return l.root.sizes === undefined ? (0, tsplus_module_2.nodeNthDense)(l.root, depth, offset === 0 ? index - prefixSize : (0, tsplus_module_2.handleOffset)(depth, offset, index - prefixSize)) : (0, tsplus_module_2.nodeNth)(l.root, depth, offset, index - prefixSize);
|
|
1451
|
+
}
|
|
1452
|
+
/**
|
|
1453
|
+
* Returns the first element of the Vector. If the Vector is empty the
|
|
1454
|
+
* function returns undefined.
|
|
1455
|
+
*
|
|
1456
|
+
* @complexity O(1)
|
|
1457
|
+
* @tsplus getter fncts.Vector unsafeHead
|
|
1458
|
+
*/
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
function unsafeHead_1(l) {
|
|
1462
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(l);
|
|
1463
|
+
return prefixSize !== 0 ? l.prefix[prefixSize - 1] : l.length !== 0 ? l.suffix[0] : undefined;
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Returns the last element of the Vector. If the Vector is empty the
|
|
1467
|
+
* function returns `undefined`.
|
|
1468
|
+
*
|
|
1469
|
+
* @complexity O(1)
|
|
1470
|
+
* @tsplus getter fncts.Vector unsafeLast
|
|
1471
|
+
*/
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
function unsafeLast_1(l) {
|
|
1475
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(l);
|
|
1476
|
+
return suffixSize !== 0 ? l.suffix[suffixSize - 1] : l.length !== 0 ? l.prefix[0] : undefined;
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Returns a Vector that has the entry specified by the index replaced with the given value.
|
|
1480
|
+
*
|
|
1481
|
+
* If the index is out of bounds the given Vector is returned unchanged.
|
|
1482
|
+
*
|
|
1483
|
+
* @complexity O(log(n))
|
|
1484
|
+
* @tsplus fluent fncts.Vector updateAt
|
|
1485
|
+
*/
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
function updateAt_1(as, i, a) {
|
|
1489
|
+
if (i < 0 || as.length <= i) {
|
|
1490
|
+
return as;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
const prefixSize = (0, tsplus_module_2.getPrefixSize)(as);
|
|
1494
|
+
const suffixSize = (0, tsplus_module_2.getSuffixSize)(as);
|
|
1495
|
+
const newVector = mutableClone_1(as);
|
|
1496
|
+
|
|
1497
|
+
if (i < prefixSize) {
|
|
1498
|
+
const newPrefix = (0, tsplus_module_2.copyArray)(newVector.prefix);
|
|
1499
|
+
newPrefix[newPrefix.length - i - 1] = a;
|
|
1500
|
+
newVector.prefix = newPrefix;
|
|
1501
|
+
} else if (i >= as.length - suffixSize) {
|
|
1502
|
+
const newSuffix = (0, tsplus_module_2.copyArray)(newVector.suffix);
|
|
1503
|
+
newSuffix[i - (as.length - suffixSize)] = a;
|
|
1504
|
+
newVector.suffix = newSuffix;
|
|
1505
|
+
} else {
|
|
1506
|
+
newVector.root = (0, tsplus_module_2.updateNode)(as.root, (0, tsplus_module_2.getDepth)(as), i - prefixSize, as.offset, a);
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
return newVector;
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* @tsplus static fncts.VectorOps __call
|
|
1513
|
+
*/
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
function vector_1(...elements) {
|
|
1517
|
+
const v = emptyPushable_1();
|
|
1518
|
+
|
|
1519
|
+
for (const element of elements) {
|
|
1520
|
+
tsplus_module_2.push(v, element);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
return v;
|
|
1524
|
+
}
|
|
1525
|
+
//# sourceMappingURL=api.cjs.map
|