@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,1807 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.alignWith_ = void 0;
|
7
|
+
exports.align_ = align_;
|
8
|
+
exports.alt_ = alt_;
|
9
|
+
exports.ap_ = ap_;
|
10
|
+
exports.append_ = void 0;
|
11
|
+
exports.chainRecBreadthFirst = chainRecBreadthFirst;
|
12
|
+
exports.chainRecDepthFirst = chainRecDepthFirst;
|
13
|
+
exports.chop = void 0;
|
14
|
+
exports.chopSelf = chopSelf;
|
15
|
+
exports.chop_ = void 0;
|
16
|
+
exports.chunksOf_ = chunksOf_;
|
17
|
+
exports.collectWhile_ = collectWhile_;
|
18
|
+
exports.comprehension = comprehension;
|
19
|
+
exports.concat_ = void 0;
|
20
|
+
exports.crossWith_ = crossWith_;
|
21
|
+
exports.deleteAt_ = deleteAt_;
|
22
|
+
exports.differenceSelf = differenceSelf;
|
23
|
+
exports.difference_ = difference_;
|
24
|
+
exports.dropLastWhile_ = dropLastWhile_;
|
25
|
+
exports.dropLast_ = dropLast_;
|
26
|
+
exports.dropWhile_ = dropWhile_;
|
27
|
+
exports.drop_ = drop_;
|
28
|
+
exports.elemSelf = elemSelf;
|
29
|
+
exports.elem_ = elem_;
|
30
|
+
exports.everyWithIndex_ = void 0;
|
31
|
+
exports.every_ = every_;
|
32
|
+
exports.exists_ = exists_;
|
33
|
+
exports.filterMapWithIndex_ = void 0;
|
34
|
+
exports.filterMap_ = filterMap_;
|
35
|
+
exports.filter_ = exports.filterWithIndex_ = void 0;
|
36
|
+
exports.findIndex_ = findIndex_;
|
37
|
+
exports.findLastIndex_ = findLastIndex_;
|
38
|
+
exports.findLastMapWithIndex_ = void 0;
|
39
|
+
exports.findLastMap_ = findLastMap_;
|
40
|
+
exports.findLast_ = findLast_;
|
41
|
+
exports.findMapWithIndex_ = void 0;
|
42
|
+
exports.findMap_ = findMap_;
|
43
|
+
exports.findWithIndex_ = void 0;
|
44
|
+
exports.find_ = find_;
|
45
|
+
exports.flatten = exports.flatMap_ = exports.flatMapWithIndex_ = void 0;
|
46
|
+
exports.fold = fold;
|
47
|
+
exports.foldLeftWhile_ = foldLeftWhile_;
|
48
|
+
exports.foldLeft_ = exports.foldLeftWithIndex_ = exports.foldLeftWithIndexWhile_ = void 0;
|
49
|
+
exports.foldMapSelf = foldMapSelf;
|
50
|
+
exports.foldMapWithIndexSelf = void 0;
|
51
|
+
exports.foldMapWithIndex_ = foldMapWithIndex_;
|
52
|
+
exports.foldMap_ = foldMap_;
|
53
|
+
exports.foldRightWhile_ = foldRightWhile_;
|
54
|
+
exports.foldRightWithIndex_ = exports.foldRightWithIndexWhile_ = void 0;
|
55
|
+
exports.foldRight_ = foldRight_;
|
56
|
+
exports.get_ = exports.forEach_ = exports.foldSelf = void 0;
|
57
|
+
exports.group = group;
|
58
|
+
exports.groupBy_ = groupBy_;
|
59
|
+
exports.head = head;
|
60
|
+
exports.init = init;
|
61
|
+
exports.insertAt_ = insertAt_;
|
62
|
+
exports.intersectionSelf = intersectionSelf;
|
63
|
+
exports.intersection_ = intersection_;
|
64
|
+
exports.intersperse_ = intersperse_;
|
65
|
+
exports.isOutOfBound_ = exports.isNonEmpty = exports.isEmpty = void 0;
|
66
|
+
exports.join = join;
|
67
|
+
exports.last = last;
|
68
|
+
exports.lefts = lefts;
|
69
|
+
exports.length = void 0;
|
70
|
+
exports.mapAccum_ = mapAccum_;
|
71
|
+
exports.map_ = exports.mapWithIndex_ = void 0;
|
72
|
+
exports.modifyAt_ = modifyAt_;
|
73
|
+
exports.partitionMapWithIndex_ = exports.mutate_ = exports.mutableClone = void 0;
|
74
|
+
exports.partitionMap_ = partitionMap_;
|
75
|
+
exports.partitionWithIndex_ = void 0;
|
76
|
+
exports.partition_ = partition_;
|
77
|
+
exports.prepend_ = exports.prependAll_ = void 0;
|
78
|
+
exports.reverse = reverse;
|
79
|
+
exports.rights = rights;
|
80
|
+
exports.rotate_ = void 0;
|
81
|
+
exports.scanLeft_ = scanLeft_;
|
82
|
+
exports.scanRight_ = scanRight_;
|
83
|
+
exports.sort = exports.slice_ = exports.sequenceSelf = exports.sequence = void 0;
|
84
|
+
exports.sortBy = sortBy;
|
85
|
+
exports.spanIndexRight_ = exports.spanIndexLeft_ = void 0;
|
86
|
+
exports.spanLeft_ = spanLeft_;
|
87
|
+
exports.spanRight_ = spanRight_;
|
88
|
+
exports.splitAt_ = void 0;
|
89
|
+
exports.splitWhere_ = splitWhere_;
|
90
|
+
exports.tail = tail;
|
91
|
+
exports.takeLast_ = takeLast_;
|
92
|
+
exports.takeWhile_ = takeWhile_;
|
93
|
+
exports.take_ = take_;
|
94
|
+
exports.traverse_ = exports.traverseWithIndex_ = exports.traverseWithIndexSelf = exports.traverseWithIndex = exports.traverseSelf = exports.traverse = void 0;
|
95
|
+
exports.union_ = union_;
|
96
|
+
exports.uniq = uniq;
|
97
|
+
exports.uniqSelf = uniqSelf;
|
98
|
+
exports.unprepend = unprepend;
|
99
|
+
exports.unsafeUpdateAt_ = exports.unsafeModifyAt_ = exports.unsafeInsertAt_ = exports.unsafeGet = exports.unsafeDeleteAt_ = exports.unsafeAsMutable = void 0;
|
100
|
+
exports.unzip = unzip;
|
101
|
+
exports.updateAt_ = updateAt_;
|
102
|
+
exports.zipWith_ = exports.wither_ = exports.witherWithIndex_ = exports.witherWithIndexSelf = exports.witherWithIndex = exports.witherSelf = exports.wither = exports.wilt_ = exports.wiltWithIndex_ = exports.wiltWithIndexSelf = exports.wiltWithIndex = exports.wiltSelf = exports.wilt = void 0;
|
103
|
+
exports.zip_ = zip_;
|
104
|
+
|
105
|
+
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/These/constructors"));
|
106
|
+
|
107
|
+
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/ImmutableArray/constructors"));
|
108
|
+
|
109
|
+
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/ImmutableNonEmptyArray/api"));
|
110
|
+
|
111
|
+
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/definition"));
|
112
|
+
|
113
|
+
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/constructors"));
|
114
|
+
|
115
|
+
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/instance"));
|
116
|
+
|
117
|
+
var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/api"));
|
118
|
+
|
119
|
+
var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/run"));
|
120
|
+
|
121
|
+
var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
122
|
+
|
123
|
+
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/ImmutableNonEmptyArray/constructors"));
|
124
|
+
|
125
|
+
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Dictionary/api"));
|
126
|
+
|
127
|
+
var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Dictionary/definition"));
|
128
|
+
|
129
|
+
var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass/Ord/instances"));
|
130
|
+
|
131
|
+
var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/function/api"));
|
132
|
+
|
133
|
+
var tsplus_module_15 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/destructors"));
|
134
|
+
|
135
|
+
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
136
|
+
|
137
|
+
var P = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/typeclass"));
|
138
|
+
|
139
|
+
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); }
|
140
|
+
|
141
|
+
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; }
|
142
|
+
|
143
|
+
const alignWith_ = alignWith_1;
|
144
|
+
exports.alignWith_ = alignWith_;
|
145
|
+
const append_ = append_1;
|
146
|
+
exports.append_ = append_;
|
147
|
+
const flatMapWithIndex_ = flatMapWithIndex_1;
|
148
|
+
exports.flatMapWithIndex_ = flatMapWithIndex_;
|
149
|
+
const flatMap_ = flatMap_1;
|
150
|
+
exports.flatMap_ = flatMap_;
|
151
|
+
const flatten = flatten_1;
|
152
|
+
exports.flatten = flatten;
|
153
|
+
const chop_ = chop_1;
|
154
|
+
exports.chop_ = chop_;
|
155
|
+
const concat_ = concat_1;
|
156
|
+
exports.concat_ = concat_;
|
157
|
+
const everyWithIndex_ = everyWithIndex_1;
|
158
|
+
exports.everyWithIndex_ = everyWithIndex_;
|
159
|
+
const filter_ = filter_1;
|
160
|
+
exports.filter_ = filter_;
|
161
|
+
const filterWithIndex_ = filterWithIndex_1;
|
162
|
+
exports.filterWithIndex_ = filterWithIndex_;
|
163
|
+
const filterMapWithIndex_ = filterMapWithIndex_1;
|
164
|
+
exports.filterMapWithIndex_ = filterMapWithIndex_;
|
165
|
+
const findWithIndex_ = findWithIndex_1;
|
166
|
+
exports.findWithIndex_ = findWithIndex_;
|
167
|
+
const findMapWithIndex_ = findMapWithIndex_1;
|
168
|
+
exports.findMapWithIndex_ = findMapWithIndex_;
|
169
|
+
const findLastMapWithIndex_ = findLastMapWithIndex_1;
|
170
|
+
exports.findLastMapWithIndex_ = findLastMapWithIndex_;
|
171
|
+
const foldLeftWithIndex_ = foldLeftWithIndex_1;
|
172
|
+
exports.foldLeftWithIndex_ = foldLeftWithIndex_;
|
173
|
+
const foldLeft_ = foldLeft_1;
|
174
|
+
exports.foldLeft_ = foldLeft_;
|
175
|
+
const foldLeftWithIndexWhile_ = foldLeftWithIndexWhile_1;
|
176
|
+
exports.foldLeftWithIndexWhile_ = foldLeftWithIndexWhile_;
|
177
|
+
const foldSelf = foldSelf_1;
|
178
|
+
exports.foldSelf = foldSelf;
|
179
|
+
const foldMapWithIndexSelf = foldMapWithIndexSelf_1;
|
180
|
+
exports.foldMapWithIndexSelf = foldMapWithIndexSelf;
|
181
|
+
const foldRightWithIndex_ = foldRightWithIndex_1;
|
182
|
+
exports.foldRightWithIndex_ = foldRightWithIndex_;
|
183
|
+
const foldRightWithIndexWhile_ = foldRightWithIndexWhile_1;
|
184
|
+
exports.foldRightWithIndexWhile_ = foldRightWithIndexWhile_;
|
185
|
+
const forEach_ = forEach_1;
|
186
|
+
exports.forEach_ = forEach_;
|
187
|
+
const get_ = get_1;
|
188
|
+
exports.get_ = get_;
|
189
|
+
const isEmpty = isEmpty_1;
|
190
|
+
exports.isEmpty = isEmpty;
|
191
|
+
const isNonEmpty = isNonEmpty_1;
|
192
|
+
exports.isNonEmpty = isNonEmpty;
|
193
|
+
const isOutOfBound_ = isOutOfBound_1;
|
194
|
+
exports.isOutOfBound_ = isOutOfBound_;
|
195
|
+
const length = length_1;
|
196
|
+
exports.length = length;
|
197
|
+
const map_ = map_1;
|
198
|
+
exports.map_ = map_;
|
199
|
+
const mapWithIndex_ = mapWithIndex_1;
|
200
|
+
exports.mapWithIndex_ = mapWithIndex_;
|
201
|
+
const mutate_ = mutate_1;
|
202
|
+
exports.mutate_ = mutate_;
|
203
|
+
const mutableClone = mutableClone_1;
|
204
|
+
exports.mutableClone = mutableClone;
|
205
|
+
const partitionWithIndex_ = partitionWithIndex_1;
|
206
|
+
exports.partitionWithIndex_ = partitionWithIndex_;
|
207
|
+
const partitionMapWithIndex_ = partitionMapWithIndex_1;
|
208
|
+
exports.partitionMapWithIndex_ = partitionMapWithIndex_;
|
209
|
+
const prepend_ = prepend_1;
|
210
|
+
exports.prepend_ = prepend_;
|
211
|
+
const prependAll_ = prependAll_1;
|
212
|
+
exports.prependAll_ = prependAll_;
|
213
|
+
const rotate_ = rotate_1;
|
214
|
+
exports.rotate_ = rotate_;
|
215
|
+
const sort = sort_1;
|
216
|
+
exports.sort = sort;
|
217
|
+
const spanIndexLeft_ = spanIndexLeft_1;
|
218
|
+
exports.spanIndexLeft_ = spanIndexLeft_;
|
219
|
+
const spanIndexRight_ = spanIndexRight_1;
|
220
|
+
exports.spanIndexRight_ = spanIndexRight_;
|
221
|
+
const slice_ = slice_1;
|
222
|
+
exports.slice_ = slice_;
|
223
|
+
const splitAt_ = splitAt_1;
|
224
|
+
exports.splitAt_ = splitAt_;
|
225
|
+
const unsafeGet = unsafeGet_1;
|
226
|
+
exports.unsafeGet = unsafeGet;
|
227
|
+
const unsafeAsMutable = unsafeAsMutable_1;
|
228
|
+
exports.unsafeAsMutable = unsafeAsMutable;
|
229
|
+
const unsafeDeleteAt_ = unsafeDeleteAt_1;
|
230
|
+
exports.unsafeDeleteAt_ = unsafeDeleteAt_;
|
231
|
+
const unsafeInsertAt_ = unsafeInsertAt_1;
|
232
|
+
exports.unsafeInsertAt_ = unsafeInsertAt_;
|
233
|
+
const unsafeModifyAt_ = unsafeModifyAt_1;
|
234
|
+
exports.unsafeModifyAt_ = unsafeModifyAt_;
|
235
|
+
const unsafeUpdateAt_ = unsafeUpdateAt_1;
|
236
|
+
exports.unsafeUpdateAt_ = unsafeUpdateAt_;
|
237
|
+
const zipWith_ = zipWith_1;
|
238
|
+
exports.zipWith_ = zipWith_;
|
239
|
+
|
240
|
+
/**
|
241
|
+
* @tsplus fluent fncts.ImmutableArray alignWith
|
242
|
+
*/
|
243
|
+
function alignWith_1(self, fb, f) {
|
244
|
+
const selfArray = self._array;
|
245
|
+
const thatArray = fb._array;
|
246
|
+
const minlen = Math.min(selfArray.length, thatArray.length);
|
247
|
+
const maxlen = Math.max(selfArray.length, thatArray.length);
|
248
|
+
const ret = Array(maxlen);
|
249
|
+
|
250
|
+
for (let i = 0; i < minlen; i++) {
|
251
|
+
ret[i] = f(tsplus_module_1.both(selfArray[i], thatArray[i]));
|
252
|
+
}
|
253
|
+
|
254
|
+
if (minlen === maxlen) {
|
255
|
+
return tsplus_module_2.asImmutableArray(ret);
|
256
|
+
} else if (selfArray.length > thatArray.length) {
|
257
|
+
for (let i = minlen; i < maxlen; i++) {
|
258
|
+
ret[i] = f(tsplus_module_1.left(selfArray[i]));
|
259
|
+
}
|
260
|
+
} else {
|
261
|
+
for (let i = minlen; i < maxlen; i++) {
|
262
|
+
ret[i] = f(tsplus_module_1.right(thatArray[i]));
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
return tsplus_module_2.asImmutableArray(ret);
|
267
|
+
}
|
268
|
+
/**
|
269
|
+
* @tsplus fluent fncts.ImmutableArray align
|
270
|
+
*/
|
271
|
+
|
272
|
+
|
273
|
+
function align_(self, fb) {
|
274
|
+
return alignWith_1(self, fb, _function.identity);
|
275
|
+
}
|
276
|
+
/**
|
277
|
+
* @tsplus fluent fncts.ImmutableArray alt
|
278
|
+
*/
|
279
|
+
|
280
|
+
|
281
|
+
function alt_(self, that) {
|
282
|
+
return concat_1(self, that());
|
283
|
+
}
|
284
|
+
/**
|
285
|
+
* @tsplus fluent fncts.ImmutableArray ap
|
286
|
+
*/
|
287
|
+
|
288
|
+
|
289
|
+
function ap_(self, fa) {
|
290
|
+
return flatMap_1(self, f => map_1(fa, f));
|
291
|
+
}
|
292
|
+
/**
|
293
|
+
* @tsplus fluent fncts.ImmutableArray append
|
294
|
+
*/
|
295
|
+
|
296
|
+
|
297
|
+
function append_1(self, last) {
|
298
|
+
const selfArray = self._array;
|
299
|
+
const len = selfArray.length;
|
300
|
+
const r = Array(len + 1);
|
301
|
+
r[len] = last;
|
302
|
+
|
303
|
+
for (let i = 0; i < len; i++) {
|
304
|
+
r[i] = selfArray[i];
|
305
|
+
}
|
306
|
+
|
307
|
+
return tsplus_module_2.asImmutableArray(r);
|
308
|
+
}
|
309
|
+
/**
|
310
|
+
* @tsplus fluent fncts.ImmutableArray crossWith
|
311
|
+
*/
|
312
|
+
|
313
|
+
|
314
|
+
function crossWith_(self, fb, f) {
|
315
|
+
return flatMap_1(self, a => map_1(fb, b => f(a, b)));
|
316
|
+
}
|
317
|
+
/**
|
318
|
+
* @tsplus static fncts.ImmutableArrayOps chainRecDepthFirst
|
319
|
+
*/
|
320
|
+
|
321
|
+
|
322
|
+
function chainRecDepthFirst(a, f) {
|
323
|
+
const buffer = unsafeAsMutable_1(slice_1(f(a)));
|
324
|
+
const out = [];
|
325
|
+
|
326
|
+
while (buffer.length > 0) {
|
327
|
+
const e = buffer.shift();
|
328
|
+
|
329
|
+
if (e._tag === "Left"
|
330
|
+
/* EitherTag.Left */
|
331
|
+
) {
|
332
|
+
buffer.unshift(...f(e.left));
|
333
|
+
} else {
|
334
|
+
out.push(e.right);
|
335
|
+
}
|
336
|
+
}
|
337
|
+
|
338
|
+
return tsplus_module_2.asImmutableArray(out);
|
339
|
+
}
|
340
|
+
/**
|
341
|
+
* @tsplus static fncts.ImmutableArrayOps chainRecBreadthFirst
|
342
|
+
*/
|
343
|
+
|
344
|
+
|
345
|
+
function chainRecBreadthFirst(a, f) {
|
346
|
+
const initial = f(a);
|
347
|
+
const buffer = [];
|
348
|
+
const out = [];
|
349
|
+
|
350
|
+
function go(e) {
|
351
|
+
if (e._tag === "Left") {
|
352
|
+
forEach_1(f(e.left), v => buffer.push(v));
|
353
|
+
} else {
|
354
|
+
out.push(e.right);
|
355
|
+
}
|
356
|
+
}
|
357
|
+
|
358
|
+
for (const e of initial) {
|
359
|
+
go(e);
|
360
|
+
}
|
361
|
+
|
362
|
+
while (buffer.length > 0) {
|
363
|
+
go(buffer.shift());
|
364
|
+
}
|
365
|
+
|
366
|
+
return tsplus_module_2.asImmutableArray(out);
|
367
|
+
}
|
368
|
+
/**
|
369
|
+
* @tsplus fluent fncts.ImmutableArray flatMapWithIndex
|
370
|
+
*/
|
371
|
+
|
372
|
+
|
373
|
+
function flatMapWithIndex_1(self, f) {
|
374
|
+
let outLen = 0;
|
375
|
+
const selfArray = self._array;
|
376
|
+
const len = selfArray.length;
|
377
|
+
const temp = Array(len);
|
378
|
+
|
379
|
+
for (let i = 0; i < len; i++) {
|
380
|
+
const e = selfArray[i];
|
381
|
+
|
382
|
+
const arr = f(i, e)._array;
|
383
|
+
|
384
|
+
outLen += arr.length;
|
385
|
+
temp[i] = arr;
|
386
|
+
}
|
387
|
+
|
388
|
+
const out = Array(outLen);
|
389
|
+
let start = 0;
|
390
|
+
|
391
|
+
for (let i = 0; i < len; i++) {
|
392
|
+
const arr = temp[i];
|
393
|
+
const l = arr.length;
|
394
|
+
|
395
|
+
for (let j = 0; j < l; j++) {
|
396
|
+
out[j + start] = arr[j];
|
397
|
+
}
|
398
|
+
|
399
|
+
start += l;
|
400
|
+
}
|
401
|
+
|
402
|
+
return tsplus_module_2.asImmutableArray(out);
|
403
|
+
}
|
404
|
+
/**
|
405
|
+
* @tsplus fluent fncts.ImmutableArray flatMap
|
406
|
+
*/
|
407
|
+
|
408
|
+
|
409
|
+
function flatMap_1(self, f) {
|
410
|
+
return flatMapWithIndex_1(self, (_, a) => f(a));
|
411
|
+
}
|
412
|
+
/**
|
413
|
+
* @tsplus getter fncts.ImmutableArray flatten
|
414
|
+
*/
|
415
|
+
|
416
|
+
|
417
|
+
function flatten_1(self) {
|
418
|
+
return flatMap_1(self, _function.identity);
|
419
|
+
}
|
420
|
+
/**
|
421
|
+
* A useful recursion pattern for processing a `Array` to produce a new `Array`,
|
422
|
+
* often used for "chopping" up the input `Array`. Typically chop is called with some function
|
423
|
+
* that will consume an initial prefix of the `Array` and produce a value and the rest of the `Array`.
|
424
|
+
*
|
425
|
+
* @tsplus fluent fncts.ImmutableArray chop
|
426
|
+
*/
|
427
|
+
|
428
|
+
|
429
|
+
function chop_1(as, f) {
|
430
|
+
const result = [];
|
431
|
+
let cs = as;
|
432
|
+
|
433
|
+
while (isNonEmpty_1(cs)) {
|
434
|
+
const [b, c] = f(cs);
|
435
|
+
result.push(b);
|
436
|
+
cs = c;
|
437
|
+
}
|
438
|
+
|
439
|
+
return tsplus_module_2.asImmutableArray(result);
|
440
|
+
}
|
441
|
+
|
442
|
+
const chop = f => as => chop_(as, f);
|
443
|
+
/**
|
444
|
+
* @tsplus fluent fncts.ImmutableArray chunksOf
|
445
|
+
*/
|
446
|
+
|
447
|
+
|
448
|
+
exports.chop = chop;
|
449
|
+
|
450
|
+
function chunksOf_(self, n) {
|
451
|
+
return chop_1(self, as => tsplus_module_3.splitAt_(as, n));
|
452
|
+
}
|
453
|
+
/**
|
454
|
+
* @tsplus fluent fncts.ImmutableArray collectWhile
|
455
|
+
*/
|
456
|
+
|
457
|
+
|
458
|
+
function collectWhile_(as, f) {
|
459
|
+
const result = [];
|
460
|
+
|
461
|
+
for (let i = 0; i < length_1(as); i++) {
|
462
|
+
const o = f(as._array[i]);
|
463
|
+
|
464
|
+
if (tsplus_module_4.isJust(o)) {
|
465
|
+
result.push(o.value);
|
466
|
+
} else {
|
467
|
+
break;
|
468
|
+
}
|
469
|
+
}
|
470
|
+
|
471
|
+
return tsplus_module_2.asImmutableArray(result);
|
472
|
+
}
|
473
|
+
|
474
|
+
function comprehensionLoop(scope, input, f, g) {
|
475
|
+
if (input.length === 0) {
|
476
|
+
return g(...scope) ? tsplus_module_5.now(tsplus_module_2.make(f(...scope))) : tsplus_module_5.now(tsplus_module_2.empty());
|
477
|
+
} else {
|
478
|
+
return tsplus_module_7.map_(traverseSelf_1(input[0])(tsplus_module_6.Applicative)(a => comprehensionLoop(append_1(scope, a), input.slice(1), f, g)), rs => flatten_1(rs));
|
479
|
+
}
|
480
|
+
}
|
481
|
+
|
482
|
+
function comprehension(input, f, g = () => true) {
|
483
|
+
return tsplus_module_8.run(comprehensionLoop(tsplus_module_2.empty(), input, f, g));
|
484
|
+
}
|
485
|
+
/**
|
486
|
+
* @tsplus fluent fncts.ImmutableArray concat
|
487
|
+
* @tsplus operator fncts.ImmutableArray +
|
488
|
+
* @tsplus operator fncts.base.MutableArray +
|
489
|
+
*/
|
490
|
+
|
491
|
+
|
492
|
+
function concat_1(self, that) {
|
493
|
+
const lenx = self._array.length;
|
494
|
+
|
495
|
+
if (lenx === 0) {
|
496
|
+
return that;
|
497
|
+
}
|
498
|
+
|
499
|
+
const leny = that._array.length;
|
500
|
+
|
501
|
+
if (leny === 0) {
|
502
|
+
return self;
|
503
|
+
}
|
504
|
+
|
505
|
+
const r = Array(lenx + leny);
|
506
|
+
|
507
|
+
for (let i = 0; i < lenx; i++) {
|
508
|
+
r[i] = self._array[i];
|
509
|
+
}
|
510
|
+
|
511
|
+
for (let i = 0; i < leny; i++) {
|
512
|
+
r[i + lenx] = that._array[i];
|
513
|
+
}
|
514
|
+
|
515
|
+
return tsplus_module_2.asImmutableArray(r);
|
516
|
+
}
|
517
|
+
/**
|
518
|
+
* @tsplus fluent fncts.ImmutableArray deleteAt
|
519
|
+
*/
|
520
|
+
|
521
|
+
|
522
|
+
function deleteAt_(as, i) {
|
523
|
+
return isOutOfBound_1(as, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeDeleteAt_1(as, i));
|
524
|
+
}
|
525
|
+
/**
|
526
|
+
* @constrained
|
527
|
+
*/
|
528
|
+
|
529
|
+
|
530
|
+
function difference_(E) {
|
531
|
+
const elemE_ = elem_(E);
|
532
|
+
return (self, ys) => filter_1(self, a => !elemE_(ys, a));
|
533
|
+
}
|
534
|
+
/**
|
535
|
+
* @tsplus getter fncts.ImmutableArray difference
|
536
|
+
*/
|
537
|
+
|
538
|
+
|
539
|
+
function differenceSelf(self) {
|
540
|
+
return E => that => difference_(E)(self, that);
|
541
|
+
}
|
542
|
+
/**
|
543
|
+
* @tsplus fluent fncts.ImmutableArray drop
|
544
|
+
*/
|
545
|
+
|
546
|
+
|
547
|
+
function drop_(self, n) {
|
548
|
+
return slice_1(self, n);
|
549
|
+
}
|
550
|
+
/**
|
551
|
+
* @tsplus fluent fncts.ImmutableArray dropLast
|
552
|
+
*/
|
553
|
+
|
554
|
+
|
555
|
+
function dropLast_(self, n) {
|
556
|
+
return slice_1(self, 0, length_1(self) - n);
|
557
|
+
}
|
558
|
+
/**
|
559
|
+
* @tsplus fluent fncts.ImmutableArray dropWhile
|
560
|
+
*/
|
561
|
+
|
562
|
+
|
563
|
+
function dropWhile_(self, p) {
|
564
|
+
return slice_1(self, spanIndexLeft_1(self, p));
|
565
|
+
}
|
566
|
+
/**
|
567
|
+
* @tsplus fluent fncts.ImmutableArray dropLastWhile
|
568
|
+
*/
|
569
|
+
|
570
|
+
|
571
|
+
function dropLastWhile_(as, p) {
|
572
|
+
return slice_1(as, 0, spanIndexRight_1(as, p) + 1);
|
573
|
+
}
|
574
|
+
/**
|
575
|
+
* Test if a value is a member of an array. Takes an `Eq<A>` as a single
|
576
|
+
* argument which returns the function to use to search for a value of type `A` in
|
577
|
+
* an array of type `ImmutableArray<A>`.
|
578
|
+
*
|
579
|
+
* @constrained
|
580
|
+
*/
|
581
|
+
|
582
|
+
|
583
|
+
function elem_(E) {
|
584
|
+
return (as, a) => {
|
585
|
+
const predicate = element => E.equals_(element, a);
|
586
|
+
|
587
|
+
const len = length_1(as);
|
588
|
+
|
589
|
+
for (let i = 0; i < len; i++) {
|
590
|
+
if (predicate(as._array[i])) {
|
591
|
+
return true;
|
592
|
+
}
|
593
|
+
}
|
594
|
+
|
595
|
+
return false;
|
596
|
+
};
|
597
|
+
}
|
598
|
+
/**
|
599
|
+
* Test if a value is a member of an array. Takes an `Eq<A>` as a single
|
600
|
+
* argument which returns the function to use to search for a value of type `A` in
|
601
|
+
* an array of type `ImmutableArray<A>`.
|
602
|
+
*
|
603
|
+
* @tsplus getter fncts.ImmutableArray elem
|
604
|
+
*/
|
605
|
+
|
606
|
+
|
607
|
+
function elemSelf(self) {
|
608
|
+
return E => a => elem_(E)(self, a);
|
609
|
+
}
|
610
|
+
|
611
|
+
function every_(self, p) {
|
612
|
+
return everyWithIndex_1(self, (_, a) => p(a));
|
613
|
+
}
|
614
|
+
|
615
|
+
function everyWithIndex_1(self, p) {
|
616
|
+
let result = true;
|
617
|
+
let i = 0;
|
618
|
+
|
619
|
+
while (result && i < length_1(self)) {
|
620
|
+
result = p(i, self._array[i]);
|
621
|
+
i++;
|
622
|
+
}
|
623
|
+
|
624
|
+
return result;
|
625
|
+
}
|
626
|
+
/**
|
627
|
+
* @tsplus fluent fncts.ImmutableArray exists
|
628
|
+
*/
|
629
|
+
|
630
|
+
|
631
|
+
function exists_(self, p) {
|
632
|
+
let result = false;
|
633
|
+
let i = 0;
|
634
|
+
|
635
|
+
while (!result && i < length_1(self)) {
|
636
|
+
result = p(self._array[i]);
|
637
|
+
i++;
|
638
|
+
}
|
639
|
+
|
640
|
+
return result;
|
641
|
+
}
|
642
|
+
|
643
|
+
function filter_1(self, p) {
|
644
|
+
return filterWithIndex_1(self, (_, a) => p(a));
|
645
|
+
}
|
646
|
+
|
647
|
+
function filterWithIndex_1(self, p) {
|
648
|
+
const result = [];
|
649
|
+
|
650
|
+
for (let i = 0; i < length_1(self); i++) {
|
651
|
+
const a = self._array[i];
|
652
|
+
|
653
|
+
if (p(i, a)) {
|
654
|
+
result.push(a);
|
655
|
+
}
|
656
|
+
}
|
657
|
+
|
658
|
+
return tsplus_module_2.asImmutableArray(result);
|
659
|
+
}
|
660
|
+
/**
|
661
|
+
* @tsplus fluent fncts.ImmutableArray filterMapWithIndex
|
662
|
+
*/
|
663
|
+
|
664
|
+
|
665
|
+
function filterMapWithIndex_1(fa, f) {
|
666
|
+
const result = [];
|
667
|
+
|
668
|
+
for (let i = 0; i < length_1(fa); i++) {
|
669
|
+
const maybeB = f(i, unsafeGet_1(fa, i));
|
670
|
+
|
671
|
+
if (tsplus_module_4.isJust(maybeB)) {
|
672
|
+
result.push(maybeB.value);
|
673
|
+
}
|
674
|
+
}
|
675
|
+
|
676
|
+
return tsplus_module_2.asImmutableArray(result);
|
677
|
+
}
|
678
|
+
/**
|
679
|
+
* @tsplus fluent fncts.ImmutableArray filterMap
|
680
|
+
*/
|
681
|
+
|
682
|
+
|
683
|
+
function filterMap_(self, f) {
|
684
|
+
return filterMapWithIndex_1(self, (_, a) => f(a));
|
685
|
+
}
|
686
|
+
|
687
|
+
function find_(self, p) {
|
688
|
+
return findWithIndex_1(self, (_, a) => p(a));
|
689
|
+
}
|
690
|
+
/**
|
691
|
+
* @tsplus fluent fncts.ImmutableArray findIndex
|
692
|
+
*/
|
693
|
+
|
694
|
+
|
695
|
+
function findIndex_(as, predicate) {
|
696
|
+
return findMapWithIndex_1(as, (i, a) => predicate(a) ? tsplus_module_9.just(i) : tsplus_module_9.nothing());
|
697
|
+
}
|
698
|
+
|
699
|
+
function findWithIndex_1(as, p) {
|
700
|
+
const len = length_1(as);
|
701
|
+
|
702
|
+
for (let i = 0; i < len; i++) {
|
703
|
+
if (p(i, as._array[i])) {
|
704
|
+
return tsplus_module_9.just(as._array[i]);
|
705
|
+
}
|
706
|
+
}
|
707
|
+
|
708
|
+
return tsplus_module_9.nothing();
|
709
|
+
}
|
710
|
+
/**
|
711
|
+
* @tsplus fluent fncts.ImmutableArray findMap
|
712
|
+
*/
|
713
|
+
|
714
|
+
|
715
|
+
function findMap_(as, f) {
|
716
|
+
return findMapWithIndex_1(as, (_, a) => f(a));
|
717
|
+
}
|
718
|
+
/**
|
719
|
+
* @tsplus fluent fncts.ImmutableArray findMapWithIndex
|
720
|
+
*/
|
721
|
+
|
722
|
+
|
723
|
+
function findMapWithIndex_1(as, f) {
|
724
|
+
const len = length_1(as);
|
725
|
+
|
726
|
+
for (let i = 0; i < len; i++) {
|
727
|
+
const v = f(i, as._array[i]);
|
728
|
+
|
729
|
+
if (tsplus_module_4.isJust(v)) {
|
730
|
+
return v;
|
731
|
+
}
|
732
|
+
}
|
733
|
+
|
734
|
+
return tsplus_module_9.nothing();
|
735
|
+
}
|
736
|
+
|
737
|
+
function findLast_(as, p) {
|
738
|
+
const len = length_1(as);
|
739
|
+
|
740
|
+
for (let i = len - 1; i >= 0; i--) {
|
741
|
+
if (p(as._array[i])) {
|
742
|
+
return tsplus_module_9.just(as._array[i]);
|
743
|
+
}
|
744
|
+
}
|
745
|
+
|
746
|
+
return tsplus_module_9.nothing();
|
747
|
+
}
|
748
|
+
/**
|
749
|
+
* @tsplus fluent fncts.ImmutableArray findLastIndex
|
750
|
+
*/
|
751
|
+
|
752
|
+
|
753
|
+
function findLastIndex_(self, p) {
|
754
|
+
return findLastMapWithIndex_1(self, (i, a) => p(a) ? tsplus_module_9.just(i) : tsplus_module_9.nothing());
|
755
|
+
}
|
756
|
+
/**
|
757
|
+
* @tsplus fluent fncts.ImmutableArray findLastMap
|
758
|
+
*/
|
759
|
+
|
760
|
+
|
761
|
+
function findLastMap_(as, f) {
|
762
|
+
return findLastMapWithIndex_1(as, (_, a) => f(a));
|
763
|
+
}
|
764
|
+
/**
|
765
|
+
* @tsplus fluent fncts.ImmutableArray findLastMapWithIndex
|
766
|
+
*/
|
767
|
+
|
768
|
+
|
769
|
+
function findLastMapWithIndex_1(as, f) {
|
770
|
+
const len = length_1(as);
|
771
|
+
|
772
|
+
for (let i = len - 1; i >= 0; i--) {
|
773
|
+
const v = f(i, as._array[i]);
|
774
|
+
|
775
|
+
if (tsplus_module_4.isJust(v)) {
|
776
|
+
return v;
|
777
|
+
}
|
778
|
+
}
|
779
|
+
|
780
|
+
return tsplus_module_9.nothing();
|
781
|
+
}
|
782
|
+
/**
|
783
|
+
* @tsplus fluent fncts.ImmutableArray foldLeftWithIndex
|
784
|
+
* @tsplus fluent fncts.base.MutableArray foldLeftWithIndex
|
785
|
+
*/
|
786
|
+
|
787
|
+
|
788
|
+
function foldLeftWithIndex_1(self, b, f) {
|
789
|
+
const len = length_1(self);
|
790
|
+
let r = b;
|
791
|
+
|
792
|
+
for (let i = 0; i < len; i++) {
|
793
|
+
r = f(i, r, self._array[i]);
|
794
|
+
}
|
795
|
+
|
796
|
+
return r;
|
797
|
+
}
|
798
|
+
/**
|
799
|
+
* @tsplus fluent fncts.ImmutableArray foldLeft
|
800
|
+
* @tsplus fluent fncts.base.MutableArray foldLeft
|
801
|
+
*/
|
802
|
+
|
803
|
+
|
804
|
+
function foldLeft_1(self, b, f) {
|
805
|
+
return foldLeftWithIndex_1(self, b, (_, b, a) => f(b, a));
|
806
|
+
}
|
807
|
+
/**
|
808
|
+
* @tsplus fluent fncts.ImmutableArray foldLeftWhile
|
809
|
+
* @tsplus fluent fncts.base.MutableArray foldLeftWhile
|
810
|
+
*/
|
811
|
+
|
812
|
+
|
813
|
+
function foldLeftWhile_(self, b, p, f) {
|
814
|
+
return foldLeftWithIndexWhile_1(self, b, p, (_, b, a) => f(b, a));
|
815
|
+
}
|
816
|
+
/**
|
817
|
+
* @tsplus fluent fncts.ImmutableArray foldLeftWithIndexWhile
|
818
|
+
* @tsplus fluent fncts.base.MutableArray foldLeftWithIndexWhile
|
819
|
+
*/
|
820
|
+
|
821
|
+
|
822
|
+
function foldLeftWithIndexWhile_1(self, b, p, f) {
|
823
|
+
let out = b;
|
824
|
+
let cont = p(out);
|
825
|
+
|
826
|
+
for (let i = 0; cont && i < length_1(self); i++) {
|
827
|
+
out = f(i, out, self._array[i]);
|
828
|
+
cont = p(out);
|
829
|
+
}
|
830
|
+
|
831
|
+
return out;
|
832
|
+
}
|
833
|
+
|
834
|
+
function fold(M) {
|
835
|
+
return self => foldLeft_1(self, M.nat, M.combine_);
|
836
|
+
}
|
837
|
+
/**
|
838
|
+
* @tsplus fluent fncts.ImmutableArray fold
|
839
|
+
* @tsplus fluent fncts.base.MutableArray fold
|
840
|
+
*/
|
841
|
+
|
842
|
+
|
843
|
+
function foldSelf_1(self, M) {
|
844
|
+
return foldLeft_1(self, M.nat, M.combine_);
|
845
|
+
}
|
846
|
+
/**
|
847
|
+
* @constrained
|
848
|
+
*/
|
849
|
+
|
850
|
+
|
851
|
+
function foldMapWithIndex_(M) {
|
852
|
+
return (self, f) => {
|
853
|
+
return foldLeftWithIndex_1(self, M.nat, (i, b, a) => M.combine_(b, f(i, a)));
|
854
|
+
};
|
855
|
+
}
|
856
|
+
/**
|
857
|
+
* @tsplus getter fncts.ImmutableArray foldMapWithIndex
|
858
|
+
* @tsplus getter fncts.base.MutableArray foldMapWithIndex
|
859
|
+
*/
|
860
|
+
|
861
|
+
|
862
|
+
function foldMapWithIndexSelf_1(self) {
|
863
|
+
return M => f => foldMapWithIndex_(M)(self, f);
|
864
|
+
}
|
865
|
+
/**
|
866
|
+
* @constrained
|
867
|
+
*/
|
868
|
+
|
869
|
+
|
870
|
+
function foldMap_(M) {
|
871
|
+
return (self, f) => {
|
872
|
+
return foldMapWithIndexSelf_1(self)(M)((_, a) => f(a));
|
873
|
+
};
|
874
|
+
}
|
875
|
+
/**
|
876
|
+
* @tsplus getter fncts.ImmutableArray foldMap
|
877
|
+
* @tsplus getter fncts.base.MutableArray foldMap
|
878
|
+
*/
|
879
|
+
|
880
|
+
|
881
|
+
function foldMapSelf(self) {
|
882
|
+
return M => f => foldMapWithIndexSelf_1(self)(M)((_, a) => f(a));
|
883
|
+
}
|
884
|
+
/**
|
885
|
+
* @tsplus fluent fncts.ImmutableArray foldRightWithIndex
|
886
|
+
* @tsplus fluent fncts.base.MutableArray foldRightWithIndex
|
887
|
+
*/
|
888
|
+
|
889
|
+
|
890
|
+
function foldRightWithIndex_1(self, b, f) {
|
891
|
+
let r = b;
|
892
|
+
|
893
|
+
for (let i = length_1(self) - 1; i >= 0; i--) {
|
894
|
+
r = f(i, self._array[i], r);
|
895
|
+
}
|
896
|
+
|
897
|
+
return r;
|
898
|
+
}
|
899
|
+
/**
|
900
|
+
* @tsplus fluent fncts.ImmutableArray foldRight
|
901
|
+
* @tsplus fluent fncts.base.MutableArray foldRight
|
902
|
+
*/
|
903
|
+
|
904
|
+
|
905
|
+
function foldRight_(self, b, f) {
|
906
|
+
return foldRightWithIndex_1(self, b, (_, a, b) => f(a, b));
|
907
|
+
}
|
908
|
+
/**
|
909
|
+
* @tsplus fluent fncts.ImmutableArray foldRighWhile
|
910
|
+
* @tsplus fluent fncts.base.MutableArray foldRightWhile
|
911
|
+
*/
|
912
|
+
|
913
|
+
|
914
|
+
function foldRightWhile_(self, b, p, f) {
|
915
|
+
return foldRightWithIndexWhile_1(self, b, p, (_, a, b) => f(a, b));
|
916
|
+
}
|
917
|
+
/**
|
918
|
+
* @tsplus fluent fncts.ImmutableArray foldRightWithIndexWhile
|
919
|
+
* @tsplus fluent fncts.base.MutableArray foldRightWithIndexWhile
|
920
|
+
*/
|
921
|
+
|
922
|
+
|
923
|
+
function foldRightWithIndexWhile_1(self, b, predicate, f) {
|
924
|
+
let out = b;
|
925
|
+
let cont = predicate(out);
|
926
|
+
|
927
|
+
for (let i = length_1(self) - 1; cont && i >= 0; i--) {
|
928
|
+
out = f(i, self._array[i], out);
|
929
|
+
cont = predicate(out);
|
930
|
+
}
|
931
|
+
|
932
|
+
return out;
|
933
|
+
}
|
934
|
+
/**
|
935
|
+
* @tsplus fluent fncts.ImmutableArray forEach
|
936
|
+
*/
|
937
|
+
|
938
|
+
|
939
|
+
function forEach_1(self, f) {
|
940
|
+
return forEach_1(self, f);
|
941
|
+
}
|
942
|
+
/**
|
943
|
+
* @tsplus fluent fncts.ImmutableArray get
|
944
|
+
* @tsplus fluent fncts.base.MutableArray get
|
945
|
+
*/
|
946
|
+
|
947
|
+
|
948
|
+
function get_1(self, i) {
|
949
|
+
return isOutOfBound_1(self, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(self._array[i]);
|
950
|
+
}
|
951
|
+
|
952
|
+
function group(E) {
|
953
|
+
return chop(self => {
|
954
|
+
const h = self._array[0];
|
955
|
+
const out = [h];
|
956
|
+
let i = 1;
|
957
|
+
|
958
|
+
for (; i < length_1(self); i++) {
|
959
|
+
const a = self._array[i];
|
960
|
+
|
961
|
+
if (E.equals_(a, h)) {
|
962
|
+
out.push(a);
|
963
|
+
} else {
|
964
|
+
break;
|
965
|
+
}
|
966
|
+
}
|
967
|
+
|
968
|
+
return [tsplus_module_10.unsafeAsNonEmptyArray(out), slice_1(self, i)];
|
969
|
+
});
|
970
|
+
}
|
971
|
+
/**
|
972
|
+
* @tsplus fluent fncts.ImmutableArray group
|
973
|
+
*/
|
974
|
+
|
975
|
+
|
976
|
+
function chopSelf(self, E) {
|
977
|
+
return group(E)(self);
|
978
|
+
}
|
979
|
+
/**
|
980
|
+
* @tsplus fluent fncts.ImmutableArray groupBy
|
981
|
+
*/
|
982
|
+
|
983
|
+
|
984
|
+
function groupBy_(self, f) {
|
985
|
+
const out = {};
|
986
|
+
|
987
|
+
for (let i = 0; i < length_1(self); i++) {
|
988
|
+
const a = self._array[i];
|
989
|
+
const k = f(a);
|
990
|
+
|
991
|
+
if (Object.prototype.hasOwnProperty.call(out, k)) {
|
992
|
+
out[k].push(a);
|
993
|
+
} else {
|
994
|
+
out[k] = [a];
|
995
|
+
}
|
996
|
+
}
|
997
|
+
|
998
|
+
return tsplus_module_11.toRecord(tsplus_module_11.map_(tsplus_module_12.Dictionary.get(out), tsplus_module_10.from));
|
999
|
+
}
|
1000
|
+
/**
|
1001
|
+
* @tsplus getter fncts.ImmutableArray head
|
1002
|
+
*/
|
1003
|
+
|
1004
|
+
|
1005
|
+
function head(self) {
|
1006
|
+
return isNonEmpty_1(self) ? tsplus_module_9.just(self._array[0]) : tsplus_module_9.nothing();
|
1007
|
+
}
|
1008
|
+
/**
|
1009
|
+
* @tsplus getter fncts.ImmutableArray init
|
1010
|
+
*/
|
1011
|
+
|
1012
|
+
|
1013
|
+
function init(self) {
|
1014
|
+
const len = length_1(self);
|
1015
|
+
return len === 0 ? tsplus_module_9.nothing() : tsplus_module_9.just(slice_1(self, 0, len - 1));
|
1016
|
+
}
|
1017
|
+
/**
|
1018
|
+
* @tsplus fluent fncts.ImmutableArray insertAt
|
1019
|
+
*/
|
1020
|
+
|
1021
|
+
|
1022
|
+
function insertAt_(self, i, a) {
|
1023
|
+
return isOutOfBound_1(self, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeInsertAt_1(self, i, a));
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
function intersection_(E) {
|
1027
|
+
const elemE = elem_(E);
|
1028
|
+
return (self, that) => filter_1(self, a => elemE(that, a));
|
1029
|
+
}
|
1030
|
+
/**
|
1031
|
+
* @tsplus getter fncts.ImmutableArray intersection
|
1032
|
+
*/
|
1033
|
+
|
1034
|
+
|
1035
|
+
function intersectionSelf(self) {
|
1036
|
+
return E => that => intersection_(E)(self, that);
|
1037
|
+
}
|
1038
|
+
|
1039
|
+
function intersperse_(self, a) {
|
1040
|
+
const len = length_1(self);
|
1041
|
+
return len === 0 ? self : prepend_1(prependAll_1(slice_1(self, 1, len), a), unsafeGet_1(self, 0));
|
1042
|
+
}
|
1043
|
+
/**
|
1044
|
+
* @tsplus fluent fncts.ImmutableArray isEmpty
|
1045
|
+
*/
|
1046
|
+
|
1047
|
+
|
1048
|
+
function isEmpty_1(self) {
|
1049
|
+
return length_1(self) === 0;
|
1050
|
+
}
|
1051
|
+
/**
|
1052
|
+
* @tsplus fluent fncts.ImmutableArray isNonEmpty
|
1053
|
+
*/
|
1054
|
+
|
1055
|
+
|
1056
|
+
function isNonEmpty_1(self) {
|
1057
|
+
return length_1(self) > 0;
|
1058
|
+
}
|
1059
|
+
/**
|
1060
|
+
* @tsplus fluent fncts.ImmutableArray isOutOfBound
|
1061
|
+
*/
|
1062
|
+
|
1063
|
+
|
1064
|
+
function isOutOfBound_1(self, i) {
|
1065
|
+
return i < 0 || i >= length_1(self);
|
1066
|
+
}
|
1067
|
+
/**
|
1068
|
+
* @tsplus fluent fncts.ImmutableArray join
|
1069
|
+
*/
|
1070
|
+
|
1071
|
+
|
1072
|
+
function join(self, separator) {
|
1073
|
+
return self._array.join(separator);
|
1074
|
+
}
|
1075
|
+
/**
|
1076
|
+
* @tsplus getter fncts.ImmutableArray last
|
1077
|
+
*/
|
1078
|
+
|
1079
|
+
|
1080
|
+
function last(self) {
|
1081
|
+
return get_1(self, length_1(self) - 1);
|
1082
|
+
}
|
1083
|
+
/**
|
1084
|
+
* @tsplus getter fncts.ImmutableArray length
|
1085
|
+
*/
|
1086
|
+
|
1087
|
+
|
1088
|
+
function length_1(self) {
|
1089
|
+
return self._array.length;
|
1090
|
+
}
|
1091
|
+
/**
|
1092
|
+
* @tsplus getter fncts.ImmutableArray lefts
|
1093
|
+
*/
|
1094
|
+
|
1095
|
+
|
1096
|
+
function lefts(self) {
|
1097
|
+
const ls = [];
|
1098
|
+
|
1099
|
+
for (let i = 0; i < length_1(self); i++) {
|
1100
|
+
const a = self._array[i];
|
1101
|
+
|
1102
|
+
if (a._tag === "Left"
|
1103
|
+
/* EitherTag.Left */
|
1104
|
+
) {
|
1105
|
+
ls.push(a.left);
|
1106
|
+
}
|
1107
|
+
}
|
1108
|
+
|
1109
|
+
return tsplus_module_2.asImmutableArray(ls);
|
1110
|
+
}
|
1111
|
+
/**
|
1112
|
+
* @tsplus fluent fncts.ImmutableArray map
|
1113
|
+
*/
|
1114
|
+
|
1115
|
+
|
1116
|
+
function map_1(self, f) {
|
1117
|
+
return mapWithIndex_1(self, (_, a) => f(a));
|
1118
|
+
}
|
1119
|
+
/**
|
1120
|
+
* @tsplus fluent fncts.ImmutableArray mapAccum
|
1121
|
+
*/
|
1122
|
+
|
1123
|
+
|
1124
|
+
function mapAccum_(self, s, f) {
|
1125
|
+
const bs = Array(length_1(self));
|
1126
|
+
let state = s;
|
1127
|
+
|
1128
|
+
for (let i = 0; i < length_1(self); i++) {
|
1129
|
+
const result = f(state, self._array[i]);
|
1130
|
+
bs[i] = result[0];
|
1131
|
+
state = result[1];
|
1132
|
+
}
|
1133
|
+
|
1134
|
+
return [tsplus_module_2.asImmutableArray(bs), state];
|
1135
|
+
}
|
1136
|
+
/**
|
1137
|
+
* @tsplus fluent fncts.ImmutableArray mapWithIndex
|
1138
|
+
*/
|
1139
|
+
|
1140
|
+
|
1141
|
+
function mapWithIndex_1(self, f) {
|
1142
|
+
const len = self._array.length;
|
1143
|
+
const bs = Array(len);
|
1144
|
+
|
1145
|
+
for (let i = 0; i < len; i++) {
|
1146
|
+
bs[i] = f(i, self._array[i]);
|
1147
|
+
}
|
1148
|
+
|
1149
|
+
return tsplus_module_2.asImmutableArray(bs);
|
1150
|
+
}
|
1151
|
+
/**
|
1152
|
+
* @tsplus fluent fncts.ImmutableArray modifyAt
|
1153
|
+
*/
|
1154
|
+
|
1155
|
+
|
1156
|
+
function modifyAt_(self, i, f) {
|
1157
|
+
return isOutOfBound_1(self, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeModifyAt_1(self, i, f));
|
1158
|
+
}
|
1159
|
+
/**
|
1160
|
+
* @tsplus fluent fncts.ImmutableArray mutate
|
1161
|
+
*/
|
1162
|
+
|
1163
|
+
|
1164
|
+
function mutate_1(self, f) {
|
1165
|
+
const mut = mutableClone_1(self);
|
1166
|
+
f(mut);
|
1167
|
+
return tsplus_module_2.asImmutableArray(mut);
|
1168
|
+
}
|
1169
|
+
/**
|
1170
|
+
* @tsplus getter fncts.ImmutableArray mutableClone
|
1171
|
+
*/
|
1172
|
+
|
1173
|
+
|
1174
|
+
function mutableClone_1(self) {
|
1175
|
+
return slice_1(self, 0)._array;
|
1176
|
+
}
|
1177
|
+
|
1178
|
+
function partitionWithIndex_1(self, p) {
|
1179
|
+
const left = [];
|
1180
|
+
const right = [];
|
1181
|
+
|
1182
|
+
for (let i = 0; i < length_1(self); i++) {
|
1183
|
+
const a = self._array[i];
|
1184
|
+
|
1185
|
+
if (p(i, a)) {
|
1186
|
+
right.push(a);
|
1187
|
+
} else {
|
1188
|
+
left.push(a);
|
1189
|
+
}
|
1190
|
+
}
|
1191
|
+
|
1192
|
+
return [tsplus_module_2.asImmutableArray(left), tsplus_module_2.asImmutableArray(right)];
|
1193
|
+
}
|
1194
|
+
|
1195
|
+
function partition_(self, p) {
|
1196
|
+
return partitionWithIndex_1(self, (_, a) => p(a));
|
1197
|
+
}
|
1198
|
+
/**
|
1199
|
+
* @tsplus fluent fncts.ImmutableArray partitionMapWithIndex
|
1200
|
+
*/
|
1201
|
+
|
1202
|
+
|
1203
|
+
function partitionMapWithIndex_1(self, f) {
|
1204
|
+
const left = [];
|
1205
|
+
const right = [];
|
1206
|
+
|
1207
|
+
for (let i = 0; i < length_1(self); i++) {
|
1208
|
+
const ea = f(i, self._array[i]);
|
1209
|
+
|
1210
|
+
switch (ea._tag) {
|
1211
|
+
case "Left"
|
1212
|
+
/* EitherTag.Left */
|
1213
|
+
:
|
1214
|
+
left.push(ea.left);
|
1215
|
+
break;
|
1216
|
+
|
1217
|
+
case "Right"
|
1218
|
+
/* EitherTag.Right */
|
1219
|
+
:
|
1220
|
+
right.push(ea.right);
|
1221
|
+
break;
|
1222
|
+
}
|
1223
|
+
}
|
1224
|
+
|
1225
|
+
return [tsplus_module_2.asImmutableArray(left), tsplus_module_2.asImmutableArray(right)];
|
1226
|
+
}
|
1227
|
+
/**
|
1228
|
+
* @tsplus fluent fncts.ImmutableArray partitionMap
|
1229
|
+
*/
|
1230
|
+
|
1231
|
+
|
1232
|
+
function partitionMap_(self, f) {
|
1233
|
+
return partitionMapWithIndex_1(self, (_, a) => f(a));
|
1234
|
+
}
|
1235
|
+
/**
|
1236
|
+
* @tsplus fluent fncts.ImmutableArray prepend
|
1237
|
+
*/
|
1238
|
+
|
1239
|
+
|
1240
|
+
function prepend_1(self, head) {
|
1241
|
+
const len = length_1(self);
|
1242
|
+
const out = Array(len + 1);
|
1243
|
+
out[0] = head;
|
1244
|
+
|
1245
|
+
for (let i = 0; i < len; i++) {
|
1246
|
+
out[i + 1] = self._array[i];
|
1247
|
+
}
|
1248
|
+
|
1249
|
+
return tsplus_module_2.asImmutableArray(out);
|
1250
|
+
}
|
1251
|
+
/**
|
1252
|
+
* @tsplus fluent fncts.ImmutableArray prependAll
|
1253
|
+
* @tsplus fluent fncts.base.MutableArray prependAll
|
1254
|
+
*/
|
1255
|
+
|
1256
|
+
|
1257
|
+
function prependAll_1(self, a) {
|
1258
|
+
const out = [];
|
1259
|
+
|
1260
|
+
for (let i = 0; i < length_1(self); i++) {
|
1261
|
+
out.push(a, self._array[i]);
|
1262
|
+
}
|
1263
|
+
|
1264
|
+
return tsplus_module_2.asImmutableArray(out);
|
1265
|
+
}
|
1266
|
+
/**
|
1267
|
+
* @tsplus getter fncts.ImmutableArray reverse
|
1268
|
+
*/
|
1269
|
+
|
1270
|
+
|
1271
|
+
function reverse(self) {
|
1272
|
+
if (isEmpty_1(self)) {
|
1273
|
+
return self;
|
1274
|
+
} else if (length_1(self) === 1) {
|
1275
|
+
return tsplus_module_2.make(self._array[0]);
|
1276
|
+
} else {
|
1277
|
+
const out = Array(length_1(self));
|
1278
|
+
|
1279
|
+
for (let j = 0, i = length_1(self) - 1; i >= 0; i--, j++) {
|
1280
|
+
out[j] = self._array[i];
|
1281
|
+
}
|
1282
|
+
|
1283
|
+
return tsplus_module_2.asImmutableArray(out);
|
1284
|
+
}
|
1285
|
+
}
|
1286
|
+
/**
|
1287
|
+
* @tsplus getter fncts.ImmutableArray rights
|
1288
|
+
*/
|
1289
|
+
|
1290
|
+
|
1291
|
+
function rights(self) {
|
1292
|
+
const rs = [];
|
1293
|
+
|
1294
|
+
for (let i = 0; i < length_1(self); i++) {
|
1295
|
+
const a = self._array[i];
|
1296
|
+
|
1297
|
+
if (a._tag === "Right"
|
1298
|
+
/* EitherTag.Right */
|
1299
|
+
) {
|
1300
|
+
rs.push(a.right);
|
1301
|
+
}
|
1302
|
+
}
|
1303
|
+
|
1304
|
+
return tsplus_module_2.asImmutableArray(rs);
|
1305
|
+
}
|
1306
|
+
/**
|
1307
|
+
* @tsplus fluent fncts.ImmutableArray rotate
|
1308
|
+
*/
|
1309
|
+
|
1310
|
+
|
1311
|
+
function rotate_1(self, n) {
|
1312
|
+
const len = length_1(self);
|
1313
|
+
|
1314
|
+
if (n === 0 || len <= 1 || len === Math.abs(n)) {
|
1315
|
+
return self;
|
1316
|
+
} else if (n < 0) {
|
1317
|
+
return rotate_1(self, len + n);
|
1318
|
+
} else {
|
1319
|
+
return concat_1(slice_1(self, -n), slice_1(self, 0, len - n));
|
1320
|
+
}
|
1321
|
+
}
|
1322
|
+
/**
|
1323
|
+
* @tsplus fluent fncts.ImmutableArray scanLeft
|
1324
|
+
*/
|
1325
|
+
|
1326
|
+
|
1327
|
+
function scanLeft_(self, b, f) {
|
1328
|
+
const l = length_1(self);
|
1329
|
+
const r = Array(l + 1);
|
1330
|
+
r[0] = b;
|
1331
|
+
|
1332
|
+
for (let i = 0; i < l; i++) {
|
1333
|
+
r[i + 1] = f(r[i], self._array[i]);
|
1334
|
+
}
|
1335
|
+
|
1336
|
+
return tsplus_module_2.asImmutableArray(r);
|
1337
|
+
}
|
1338
|
+
/**
|
1339
|
+
* @tsplus fluent fncts.ImmutableArray scanRight
|
1340
|
+
*/
|
1341
|
+
|
1342
|
+
|
1343
|
+
function scanRight_(self, b, f) {
|
1344
|
+
const l = length_1(self);
|
1345
|
+
const r = Array(l + 1);
|
1346
|
+
r[l] = b;
|
1347
|
+
|
1348
|
+
for (let i = l - 1; i >= 0; i--) {
|
1349
|
+
r[i] = f(self._array[i], r[i + 1]);
|
1350
|
+
}
|
1351
|
+
|
1352
|
+
return tsplus_module_2.asImmutableArray(r);
|
1353
|
+
}
|
1354
|
+
/**
|
1355
|
+
* @tsplus fluent fncts.ImmutableArray sort
|
1356
|
+
*/
|
1357
|
+
|
1358
|
+
|
1359
|
+
function sort_1(self, O) {
|
1360
|
+
return isEmpty_1(self) || length_1(self) === 1 ? self : tsplus_module_2.asImmutableArray(self._array.slice().sort(O.compare_));
|
1361
|
+
}
|
1362
|
+
/**
|
1363
|
+
* @tsplus fluent fncts.ImmutableArray sortBy
|
1364
|
+
*/
|
1365
|
+
|
1366
|
+
|
1367
|
+
function sortBy(self, Os) {
|
1368
|
+
return sort_1(self, foldSelf_1(Os, tsplus_module_13.getMonoid()));
|
1369
|
+
}
|
1370
|
+
|
1371
|
+
function spanLeft_(self, p) {
|
1372
|
+
const i = spanIndexLeft_1(self, p);
|
1373
|
+
const init = Array(i);
|
1374
|
+
|
1375
|
+
for (let j = 0; j < i; j++) {
|
1376
|
+
init[j] = self._array[j];
|
1377
|
+
}
|
1378
|
+
|
1379
|
+
const l = length_1(self);
|
1380
|
+
const rest = Array(l - i);
|
1381
|
+
|
1382
|
+
for (let j = i; j < l; j++) {
|
1383
|
+
rest[j - i] = self._array[j];
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
return [tsplus_module_2.asImmutableArray(init), tsplus_module_2.asImmutableArray(rest)];
|
1387
|
+
}
|
1388
|
+
|
1389
|
+
function spanRight_(self, p) {
|
1390
|
+
const i = spanIndexRight_1(self, p);
|
1391
|
+
const l = length_1(self);
|
1392
|
+
const tail = Array(l - i - 1);
|
1393
|
+
|
1394
|
+
for (let j = l - 1; j > i; j--) {
|
1395
|
+
tail[j - i - 1] = self._array[j];
|
1396
|
+
}
|
1397
|
+
|
1398
|
+
const rest = Array(i);
|
1399
|
+
|
1400
|
+
for (let j = i; j >= 0; j--) {
|
1401
|
+
rest[j] = self._array[j];
|
1402
|
+
}
|
1403
|
+
|
1404
|
+
return [tsplus_module_2.asImmutableArray(rest), tsplus_module_2.asImmutableArray(tail)];
|
1405
|
+
}
|
1406
|
+
/**
|
1407
|
+
* @tsplus fluent fncts.ImmutableArray spanIndexLeft
|
1408
|
+
*/
|
1409
|
+
|
1410
|
+
|
1411
|
+
function spanIndexLeft_1(self, p) {
|
1412
|
+
const l = length_1(self);
|
1413
|
+
let i = 0;
|
1414
|
+
|
1415
|
+
for (; i < l; i++) {
|
1416
|
+
if (!p(self._array[i])) {
|
1417
|
+
break;
|
1418
|
+
}
|
1419
|
+
}
|
1420
|
+
|
1421
|
+
return i;
|
1422
|
+
}
|
1423
|
+
/**
|
1424
|
+
* @tsplus fluent fncts.ImmutableArray spanIndexRight
|
1425
|
+
*/
|
1426
|
+
|
1427
|
+
|
1428
|
+
function spanIndexRight_1(as, predicate) {
|
1429
|
+
let i = length_1(as) - 1;
|
1430
|
+
|
1431
|
+
for (; i >= 0; i--) {
|
1432
|
+
if (!predicate(as._array[i])) {
|
1433
|
+
break;
|
1434
|
+
}
|
1435
|
+
}
|
1436
|
+
|
1437
|
+
return i;
|
1438
|
+
}
|
1439
|
+
/**
|
1440
|
+
* @tsplus fluent fncts.ImmutableArray slice
|
1441
|
+
*/
|
1442
|
+
|
1443
|
+
|
1444
|
+
function slice_1(self, start, end) {
|
1445
|
+
return tsplus_module_2.asImmutableArray(self._array.slice(start, end));
|
1446
|
+
}
|
1447
|
+
/**
|
1448
|
+
* @tsplus fluent fncts.ImmutableArray splitAt
|
1449
|
+
*/
|
1450
|
+
|
1451
|
+
|
1452
|
+
function splitAt_1(as, n) {
|
1453
|
+
return [slice_1(as, 0, n), slice_1(as, n)];
|
1454
|
+
}
|
1455
|
+
/**
|
1456
|
+
* @tsplus fluent fncts.ImmutableArray splitWhere
|
1457
|
+
*/
|
1458
|
+
|
1459
|
+
|
1460
|
+
function splitWhere_(self, p) {
|
1461
|
+
let cont = true;
|
1462
|
+
let i = 0;
|
1463
|
+
|
1464
|
+
while (cont && i < length_1(self)) {
|
1465
|
+
if (p(self._array[i])) {
|
1466
|
+
cont = false;
|
1467
|
+
} else {
|
1468
|
+
i++;
|
1469
|
+
}
|
1470
|
+
}
|
1471
|
+
|
1472
|
+
return splitAt_1(self, i);
|
1473
|
+
}
|
1474
|
+
|
1475
|
+
const sequence = A => self => traverseSelf_1(self)(A)(_function.identity);
|
1476
|
+
/**
|
1477
|
+
* @tsplus getter fncts.ImmutableArray sequence
|
1478
|
+
*/
|
1479
|
+
|
1480
|
+
|
1481
|
+
exports.sequence = sequence;
|
1482
|
+
|
1483
|
+
const sequenceSelf = self => A => traverseSelf_1(self)(A)(_function.identity);
|
1484
|
+
/**
|
1485
|
+
* @tsplus getter fncts.ImmutableArray tail
|
1486
|
+
*/
|
1487
|
+
|
1488
|
+
|
1489
|
+
exports.sequenceSelf = sequenceSelf;
|
1490
|
+
|
1491
|
+
function tail(self) {
|
1492
|
+
return isNonEmpty_1(self) ? tsplus_module_9.just(slice_1(self, 1)) : tsplus_module_9.nothing();
|
1493
|
+
}
|
1494
|
+
/**
|
1495
|
+
* @tsplus fluent fncts.ImmutableArray take
|
1496
|
+
*/
|
1497
|
+
|
1498
|
+
|
1499
|
+
function take_(self, n) {
|
1500
|
+
return slice_1(self, 0, n);
|
1501
|
+
}
|
1502
|
+
/**
|
1503
|
+
* @tsplus fluent fncts.ImmutableArray takeLast
|
1504
|
+
*/
|
1505
|
+
|
1506
|
+
|
1507
|
+
function takeLast_(as, n) {
|
1508
|
+
return isEmpty_1(as) ? tsplus_module_2.empty() : slice_1(as, -n);
|
1509
|
+
}
|
1510
|
+
|
1511
|
+
function takeWhile_(self, p) {
|
1512
|
+
const i = spanIndexLeft_1(self, p);
|
1513
|
+
const init = Array(i);
|
1514
|
+
|
1515
|
+
for (let j = 0; j < i; j++) {
|
1516
|
+
init[j] = self._array[j];
|
1517
|
+
}
|
1518
|
+
|
1519
|
+
return tsplus_module_2.asImmutableArray(init);
|
1520
|
+
}
|
1521
|
+
|
1522
|
+
const traverseWithIndex_ = /*#__PURE__*/P.mkTraverseWithIndex_()(_ => A => (ta, f) => foldLeftWithIndex_1(ta, A.pure(tsplus_module_2.empty()), (i, fbs, a) => A.zipWith_(fbs, f(i, a), (bs, b) => append_1(bs, b))));
|
1523
|
+
/**
|
1524
|
+
* @tsplus dataFirst traverseWithIndex_
|
1525
|
+
*/
|
1526
|
+
|
1527
|
+
exports.traverseWithIndex_ = traverseWithIndex_;
|
1528
|
+
|
1529
|
+
const traverseWithIndex = A => f => self => traverseWithIndex_(A)(self, f);
|
1530
|
+
/**
|
1531
|
+
* @tsplus getter fncts.ImmutableArray traverseWithIndex
|
1532
|
+
*/
|
1533
|
+
|
1534
|
+
|
1535
|
+
exports.traverseWithIndex = traverseWithIndex;
|
1536
|
+
|
1537
|
+
const traverseWithIndexSelf_1 = self => A => f => traverseWithIndex_(A)(self, f);
|
1538
|
+
|
1539
|
+
const traverseWithIndexSelf = traverseWithIndexSelf_1;
|
1540
|
+
exports.traverseWithIndexSelf = traverseWithIndexSelf;
|
1541
|
+
|
1542
|
+
const traverse_ = A => (self, f) => traverseWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1543
|
+
/**
|
1544
|
+
* @tsplus dataFirst traverse_
|
1545
|
+
*/
|
1546
|
+
|
1547
|
+
|
1548
|
+
exports.traverse_ = traverse_;
|
1549
|
+
|
1550
|
+
const traverse = A => f => self => traverseWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1551
|
+
/**
|
1552
|
+
* @tsplus getter fncts.ImmutableArray traverse
|
1553
|
+
*/
|
1554
|
+
|
1555
|
+
|
1556
|
+
exports.traverse = traverse;
|
1557
|
+
|
1558
|
+
const traverseSelf_1 = self => A => f => traverseWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1559
|
+
|
1560
|
+
const traverseSelf = traverseSelf_1;
|
1561
|
+
exports.traverseSelf = traverseSelf;
|
1562
|
+
|
1563
|
+
function union_(E) {
|
1564
|
+
const elemE = elem_(E);
|
1565
|
+
return (self, that) => concat_1(self, filter_1(that, a => !elemE(self, a)));
|
1566
|
+
}
|
1567
|
+
|
1568
|
+
function uniq(E) {
|
1569
|
+
return self => {
|
1570
|
+
if (length_1(self) === 1) {
|
1571
|
+
return self;
|
1572
|
+
}
|
1573
|
+
|
1574
|
+
const elemE_ = elem_(E);
|
1575
|
+
const out = [];
|
1576
|
+
const len = length_1(self);
|
1577
|
+
|
1578
|
+
for (let i = 0; i < len; i++) {
|
1579
|
+
const a = self._array[i];
|
1580
|
+
|
1581
|
+
if (!elemE_(tsplus_module_2.asImmutableArray(out), a)) {
|
1582
|
+
out.push(a);
|
1583
|
+
}
|
1584
|
+
}
|
1585
|
+
|
1586
|
+
return tsplus_module_2.asImmutableArray(out);
|
1587
|
+
};
|
1588
|
+
}
|
1589
|
+
/**
|
1590
|
+
* @tsplus fluent fncts.ImmutableArray uniq
|
1591
|
+
*/
|
1592
|
+
|
1593
|
+
|
1594
|
+
function uniqSelf(self, E) {
|
1595
|
+
return uniq(E)(self);
|
1596
|
+
}
|
1597
|
+
/**
|
1598
|
+
* @tsplus getter fncts.ImmutableArray unprepend
|
1599
|
+
*/
|
1600
|
+
|
1601
|
+
|
1602
|
+
function unprepend(self) {
|
1603
|
+
return isNonEmpty_1(self) ? tsplus_module_9.just([unsafeGet_1(self, 0), slice_1(self, 1)]) : tsplus_module_9.nothing();
|
1604
|
+
}
|
1605
|
+
/**
|
1606
|
+
* @tsplus index fncts.ImmutableArray
|
1607
|
+
*/
|
1608
|
+
|
1609
|
+
|
1610
|
+
function unsafeGet_1(self, i) {
|
1611
|
+
return self._array[i];
|
1612
|
+
}
|
1613
|
+
/**
|
1614
|
+
* @tsplus getter fncts.ImmutableArray unsafeAsMutable
|
1615
|
+
*/
|
1616
|
+
|
1617
|
+
|
1618
|
+
function unsafeAsMutable_1(self) {
|
1619
|
+
return self._array;
|
1620
|
+
}
|
1621
|
+
/**
|
1622
|
+
* @tsplus fluent fncts.ImmutableArray unsafeDeleteAt
|
1623
|
+
*/
|
1624
|
+
|
1625
|
+
|
1626
|
+
function unsafeDeleteAt_1(self, i) {
|
1627
|
+
return mutate_1(self, xs => {
|
1628
|
+
xs.splice(i, 1);
|
1629
|
+
});
|
1630
|
+
}
|
1631
|
+
/**
|
1632
|
+
* @tsplus fluent fncts.ImmutableArray unsafeInsertAt
|
1633
|
+
*/
|
1634
|
+
|
1635
|
+
|
1636
|
+
function unsafeInsertAt_1(as, i, a) {
|
1637
|
+
return mutate_1(as, xs => {
|
1638
|
+
xs.splice(i, 0, a);
|
1639
|
+
});
|
1640
|
+
}
|
1641
|
+
/**
|
1642
|
+
* @tsplus fluent fncts.ImmutableArray unsafeModifyAt
|
1643
|
+
*/
|
1644
|
+
|
1645
|
+
|
1646
|
+
function unsafeModifyAt_1(as, i, f) {
|
1647
|
+
const next = f(unsafeGet_1(as, i));
|
1648
|
+
|
1649
|
+
if (unsafeGet_1(as, i) === next) {
|
1650
|
+
return as;
|
1651
|
+
}
|
1652
|
+
|
1653
|
+
return mutate_1(as, xs => {
|
1654
|
+
xs[i] = next;
|
1655
|
+
});
|
1656
|
+
}
|
1657
|
+
/**
|
1658
|
+
* @tsplus fluent fncts.ImmutableArray unsafeUpdateAt
|
1659
|
+
*/
|
1660
|
+
|
1661
|
+
|
1662
|
+
function unsafeUpdateAt_1(as, i, a) {
|
1663
|
+
if (unsafeGet_1(as, i) === a) {
|
1664
|
+
return as;
|
1665
|
+
} else {
|
1666
|
+
return mutate_1(as, xs => {
|
1667
|
+
xs[i] = a;
|
1668
|
+
});
|
1669
|
+
}
|
1670
|
+
}
|
1671
|
+
/**
|
1672
|
+
* @tsplus getter fncts.ImmutableArray unzip
|
1673
|
+
*/
|
1674
|
+
|
1675
|
+
|
1676
|
+
function unzip(self) {
|
1677
|
+
const fa = Array(length_1(self));
|
1678
|
+
const fb = Array(length_1(self));
|
1679
|
+
|
1680
|
+
for (let i = 0; i < length_1(self); i++) {
|
1681
|
+
fa[i] = self._array[i][0];
|
1682
|
+
fb[i] = self._array[i][1];
|
1683
|
+
}
|
1684
|
+
|
1685
|
+
return [tsplus_module_2.asImmutableArray(fa), tsplus_module_2.asImmutableArray(fb)];
|
1686
|
+
}
|
1687
|
+
/**
|
1688
|
+
* @tsplus fluent fncts.ImmutableArray updateAt
|
1689
|
+
*/
|
1690
|
+
|
1691
|
+
|
1692
|
+
function updateAt_(as, i, a) {
|
1693
|
+
return isOutOfBound_1(as, i) ? tsplus_module_9.nothing() : tsplus_module_9.just(unsafeUpdateAt_1(as, i, a));
|
1694
|
+
}
|
1695
|
+
|
1696
|
+
const wilt_ = A => (self, f) => wiltWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1697
|
+
/**
|
1698
|
+
* @tsplus pipeable fncts.ImmutableArray wilt_
|
1699
|
+
*/
|
1700
|
+
|
1701
|
+
|
1702
|
+
exports.wilt_ = wilt_;
|
1703
|
+
|
1704
|
+
const wilt = A => f => self => wiltWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1705
|
+
/**
|
1706
|
+
* @tsplus fluent fncts.ImmutableArray wilt
|
1707
|
+
*/
|
1708
|
+
|
1709
|
+
|
1710
|
+
exports.wilt = wilt;
|
1711
|
+
|
1712
|
+
const wiltSelf = self => A => f => wiltWithIndexSelf_1(self)(A)((_, a) => f(a));
|
1713
|
+
|
1714
|
+
exports.wiltSelf = wiltSelf;
|
1715
|
+
const wiltWithIndex_ = /*#__PURE__*/P.mkWiltWithIndex_()(_ => A => (self, f) => A.map_(foldLeftWithIndex_1(self, A.pure([[], []]), (i, fbs, a) => A.zipWith_(f(i, a), fbs, (eb, r) => tsplus_module_15.match_(eb, b1 => {
|
1716
|
+
r[0].push(b1);
|
1717
|
+
return r;
|
1718
|
+
}, b2 => {
|
1719
|
+
r[1].push(b2);
|
1720
|
+
return r;
|
1721
|
+
}))), ([b1s, b2s]) => [tsplus_module_2.asImmutableArray(b1s), tsplus_module_2.asImmutableArray(b2s)]));
|
1722
|
+
/**
|
1723
|
+
* @tsplus dataFirst wiltWithIndex_
|
1724
|
+
*/
|
1725
|
+
|
1726
|
+
exports.wiltWithIndex_ = wiltWithIndex_;
|
1727
|
+
|
1728
|
+
const wiltWithIndex = A => f => self => wiltWithIndex_(A)(self, f);
|
1729
|
+
/**
|
1730
|
+
* @tsplus getter fncts.ImmutableArray wiltWithIndex
|
1731
|
+
*/
|
1732
|
+
|
1733
|
+
|
1734
|
+
exports.wiltWithIndex = wiltWithIndex;
|
1735
|
+
|
1736
|
+
const wiltWithIndexSelf_1 = self => A => f => wiltWithIndex_(A)(self, f);
|
1737
|
+
|
1738
|
+
const wiltWithIndexSelf = wiltWithIndexSelf_1;
|
1739
|
+
exports.wiltWithIndexSelf = wiltWithIndexSelf;
|
1740
|
+
|
1741
|
+
const wither_ = A => (self, f) => witherWithIndex_(A)(self, (_, a) => f(a));
|
1742
|
+
/**
|
1743
|
+
* @tsplus dataFirst wither_
|
1744
|
+
*/
|
1745
|
+
|
1746
|
+
|
1747
|
+
exports.wither_ = wither_;
|
1748
|
+
|
1749
|
+
const wither = A => f => self => wither_(A)(self, f);
|
1750
|
+
/**
|
1751
|
+
* @tsplus fluent fncts.ImmutableArray wither
|
1752
|
+
*/
|
1753
|
+
|
1754
|
+
|
1755
|
+
exports.wither = wither;
|
1756
|
+
|
1757
|
+
const witherSelf = self => A => f => witherWithIndex_(A)(self, (_, a) => f(a));
|
1758
|
+
|
1759
|
+
exports.witherSelf = witherSelf;
|
1760
|
+
const witherWithIndex_ = /*#__PURE__*/P.mkWitherWithIndex_()(_ => A => (self, f) => A.map_(foldLeftWithIndex_1(self, A.pure([]), (i, b, a) => A.zipWith_(f(i, a), b, (maybeB, bs) => {
|
1761
|
+
if (tsplus_module_4.isJust(maybeB)) {
|
1762
|
+
bs.push(maybeB.value);
|
1763
|
+
}
|
1764
|
+
|
1765
|
+
return bs;
|
1766
|
+
})), bs => tsplus_module_2.asImmutableArray(bs)));
|
1767
|
+
/**
|
1768
|
+
* @tsplus dataFirst witherWithIndex_
|
1769
|
+
*/
|
1770
|
+
|
1771
|
+
exports.witherWithIndex_ = witherWithIndex_;
|
1772
|
+
|
1773
|
+
const witherWithIndex = A => f => self => witherWithIndex_(A)(self, f);
|
1774
|
+
/**
|
1775
|
+
* @tsplus fluent fncts.ImmutableArray witherWithIndex
|
1776
|
+
*/
|
1777
|
+
|
1778
|
+
|
1779
|
+
exports.witherWithIndex = witherWithIndex;
|
1780
|
+
|
1781
|
+
const witherWithIndexSelf = self => A => f => witherWithIndex_(A)(self, f);
|
1782
|
+
/**
|
1783
|
+
* @tsplus fluent fncts.ImmutableArray zip
|
1784
|
+
*/
|
1785
|
+
|
1786
|
+
|
1787
|
+
exports.witherWithIndexSelf = witherWithIndexSelf;
|
1788
|
+
|
1789
|
+
function zip_(self, that) {
|
1790
|
+
return zipWith_1(self, that, _function.tuple);
|
1791
|
+
}
|
1792
|
+
/**
|
1793
|
+
* @tsplus fluent fncts.ImmutableArray zipWith
|
1794
|
+
*/
|
1795
|
+
|
1796
|
+
|
1797
|
+
function zipWith_1(self, fb, f) {
|
1798
|
+
const len = Math.min(length_1(self), length_1(fb));
|
1799
|
+
const fc = Array(len);
|
1800
|
+
|
1801
|
+
for (let i = 0; i < len; i++) {
|
1802
|
+
fc[i] = f(self._array[i], fb._array[i]);
|
1803
|
+
}
|
1804
|
+
|
1805
|
+
return tsplus_module_2.asImmutableArray(fc);
|
1806
|
+
}
|
1807
|
+
//# sourceMappingURL=api.cjs.map
|