@fncts/base 0.0.39 → 0.0.41
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/AsyncIterable/api.cjs +384 -0
- package/_cjs/collection/AsyncIterable/api.cjs.map +1 -0
- package/_cjs/collection/AsyncIterable/definition.cjs +2 -0
- package/_cjs/collection/AsyncIterable/definition.cjs.map +1 -0
- package/_cjs/collection/{compat/Array.cjs → AsyncIterable.cjs} +3 -3
- package/_cjs/collection/AsyncIterable.cjs.map +1 -0
- package/_cjs/collection/Iterable/api/traverseConc.cjs +1 -2
- package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
- package/_cjs/collection/Iterable/api.cjs +180 -137
- package/_cjs/collection/Iterable/api.cjs.map +1 -1
- package/_cjs/collection/Iterable/constructors.cjs.map +1 -1
- package/_cjs/collection/compat/ArrayLike/api.cjs +1 -2
- package/_cjs/collection/compat/ArrayLike/api.cjs.map +1 -1
- package/_cjs/collection/compat/ArrayLike/definition.cjs +0 -4
- package/_cjs/collection/compat/Map/definition.cjs +0 -4
- package/_cjs/collection/compat/Set/definition.cjs +0 -4
- package/_cjs/collection/compat.cjs +0 -4
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs +1 -2
- package/_cjs/collection/immutable/Conc/api/makeBy.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api/replicate.cjs +1 -2
- package/_cjs/collection/immutable/Conc/api/replicate.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/api.cjs +1 -2
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/constructors.cjs +3 -4
- package/_cjs/collection/immutable/Conc/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/definition.cjs +3 -3
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/api.cjs +1 -2
- package/_cjs/collection/immutable/Dictionary/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/definition.cjs +1 -2
- package/_cjs/collection/immutable/Dictionary/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/api.cjs +1 -2
- package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs +1 -2
- package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/internal.cjs +1 -2
- package/_cjs/collection/immutable/HashMap/internal.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/api.cjs +1 -2
- package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashSet/definition.cjs +1 -2
- package/_cjs/collection/immutable/HashSet/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api/foldLeft.cjs +1 -2
- package/_cjs/collection/immutable/List/api/foldLeft.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api/unsafeTail.cjs +1 -2
- package/_cjs/collection/immutable/List/api/unsafeTail.cjs.map +1 -1
- package/_cjs/collection/immutable/List/api.cjs +3 -4
- package/_cjs/collection/immutable/List/api.cjs.map +1 -1
- package/_cjs/collection/immutable/List/constructors.cjs +1 -2
- package/_cjs/collection/immutable/List/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/List/definition.cjs +1 -2
- package/_cjs/collection/immutable/List/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/api.cjs +1 -2
- package/_cjs/collection/immutable/Queue/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/constructors.cjs +1 -2
- package/_cjs/collection/immutable/Queue/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/definition.cjs +1 -2
- package/_cjs/collection/immutable/Queue/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Queue/guards.cjs +1 -2
- package/_cjs/collection/immutable/Queue/guards.cjs.map +1 -1
- package/_cjs/collection/immutable/ReadonlyArray/api/chunksOf.cjs +18 -0
- package/_cjs/collection/immutable/ReadonlyArray/api/chunksOf.cjs.map +1 -0
- package/_cjs/collection/immutable/ReadonlyArray/api/splitAt.cjs +15 -0
- package/_cjs/collection/immutable/ReadonlyArray/api/splitAt.cjs.map +1 -0
- package/_cjs/collection/immutable/ReadonlyArray/api/splitWhere.cjs +26 -0
- package/_cjs/collection/immutable/ReadonlyArray/api/splitWhere.cjs.map +1 -0
- package/_cjs/collection/immutable/{ImmutableArray → ReadonlyArray}/api.cjs +562 -538
- package/_cjs/collection/immutable/ReadonlyArray/api.cjs.map +1 -0
- package/_cjs/collection/immutable/ReadonlyArray/constructors.cjs +55 -0
- package/_cjs/collection/immutable/ReadonlyArray/constructors.cjs.map +1 -0
- package/_cjs/collection/immutable/ReadonlyArray/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/{ImmutableArray → ReadonlyArray}/instances.cjs +5 -7
- package/_cjs/collection/immutable/ReadonlyArray/instances.cjs.map +1 -0
- package/_cjs/collection/immutable/{ImmutableArray.cjs → ReadonlyArray.cjs} +8 -19
- package/_cjs/collection/immutable/ReadonlyArray.cjs.map +1 -0
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray/api.cjs +472 -0
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray/api.cjs.map +1 -0
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray/constructors.cjs +79 -0
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray/constructors.cjs.map +1 -0
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray/definition.cjs +2 -0
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray/definition.cjs.map +1 -0
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray/destructors.cjs +49 -0
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray/destructors.cjs.map +1 -0
- package/_cjs/collection/immutable/{ImmutableNonEmptyArray → ReadonlyNonEmptyArray}/instances.cjs +3 -4
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray/instances.cjs.map +1 -0
- package/_cjs/collection/immutable/{ImmutableNonEmptyArray.cjs → ReadonlyNonEmptyArray.cjs} +6 -6
- package/_cjs/collection/immutable/ReadonlyNonEmptyArray.cjs.map +1 -0
- package/_cjs/collection/immutable/RoseTree/api.cjs +1 -2
- package/_cjs/collection/immutable/RoseTree/api.cjs.map +1 -1
- package/_cjs/collection/immutable/RoseTree/definition.cjs +1 -2
- package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/api.cjs +1 -2
- package/_cjs/collection/immutable/SortedMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/SortedMap/iterator.cjs +1 -2
- package/_cjs/collection/immutable/SortedMap/iterator.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/api.cjs +229 -230
- package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/definition.cjs +1 -2
- package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
- package/_cjs/collection/immutable.cjs +0 -4
- package/_cjs/collection/internal.cjs +0 -4
- package/_cjs/collection/mutable/ArrayDeque.cjs +1 -2
- package/_cjs/collection/mutable/ArrayDeque.cjs.map +1 -1
- package/_cjs/collection/mutable/HashMap.cjs +1 -2
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/mutable/HashSet.cjs +1 -2
- package/_cjs/collection/mutable/HashSet.cjs.map +1 -1
- package/_cjs/collection/mutable/ListBuffer.cjs +1 -2
- package/_cjs/collection/mutable/ListBuffer.cjs.map +1 -1
- package/_cjs/collection/mutable.cjs +0 -4
- package/_cjs/collection/weak/IterableWeakMap.cjs +1 -2
- package/_cjs/collection/weak/IterableWeakMap.cjs.map +1 -1
- package/_cjs/collection/weak.cjs +0 -4
- package/_cjs/collection.cjs +0 -4
- package/_cjs/control/Eval/api.cjs +89 -41
- package/_cjs/control/Eval/api.cjs.map +1 -1
- package/_cjs/control/Eval/constructors.cjs +5 -1
- package/_cjs/control/Eval/constructors.cjs.map +1 -1
- package/_cjs/control/Eval/instance.cjs +1 -2
- package/_cjs/control/Eval/instance.cjs.map +1 -1
- package/_cjs/control/Eval/run.cjs +1 -2
- package/_cjs/control/Eval/run.cjs.map +1 -1
- package/_cjs/control/Pure/api.cjs +1 -2
- package/_cjs/control/Pure/api.cjs.map +1 -1
- package/_cjs/control/Pure/definition.cjs +1 -2
- package/_cjs/control/Pure/definition.cjs.map +1 -1
- package/_cjs/control/Pure/instances.cjs +1 -2
- package/_cjs/control/Pure/instances.cjs.map +1 -1
- package/_cjs/control/Pure/runtime.cjs +15 -10
- package/_cjs/control/Pure/runtime.cjs.map +1 -1
- package/_cjs/control.cjs +0 -4
- package/_cjs/data/Byte.cjs +0 -4
- package/_cjs/data/CaseClass.cjs +11 -14
- package/_cjs/data/CaseClass.cjs.map +1 -1
- package/_cjs/data/Cause/api/fold.cjs +33 -34
- package/_cjs/data/Cause/api/fold.cjs.map +1 -1
- package/_cjs/data/Cause/api/isEmpty.cjs +1 -2
- package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
- package/_cjs/data/Cause/api/linearize.cjs +1 -2
- package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
- package/_cjs/data/Cause/api/prettyPrint.cjs +1 -2
- package/_cjs/data/Cause/api/prettyPrint.cjs.map +1 -1
- package/_cjs/data/Cause/api/unified.cjs +1 -2
- package/_cjs/data/Cause/api/unified.cjs.map +1 -1
- package/_cjs/data/Cause/api.cjs +1 -2
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Cause/definition.cjs +1 -2
- package/_cjs/data/Cause/definition.cjs.map +1 -1
- package/_cjs/data/Const/api.cjs +7 -7
- package/_cjs/data/Const/api.cjs.map +1 -1
- package/_cjs/data/Const/instances.cjs +12 -13
- package/_cjs/data/Const/instances.cjs.map +1 -1
- package/_cjs/data/Data.cjs +1 -2
- package/_cjs/data/Data.cjs.map +1 -1
- package/_cjs/data/Date/definition.cjs +0 -4
- package/_cjs/data/Datum/api.cjs +110 -113
- package/_cjs/data/Datum/api.cjs.map +1 -1
- package/_cjs/data/Datum/definition.cjs +1 -2
- package/_cjs/data/Datum/definition.cjs.map +1 -1
- package/_cjs/data/Datum/instances.cjs +1 -2
- package/_cjs/data/Datum/instances.cjs.map +1 -1
- package/_cjs/data/Datum.cjs +39 -0
- package/_cjs/data/Datum.cjs.map +1 -0
- package/_cjs/data/DatumEither/api.cjs +56 -57
- package/_cjs/data/DatumEither/api.cjs.map +1 -1
- package/_cjs/data/Duration/api.cjs +1 -2
- package/_cjs/data/Duration/api.cjs.map +1 -1
- package/_cjs/data/Duration/definition.cjs +1 -2
- package/_cjs/data/Duration/definition.cjs.map +1 -1
- package/_cjs/data/Either/api/align.cjs +1 -2
- package/_cjs/data/Either/api/align.cjs.map +1 -1
- package/_cjs/data/Either/api/alignWith.cjs +1 -2
- package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
- package/_cjs/data/Either/api.cjs +53 -55
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/constructors.cjs +21 -22
- package/_cjs/data/Either/constructors.cjs.map +1 -1
- package/_cjs/data/Either/definition.cjs +1 -2
- package/_cjs/data/Either/definition.cjs.map +1 -1
- package/_cjs/data/Either/instances.cjs +1 -2
- package/_cjs/data/Either/instances.cjs.map +1 -1
- package/_cjs/data/EitherT/api.cjs +28 -29
- package/_cjs/data/EitherT/api.cjs.map +1 -1
- package/_cjs/data/Environment/api.cjs +1 -2
- package/_cjs/data/Environment/api.cjs.map +1 -1
- package/_cjs/data/Environment/definition.cjs +1 -2
- package/_cjs/data/Environment/definition.cjs.map +1 -1
- package/_cjs/data/EnvironmentPatch.cjs +2 -3
- package/_cjs/data/EnvironmentPatch.cjs.map +1 -1
- package/_cjs/data/Eq/api.cjs +189 -5
- package/_cjs/data/Eq/api.cjs.map +1 -1
- package/_cjs/data/Eq/derivations.cjs +10 -21
- package/_cjs/data/Eq/derivations.cjs.map +1 -1
- package/_cjs/data/Equatable/api.cjs +1 -2
- package/_cjs/data/Equatable/api.cjs.map +1 -1
- package/_cjs/data/Equatable/definition.cjs +1 -2
- package/_cjs/data/Equatable/definition.cjs.map +1 -1
- package/_cjs/data/Exit/api.cjs +90 -80
- package/_cjs/data/Exit/api.cjs.map +1 -1
- package/_cjs/data/Exit/constructors.cjs +1 -2
- package/_cjs/data/Exit/constructors.cjs.map +1 -1
- package/_cjs/data/Exit/definition.cjs +1 -2
- package/_cjs/data/Exit/definition.cjs.map +1 -1
- package/_cjs/data/FiberId/api.cjs +1 -2
- package/_cjs/data/FiberId/api.cjs.map +1 -1
- package/_cjs/data/FiberId/definition.cjs +1 -2
- package/_cjs/data/FiberId/definition.cjs.map +1 -1
- package/_cjs/data/Guard/api.cjs +13 -17
- package/_cjs/data/Guard/api.cjs.map +1 -1
- package/_cjs/data/HashEq.cjs +1 -2
- package/_cjs/data/HashEq.cjs.map +1 -1
- package/_cjs/data/Hashable/definition.cjs +1 -2
- package/_cjs/data/Hashable/definition.cjs.map +1 -1
- package/_cjs/data/Hashable/hash.cjs +1 -2
- package/_cjs/data/Hashable/hash.cjs.map +1 -1
- package/_cjs/data/Identity/api.cjs +1 -2
- package/_cjs/data/Identity/api.cjs.map +1 -1
- package/_cjs/data/Identity/definition.cjs +1 -2
- package/_cjs/data/Identity/definition.cjs.map +1 -1
- package/_cjs/data/Identity/instances.cjs +1 -2
- package/_cjs/data/Identity/instances.cjs.map +1 -1
- package/_cjs/data/Interval.cjs +1 -2
- package/_cjs/data/Interval.cjs.map +1 -1
- package/_cjs/data/Intervals.cjs +1 -2
- package/_cjs/data/Intervals.cjs.map +1 -1
- package/_cjs/data/Maybe/api.cjs +73 -60
- package/_cjs/data/Maybe/api.cjs.map +1 -1
- package/_cjs/data/Maybe/constructors.cjs +37 -38
- package/_cjs/data/Maybe/constructors.cjs.map +1 -1
- package/_cjs/data/Maybe/definition.cjs +1 -2
- package/_cjs/data/Maybe/definition.cjs.map +1 -1
- package/_cjs/data/Maybe/instances.cjs +1 -2
- package/_cjs/data/Maybe/instances.cjs.map +1 -1
- package/_cjs/data/Newtype.cjs +1 -2
- package/_cjs/data/Newtype.cjs.map +1 -1
- package/_cjs/data/Ord/api.cjs +1 -2
- package/_cjs/data/Ord/api.cjs.map +1 -1
- package/_cjs/data/Ord/definition.cjs +1 -2
- package/_cjs/data/Ord/definition.cjs.map +1 -1
- package/_cjs/data/Ord/instances.cjs +1 -2
- package/_cjs/data/Ord/instances.cjs.map +1 -1
- package/_cjs/data/Predicate/definition.cjs +0 -4
- package/_cjs/data/Predicate/match.cjs +0 -4
- package/_cjs/data/Refinement/definition.cjs +0 -4
- package/_cjs/data/Showable/definition.cjs +1 -2
- package/_cjs/data/Showable/definition.cjs.map +1 -1
- package/_cjs/data/Showable/show.cjs +1 -2
- package/_cjs/data/Showable/show.cjs.map +1 -1
- package/_cjs/data/Showable/styles.cjs +1 -2
- package/_cjs/data/Showable/styles.cjs.map +1 -1
- package/_cjs/data/Showable/util.cjs +1 -2
- package/_cjs/data/Showable/util.cjs.map +1 -1
- package/_cjs/data/Struct/api.cjs +5 -7
- package/_cjs/data/Struct/api.cjs.map +1 -1
- package/_cjs/data/Struct/definition.cjs +1 -2
- package/_cjs/data/Struct/definition.cjs.map +1 -1
- package/_cjs/data/Tag/constructors.cjs +1 -2
- package/_cjs/data/Tag/constructors.cjs.map +1 -1
- package/_cjs/data/Tag/definition.cjs +1 -2
- package/_cjs/data/Tag/definition.cjs.map +1 -1
- package/_cjs/data/These/api.cjs +86 -87
- package/_cjs/data/These/api.cjs.map +1 -1
- package/_cjs/data/These/constructors.cjs +1 -2
- package/_cjs/data/These/constructors.cjs.map +1 -1
- package/_cjs/data/These/definition.cjs +1 -2
- package/_cjs/data/These/definition.cjs.map +1 -1
- package/_cjs/data/These/destructors.cjs +1 -2
- package/_cjs/data/These/destructors.cjs.map +1 -1
- package/_cjs/data/These/instances.cjs +1 -2
- package/_cjs/data/These/instances.cjs.map +1 -1
- package/_cjs/data/Trace/api.cjs +1 -2
- package/_cjs/data/Trace/api.cjs.map +1 -1
- package/_cjs/data/Trace/constructors.cjs +1 -2
- package/_cjs/data/Trace/constructors.cjs.map +1 -1
- package/_cjs/data/Zipped.cjs +1 -2
- package/_cjs/data/Zipped.cjs.map +1 -1
- package/_cjs/data/bigint/definition.cjs +0 -4
- package/_cjs/data/bigint/instances.cjs +1 -2
- package/_cjs/data/bigint/instances.cjs.map +1 -1
- package/_cjs/data/boolean/definition.cjs +0 -4
- package/_cjs/data/boolean/instances.cjs +1 -2
- package/_cjs/data/boolean/instances.cjs.map +1 -1
- package/_cjs/data/exceptions/IOError.cjs +1 -2
- package/_cjs/data/exceptions/IOError.cjs.map +1 -1
- package/_cjs/data/exceptions/InterruptedException.cjs +1 -2
- package/_cjs/data/exceptions/InterruptedException.cjs.map +1 -1
- package/_cjs/data/exceptions/RuntimeError.cjs +0 -4
- package/_cjs/data/function/definition.cjs +0 -4
- package/_cjs/data/number/definition.cjs +0 -4
- package/_cjs/data/number/instances.cjs +1 -2
- package/_cjs/data/number/instances.cjs.map +1 -1
- package/_cjs/data/object/definition.cjs +0 -4
- package/_cjs/data/object/instances.cjs +1 -2
- package/_cjs/data/object/instances.cjs.map +1 -1
- package/_cjs/data/string/api.cjs +1 -2
- package/_cjs/data/string/api.cjs.map +1 -1
- package/_cjs/data/string/definition.cjs +0 -4
- package/_cjs/data/string/instances.cjs +1 -2
- package/_cjs/data/string/instances.cjs.map +1 -1
- package/_cjs/data.cjs +0 -4
- package/_cjs/global.cjs +0 -4
- package/_cjs/index.cjs +0 -4
- package/_cjs/internal/Stack.cjs +7 -2
- package/_cjs/internal/Stack.cjs.map +1 -1
- package/_cjs/json.cjs +0 -4
- package/_cjs/optics/At/api.cjs +1 -2
- package/_cjs/optics/At/api.cjs.map +1 -1
- package/_cjs/optics/At/definition.cjs +1 -2
- package/_cjs/optics/At/definition.cjs.map +1 -1
- package/_cjs/optics/Index/api.cjs +3 -4
- package/_cjs/optics/Index/api.cjs.map +1 -1
- package/_cjs/optics/Iso/api.cjs +1 -2
- package/_cjs/optics/Iso/api.cjs.map +1 -1
- package/_cjs/optics/Iso/definition.cjs +1 -2
- package/_cjs/optics/Iso/definition.cjs.map +1 -1
- package/_cjs/optics/Lens/api.cjs +2 -3
- package/_cjs/optics/Lens/api.cjs.map +1 -1
- package/_cjs/optics/Lens/definition.cjs +1 -2
- package/_cjs/optics/Lens/definition.cjs.map +1 -1
- package/_cjs/optics/Optional/api/compose.cjs +1 -2
- package/_cjs/optics/Optional/api/compose.cjs.map +1 -1
- package/_cjs/optics/Optional/api/focus.cjs +1 -2
- package/_cjs/optics/Optional/api/focus.cjs.map +1 -1
- package/_cjs/optics/Optional/api.cjs +1 -2
- package/_cjs/optics/Optional/api.cjs.map +1 -1
- package/_cjs/optics/Optional/definition.cjs +1 -2
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Prism/api/compose.cjs +1 -2
- package/_cjs/optics/Prism/api/compose.cjs.map +1 -1
- package/_cjs/optics/Prism/api/focus.cjs +1 -2
- package/_cjs/optics/Prism/api/focus.cjs.map +1 -1
- package/_cjs/optics/Prism/api/fromNullable.cjs +1 -2
- package/_cjs/optics/Prism/api/fromNullable.cjs.map +1 -1
- package/_cjs/optics/Prism/api/just.cjs +1 -2
- package/_cjs/optics/Prism/api/just.cjs.map +1 -1
- package/_cjs/optics/Prism/definition.cjs +1 -2
- package/_cjs/optics/Prism/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/compose.cjs +1 -2
- package/_cjs/optics/Traversal/api/compose.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/focus.cjs +1 -2
- package/_cjs/optics/Traversal/api/focus.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/fromTraversable.cjs +1 -2
- package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
- package/_cjs/optics/Traversal/definition.cjs +1 -2
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- package/_cjs/optics.cjs +0 -4
- package/_cjs/typeclass/ApplicativeExcept.cjs +1 -2
- package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
- package/_cjs/typeclass/Apply.cjs +1 -14
- package/_cjs/typeclass/Apply.cjs.map +1 -1
- package/_cjs/typeclass/Chain.cjs +1 -2
- package/_cjs/typeclass/Chain.cjs.map +1 -1
- package/_cjs/typeclass/Fail.cjs +0 -4
- package/_cjs/typeclass/MonadExcept.cjs +1 -2
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
- package/_cjs/typeclass/Monoid.cjs +1 -2
- package/_cjs/typeclass/Monoid.cjs.map +1 -1
- package/_cjs/typeclass/Nil.cjs +0 -4
- package/_cjs/typeclass/Semialign.cjs +1 -2
- package/_cjs/typeclass/Semialign.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/api.cjs +1 -2
- package/_cjs/typeclass/Semigroup/api.cjs.map +1 -1
- package/_cjs/typeclass/Semigroup/derivations.cjs +1 -2
- package/_cjs/typeclass/Semigroup/derivations.cjs.map +1 -1
- package/_cjs/typeclass/Witherable.cjs +1 -2
- package/_cjs/typeclass/Witherable.cjs.map +1 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs +1 -2
- package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/builtin/Symbol.cjs +0 -4
- package/_cjs/types/extractions.cjs +0 -4
- package/_cjs/types/utility.cjs +0 -4
- package/_cjs/util/AnsiFormat.cjs +1 -2
- package/_cjs/util/AnsiFormat.cjs.map +1 -1
- package/_cjs/util/assert.cjs +1 -1
- package/_cjs/util/assert.cjs.map +1 -1
- package/_cjs/util/pattern.cjs.map +1 -1
- package/_cjs/util/rand/distribution/Distribution.cjs +0 -4
- package/_cjs/util/rand/generator/RandomGenerator.cjs.map +1 -1
- package/_cjs/util.cjs +0 -4
- package/_mjs/collection/AsyncIterable/api.mjs +366 -0
- package/_mjs/collection/AsyncIterable/api.mjs.map +1 -0
- package/_mjs/collection/AsyncIterable/definition.mjs +2 -0
- package/_mjs/collection/AsyncIterable/definition.mjs.map +1 -0
- package/_mjs/collection/AsyncIterable.mjs +4 -0
- package/_mjs/collection/AsyncIterable.mjs.map +1 -0
- package/_mjs/collection/Iterable/api.mjs +175 -134
- package/_mjs/collection/Iterable/api.mjs.map +1 -1
- package/_mjs/collection/Iterable/constructors.mjs.map +1 -1
- package/_mjs/collection/compat/ArrayLike/definition.mjs +1 -1
- package/_mjs/collection/compat/Map/definition.mjs +1 -1
- package/_mjs/collection/compat/Set/definition.mjs +1 -1
- package/_mjs/collection/compat.mjs +1 -1
- package/_mjs/collection/immutable/Conc/constructors.mjs +2 -2
- package/_mjs/collection/immutable/Conc/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/List/api.mjs +2 -2
- package/_mjs/collection/immutable/List/api.mjs.map +1 -1
- package/_mjs/collection/immutable/{ImmutableArray → ReadonlyArray}/api/chunksOf.mjs +3 -3
- package/_mjs/collection/immutable/ReadonlyArray/api/chunksOf.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyArray/api/splitAt.mjs +9 -0
- package/_mjs/collection/immutable/ReadonlyArray/api/splitAt.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyArray/api/splitWhere.mjs +19 -0
- package/_mjs/collection/immutable/ReadonlyArray/api/splitWhere.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyArray/api.mjs +1302 -0
- package/_mjs/collection/immutable/ReadonlyArray/api.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyArray/constructors.mjs +44 -0
- package/_mjs/collection/immutable/ReadonlyArray/constructors.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyArray/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/{ImmutableArray → ReadonlyArray}/instances.mjs +4 -5
- package/_mjs/collection/immutable/ReadonlyArray/instances.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyArray.mjs +11 -0
- package/_mjs/collection/immutable/ReadonlyArray.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray/api.mjs +433 -0
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray/api.mjs.map +1 -0
- package/_mjs/collection/immutable/{ImmutableNonEmptyArray → ReadonlyNonEmptyArray}/constructors.mjs +16 -15
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray/constructors.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray/definition.mjs +2 -0
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray/definition.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray/destructors.mjs +41 -0
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray/destructors.mjs.map +1 -0
- package/_mjs/collection/immutable/{ImmutableNonEmptyArray → ReadonlyNonEmptyArray}/instances.mjs +2 -2
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray/instances.mjs.map +1 -0
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray.mjs +7 -0
- package/_mjs/collection/immutable/ReadonlyNonEmptyArray.mjs.map +1 -0
- package/_mjs/collection/immutable/Vector/api.mjs +224 -224
- package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
- package/_mjs/collection/immutable.mjs +1 -1
- package/_mjs/collection/internal.mjs +1 -1
- package/_mjs/collection/mutable.mjs +1 -1
- package/_mjs/collection/weak.mjs +1 -1
- package/_mjs/collection.mjs +1 -1
- package/_mjs/control/Eval/api.mjs +83 -15
- package/_mjs/control/Eval/api.mjs.map +1 -1
- package/_mjs/control/Eval/constructors.mjs +4 -0
- package/_mjs/control/Eval/constructors.mjs.map +1 -1
- package/_mjs/control/Pure/runtime.mjs +14 -8
- package/_mjs/control/Pure/runtime.mjs.map +1 -1
- package/_mjs/control.mjs +1 -1
- package/_mjs/data/Byte.mjs +1 -1
- package/_mjs/data/CaseClass.mjs +10 -12
- package/_mjs/data/CaseClass.mjs.map +1 -1
- package/_mjs/data/Cause/api/fold.mjs +32 -32
- package/_mjs/data/Cause/api/fold.mjs.map +1 -1
- package/_mjs/data/Const/api.mjs +7 -7
- package/_mjs/data/Const/api.mjs.map +1 -1
- package/_mjs/data/Const/instances.mjs +11 -11
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/Date/definition.mjs +1 -1
- package/_mjs/data/Datum/api.mjs +107 -108
- package/_mjs/data/Datum/api.mjs.map +1 -1
- package/_mjs/data/Datum.mjs +5 -0
- package/_mjs/data/Datum.mjs.map +1 -0
- package/_mjs/data/DatumEither/api.mjs +53 -53
- package/_mjs/data/DatumEither/api.mjs.map +1 -1
- package/_mjs/data/Either/api.mjs +42 -42
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/constructors.mjs +20 -20
- package/_mjs/data/Either/constructors.mjs.map +1 -1
- package/_mjs/data/EitherT/api.mjs +27 -27
- package/_mjs/data/EitherT/api.mjs.map +1 -1
- package/_mjs/data/Environment/api.mjs.map +1 -1
- package/_mjs/data/EnvironmentPatch.mjs +1 -1
- package/_mjs/data/Eq/api.mjs +175 -3
- package/_mjs/data/Eq/api.mjs.map +1 -1
- package/_mjs/data/Eq/derivations.mjs +8 -19
- package/_mjs/data/Eq/derivations.mjs.map +1 -1
- package/_mjs/data/Exit/api.mjs +88 -78
- package/_mjs/data/Exit/api.mjs.map +1 -1
- package/_mjs/data/Guard/api.mjs +12 -15
- package/_mjs/data/Guard/api.mjs.map +1 -1
- package/_mjs/data/Maybe/api.mjs +71 -58
- package/_mjs/data/Maybe/api.mjs.map +1 -1
- package/_mjs/data/Maybe/constructors.mjs +36 -36
- package/_mjs/data/Maybe/constructors.mjs.map +1 -1
- package/_mjs/data/Predicate/definition.mjs +1 -1
- package/_mjs/data/Predicate/match.mjs +1 -1
- package/_mjs/data/Refinement/definition.mjs +1 -1
- package/_mjs/data/Showable/util.mjs.map +1 -1
- package/_mjs/data/Struct/api.mjs +4 -5
- package/_mjs/data/Struct/api.mjs.map +1 -1
- package/_mjs/data/These/api.mjs +85 -85
- package/_mjs/data/These/api.mjs.map +1 -1
- package/_mjs/data/bigint/definition.mjs +1 -1
- package/_mjs/data/boolean/definition.mjs +1 -1
- package/_mjs/data/exceptions/RuntimeError.mjs +1 -1
- package/_mjs/data/function/definition.mjs +1 -1
- package/_mjs/data/number/definition.mjs +1 -1
- package/_mjs/data/object/definition.mjs +1 -1
- package/_mjs/data/string/definition.mjs +1 -1
- package/_mjs/data.mjs +1 -1
- package/_mjs/global.mjs +1 -1
- package/_mjs/index.mjs +1 -1
- package/_mjs/internal/Stack.mjs +7 -2
- package/_mjs/internal/Stack.mjs.map +1 -1
- package/_mjs/json.mjs +1 -1
- package/_mjs/optics/Index/api.mjs +2 -2
- package/_mjs/optics/Index/api.mjs.map +1 -1
- package/_mjs/optics/Lens/api.mjs +1 -1
- package/_mjs/optics.mjs +1 -1
- package/_mjs/typeclass/Apply.mjs +0 -12
- package/_mjs/typeclass/Apply.mjs.map +1 -1
- package/_mjs/typeclass/Fail.mjs +1 -1
- package/_mjs/typeclass/Nil.mjs +1 -1
- package/_mjs/typeclass/builtin/Symbol.mjs +1 -1
- package/_mjs/types/extractions.mjs +1 -1
- package/_mjs/types/utility.mjs +1 -1
- package/_mjs/util/assert.mjs +1 -1
- package/_mjs/util/assert.mjs.map +1 -1
- package/_mjs/util/pattern.mjs.map +1 -1
- package/_mjs/util/rand/distribution/Distribution.mjs +1 -1
- package/_mjs/util/rand/generator/RandomGenerator.mjs.map +1 -1
- package/_mjs/util.mjs +1 -1
- package/_src/collection/AsyncIterable/api.ts +369 -0
- package/_src/collection/AsyncIterable/definition.ts +7 -0
- package/_src/collection/AsyncIterable.ts +4 -0
- package/_src/collection/Iterable/api.ts +215 -162
- package/_src/collection/Iterable/constructors.ts +0 -2
- package/_src/collection/compat/ArrayLike/definition.ts +2 -2
- package/_src/collection/compat.ts +0 -1
- package/_src/collection/immutable/Conc/constructors.ts +1 -2
- package/_src/collection/immutable/Conc/definition.ts +7 -6
- package/_src/collection/immutable/List/api.ts +2 -2
- package/_src/collection/immutable/ReadonlyArray/api/chunksOf.ts +8 -0
- package/_src/collection/immutable/ReadonlyArray/api/splitAt.ts +8 -0
- package/_src/collection/immutable/{ImmutableArray → ReadonlyArray}/api/splitWhere.ts +3 -3
- package/_src/collection/immutable/ReadonlyArray/api.ts +1536 -0
- package/_src/collection/immutable/ReadonlyArray/constructors.ts +47 -0
- package/_src/collection/{compat/Array → immutable/ReadonlyArray}/definition.ts +8 -0
- package/_src/collection/immutable/{ImmutableArray → ReadonlyArray}/instances.ts +22 -22
- package/_src/collection/immutable/ReadonlyArray.ts +12 -0
- package/_src/collection/immutable/ReadonlyNonEmptyArray/api.ts +481 -0
- package/_src/collection/immutable/ReadonlyNonEmptyArray/constructors.ts +76 -0
- package/_src/collection/immutable/ReadonlyNonEmptyArray/definition.ts +22 -0
- package/_src/collection/immutable/ReadonlyNonEmptyArray/destructors.ts +41 -0
- package/_src/collection/immutable/{ImmutableNonEmptyArray → ReadonlyNonEmptyArray}/instances.ts +13 -13
- package/_src/collection/immutable/ReadonlyNonEmptyArray.ts +7 -0
- package/_src/collection/immutable/Vector/api.ts +310 -309
- package/_src/collection/immutable.ts +11 -11
- package/_src/collection.ts +6 -5
- package/_src/control/Eval/api.ts +109 -16
- package/_src/control/Eval/constructors.ts +5 -0
- package/_src/control/Pure/runtime.ts +8 -2
- package/_src/data/CaseClass.ts +5 -5
- package/_src/data/Cause/api/fold.ts +2 -2
- package/_src/data/Const/api.ts +8 -8
- package/_src/data/Const/instances.ts +10 -10
- package/_src/data/Datum/api.ts +113 -113
- package/_src/data/Datum.ts +5 -0
- package/_src/data/DatumEither/api.ts +41 -43
- package/_src/data/Either/api.ts +47 -47
- package/_src/data/Either/constructors.ts +14 -16
- package/_src/data/EitherT/api.ts +111 -110
- package/_src/data/Environment/api.ts +6 -3
- package/_src/data/Eq/api.ts +193 -4
- package/_src/data/Eq/derivations.ts +12 -19
- package/_src/data/Exit/api.ts +89 -77
- package/_src/data/Guard/api.ts +11 -11
- package/_src/data/Maybe/api.ts +82 -73
- package/_src/data/Maybe/constructors.ts +34 -36
- package/_src/data/Showable/util.ts +1 -1
- package/_src/data/Struct/api.ts +1 -1
- package/_src/data/These/api.ts +93 -92
- package/_src/data.ts +1 -0
- package/_src/global.ts +7 -12
- package/_src/internal/Stack.ts +6 -2
- package/_src/optics/Index/api.ts +1 -1
- package/_src/typeclass/Apply.ts +6 -18
- package/_src/util/assert.ts +2 -2
- package/_src/util/pattern.ts +8 -90
- package/_src/util/rand/generator/RandomGenerator.ts +1 -0
- package/collection/AsyncIterable/api.d.ts +71 -0
- package/collection/AsyncIterable/definition.d.ts +9 -0
- package/collection/AsyncIterable.d.ts +2 -0
- package/collection/Iterable/api/traverseConc.d.ts +1 -1
- package/collection/Iterable/api.d.ts +40 -25
- package/collection/compat/ArrayLike/definition.d.ts +2 -2
- package/collection/compat.d.ts +0 -1
- package/collection/immutable/Conc/definition.d.ts +1 -1
- package/collection/immutable/ReadonlyArray/api/chunksOf.d.ts +5 -0
- package/collection/immutable/ReadonlyArray/api/splitAt.d.ts +5 -0
- package/collection/immutable/ReadonlyArray/api/splitWhere.d.ts +6 -0
- package/collection/immutable/ReadonlyArray/api.d.ts +614 -0
- package/collection/immutable/ReadonlyArray/constructors.d.ts +30 -0
- package/collection/{compat/Array → immutable/ReadonlyArray}/definition.d.ts +8 -0
- package/collection/immutable/ReadonlyArray/instances.d.ts +87 -0
- package/collection/immutable/ReadonlyArray.d.ts +7 -0
- package/collection/immutable/ReadonlyNonEmptyArray/api.d.ts +186 -0
- package/collection/immutable/ReadonlyNonEmptyArray/constructors.d.ts +45 -0
- package/collection/immutable/ReadonlyNonEmptyArray/definition.d.ts +21 -0
- package/collection/immutable/ReadonlyNonEmptyArray/destructors.d.ts +31 -0
- package/collection/immutable/ReadonlyNonEmptyArray/instances.d.ts +52 -0
- package/collection/immutable/ReadonlyNonEmptyArray.d.ts +5 -0
- package/collection/immutable/Vector/api.d.ts +93 -93
- package/collection/immutable.d.ts +2 -2
- package/collection.d.ts +1 -0
- package/control/Eval/api.d.ts +27 -5
- package/control/Eval/constructors.d.ts +5 -0
- package/data/CaseClass.d.ts +2 -3
- package/data/Const/api.d.ts +5 -5
- package/data/Const/instances.d.ts +4 -4
- package/data/Datum/api.d.ts +64 -64
- package/data/Datum.d.ts +3 -0
- package/data/DatumEither/api.d.ts +25 -25
- package/data/Either/api.d.ts +24 -24
- package/data/Either/constructors.d.ts +12 -12
- package/data/EitherT/api.d.ts +16 -16
- package/data/Environment/api.d.ts +4 -2
- package/data/Eq/api.d.ts +89 -2
- package/data/Eq/derivations.d.ts +7 -0
- package/data/Exit/api.d.ts +43 -37
- package/data/Guard/api.d.ts +7 -8
- package/data/Maybe/api.d.ts +38 -33
- package/data/Maybe/constructors.d.ts +16 -16
- package/data/Showable/util.d.ts +1 -1
- package/data/These/api.d.ts +26 -26
- package/data.d.ts +1 -0
- package/global.d.ts +4 -8
- package/internal/Stack.d.ts +2 -0
- package/optics/Lens/api.d.ts +1 -1
- package/optics/Traversal/api/fromTraversable.d.ts +1 -1
- package/package.json +3 -3
- package/typeclass/Apply.d.ts +0 -6
- package/util/assert.d.ts +1 -1
- package/_cjs/collection/compat/Array/api.cjs +0 -142
- package/_cjs/collection/compat/Array/api.cjs.map +0 -1
- package/_cjs/collection/compat/Array/definition.cjs.map +0 -1
- package/_cjs/collection/compat/Array.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs +0 -19
- package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs +0 -18
- package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs +0 -18
- package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs +0 -28
- package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs +0 -59
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs +0 -44
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableArray.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +0 -474
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs +0 -79
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs +0 -36
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs +0 -53
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +0 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs.map +0 -1
- package/_cjs/control/Eval/api/sequenceArray.cjs +0 -17
- package/_cjs/control/Eval/api/sequenceArray.cjs.map +0 -1
- package/_mjs/collection/compat/Array/api.mjs +0 -125
- package/_mjs/collection/compat/Array/api.mjs.map +0 -1
- package/_mjs/collection/compat/Array/definition.mjs.map +0 -1
- package/_mjs/collection/compat/Array.mjs +0 -4
- package/_mjs/collection/compat/Array.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs +0 -10
- package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs +0 -10
- package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs +0 -20
- package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +0 -1284
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs +0 -46
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs +0 -35
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableArray.mjs +0 -12
- package/_mjs/collection/immutable/ImmutableArray.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +0 -437
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs +0 -25
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs +0 -43
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +0 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs +0 -7
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs.map +0 -1
- package/_mjs/control/Eval/api/sequenceArray.mjs +0 -9
- package/_mjs/control/Eval/api/sequenceArray.mjs.map +0 -1
- package/_src/collection/compat/Array/api.ts +0 -134
- package/_src/collection/compat/Array.ts +0 -4
- package/_src/collection/immutable/ImmutableArray/api/chunksOf.ts +0 -8
- package/_src/collection/immutable/ImmutableArray/api/slice.ts +0 -8
- package/_src/collection/immutable/ImmutableArray/api/splitAt.ts +0 -8
- package/_src/collection/immutable/ImmutableArray/api.ts +0 -1526
- package/_src/collection/immutable/ImmutableArray/constructors.ts +0 -47
- package/_src/collection/immutable/ImmutableArray/definition.ts +0 -48
- package/_src/collection/immutable/ImmutableArray.ts +0 -13
- package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +0 -483
- package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +0 -83
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +0 -47
- package/_src/collection/immutable/ImmutableNonEmptyArray/destructors.ts +0 -41
- package/_src/collection/immutable/ImmutableNonEmptyArray.ts +0 -7
- package/_src/control/Eval/api/sequenceArray.ts +0 -6
- package/collection/compat/Array/api.d.ts +0 -62
- package/collection/compat/Array.d.ts +0 -2
- package/collection/immutable/ImmutableArray/api/chunksOf.d.ts +0 -6
- package/collection/immutable/ImmutableArray/api/slice.d.ts +0 -6
- package/collection/immutable/ImmutableArray/api/splitAt.d.ts +0 -6
- package/collection/immutable/ImmutableArray/api/splitWhere.d.ts +0 -7
- package/collection/immutable/ImmutableArray/api.d.ts +0 -602
- package/collection/immutable/ImmutableArray/constructors.d.ts +0 -32
- package/collection/immutable/ImmutableArray/definition.d.ts +0 -34
- package/collection/immutable/ImmutableArray/instances.d.ts +0 -87
- package/collection/immutable/ImmutableArray.d.ts +0 -8
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +0 -186
- package/collection/immutable/ImmutableNonEmptyArray/constructors.d.ts +0 -46
- package/collection/immutable/ImmutableNonEmptyArray/definition.d.ts +0 -40
- package/collection/immutable/ImmutableNonEmptyArray/destructors.d.ts +0 -32
- package/collection/immutable/ImmutableNonEmptyArray/instances.d.ts +0 -52
- package/collection/immutable/ImmutableNonEmptyArray.d.ts +0 -5
- package/control/Eval/api/sequenceArray.d.ts +0 -6
- /package/_cjs/collection/{compat/Array → immutable/ReadonlyArray}/definition.cjs +0 -0
- /package/_mjs/collection/{compat/Array → immutable/ReadonlyArray}/definition.mjs +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Vector } from "@fncts/base/collection/immutable/Vector";
|
2
|
+
import { Refinement, RefinementWithIndex } from "@fncts/base/data/Refinement/definition";
|
3
|
+
import { Predicate, PredicateWithIndex } from "@fncts/base/data/Predicate/definition";
|
2
4
|
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
3
|
-
import { RefinementWithIndex, Refinement } from "@fncts/base/data/Refinement/definition";
|
4
|
-
import { PredicateWithIndex, Predicate } from "@fncts/base/data/Predicate/definition";
|
5
5
|
import { List } from "@fncts/base/collection/immutable/List/definition";
|
6
6
|
import { HKT } from "@fncts/typelevel/HKT";
|
7
7
|
import type { MutableVector, VectorF } from "@fncts/base/collection/immutable/Vector/definition";
|
@@ -16,21 +16,19 @@ import type * as P from "@fncts/base/typeclass";
|
|
16
16
|
*/
|
17
17
|
export declare function append<A>(a: A): (self: Vector<A>) => Vector<A>;
|
18
18
|
/**
|
19
|
-
*
|
20
|
-
* @tsplus
|
21
|
-
*/
|
22
|
-
export declare function filterMapWithIndex<A, B>(f: (i: number, a: A) => Maybe<B>): (self: Vector<A>) => Vector<B>;
|
23
|
-
/**
|
24
|
-
* @tsplus pipeable fncts.Vector filterMap
|
19
|
+
* Splits the Vector into chunks of the given size.
|
20
|
+
* @tsplus pipeable fncts.Vector chunksOf
|
25
21
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
26
22
|
*/
|
27
|
-
export declare function
|
23
|
+
export declare function chunksOf(size: number): <A>(self: Vector<A>) => Vector<Vector<A>>;
|
28
24
|
/**
|
29
|
-
*
|
25
|
+
* Concatenates two Vectors.
|
26
|
+
* @complexity O(log(n))
|
27
|
+
* @tsplus pipeable fncts.Vector concat
|
28
|
+
* @tsplus pipeable-operator fncts.Vector + 1
|
30
29
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
31
30
|
*/
|
32
|
-
export declare function
|
33
|
-
export declare function filterWithIndex<A>(predicate: PredicateWithIndex<number, A>): (self: Vector<A>) => Vector<A>;
|
31
|
+
export declare function concat<B>(that: Vector<B>): <A>(self: Vector<A>) => Vector<A | B>;
|
34
32
|
/**
|
35
33
|
* @tsplus pipeable fncts.Vector filter
|
36
34
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
@@ -38,26 +36,28 @@ export declare function filterWithIndex<A>(predicate: PredicateWithIndex<number,
|
|
38
36
|
export declare function filter<A, B extends A>(refinement: Refinement<A, B>): (self: Vector<A>) => Vector<B>;
|
39
37
|
export declare function filter<A>(predicate: Predicate<A>): (self: Vector<A>) => Vector<A>;
|
40
38
|
/**
|
41
|
-
*
|
42
|
-
* Vectors together.
|
43
|
-
* @tsplus pipeable fncts.Vector flatMap
|
39
|
+
* @tsplus pipeable fncts.Vector filterMap
|
44
40
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
45
41
|
*/
|
46
|
-
export declare function
|
42
|
+
export declare function filterMap<A, B>(f: (a: A) => Maybe<B>): (self: Vector<A>) => Vector<B>;
|
47
43
|
/**
|
48
|
-
*
|
49
|
-
* @tsplus pipeable fncts.Vector chunksOf
|
44
|
+
* @tsplus pipeable fncts.Vector filterMapWithIndex
|
50
45
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
51
46
|
*/
|
52
|
-
export declare function
|
47
|
+
export declare function filterMapWithIndex<A, B>(f: (i: number, a: A) => Maybe<B>): (self: Vector<A>) => Vector<B>;
|
53
48
|
/**
|
54
|
-
*
|
55
|
-
* @complexity O(log(n))
|
56
|
-
* @tsplus pipeable fncts.Vector concat
|
57
|
-
* @tsplus pipeable-operator fncts.Vector + 1
|
49
|
+
* @tsplus pipeable fncts.Vector filterWithIndex
|
58
50
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
59
51
|
*/
|
60
|
-
export declare function
|
52
|
+
export declare function filterWithIndex<A, B extends A>(refinement: RefinementWithIndex<number, A, B>): (self: Vector<A>) => Vector<B>;
|
53
|
+
export declare function filterWithIndex<A>(predicate: PredicateWithIndex<number, A>): (self: Vector<A>) => Vector<A>;
|
54
|
+
/**
|
55
|
+
* Maps a function over a Vector and concatenates all the resulting
|
56
|
+
* Vectors together.
|
57
|
+
* @tsplus pipeable fncts.Vector flatMap
|
58
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
59
|
+
*/
|
60
|
+
export declare function flatMap<A, B>(f: (a: A) => Vector<B>): (self: Vector<A>) => Vector<B>;
|
61
61
|
/**
|
62
62
|
* Returns `true` if the Vector contains the specified element.
|
63
63
|
* Otherwise it returns `false`.
|
@@ -109,22 +109,6 @@ export declare function dropWhile<A>(predicate: Predicate<A>): (self: Vector<A>)
|
|
109
109
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
110
110
|
*/
|
111
111
|
export declare function elem<A>(a: A, /** @tsplus auto */ E: Eq<A>): (self: Vector<A>) => boolean;
|
112
|
-
/**
|
113
|
-
* Returns true if the two Vectors are equivalent.
|
114
|
-
* @complexity O(n)
|
115
|
-
* @tsplus pipeable fncts.Vector equals
|
116
|
-
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
117
|
-
*/
|
118
|
-
export declare function equals<A>(that: Vector<A>): (self: Vector<A>) => boolean;
|
119
|
-
/**
|
120
|
-
* Returns `true` if and only if the predicate function returns `true`
|
121
|
-
* for all elements in the given Vector.
|
122
|
-
* @complexity O(n)
|
123
|
-
* @tsplus pipeable fncts.Vector every
|
124
|
-
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
125
|
-
*/
|
126
|
-
export declare function every<A, B extends A>(refinement: Refinement<A, B>): (self: Vector<A>) => self is Vector<B>;
|
127
|
-
export declare function every<A>(predicate: Predicate<A>): (self: Vector<A>) => boolean;
|
128
112
|
/**
|
129
113
|
* Creates an empty Vector.
|
130
114
|
* @complexity O(1)
|
@@ -138,13 +122,21 @@ export declare function empty<A = never>(): Vector<A>;
|
|
138
122
|
*/
|
139
123
|
export declare function emptyPushable<A = never>(): MutableVector<A>;
|
140
124
|
/**
|
141
|
-
* Returns true if
|
142
|
-
* which the predicate returns true.
|
125
|
+
* Returns true if the two Vectors are equivalent.
|
143
126
|
* @complexity O(n)
|
144
|
-
* @tsplus pipeable fncts.Vector
|
127
|
+
* @tsplus pipeable fncts.Vector equals
|
145
128
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
146
129
|
*/
|
147
|
-
export declare function
|
130
|
+
export declare function equals<A>(that: Vector<A>): (self: Vector<A>) => boolean;
|
131
|
+
/**
|
132
|
+
* Returns `true` if and only if the predicate function returns `true`
|
133
|
+
* for all elements in the given Vector.
|
134
|
+
* @complexity O(n)
|
135
|
+
* @tsplus pipeable fncts.Vector every
|
136
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
137
|
+
*/
|
138
|
+
export declare function every<A, B extends A>(refinement: Refinement<A, B>): (self: Vector<A>) => self is Vector<B>;
|
139
|
+
export declare function every<A>(predicate: Predicate<A>): (self: Vector<A>) => boolean;
|
148
140
|
/**
|
149
141
|
* Returns the _first_ element for which the predicate returns `true`.
|
150
142
|
* If no such element is found the function returns `undefined`.
|
@@ -187,34 +179,22 @@ export declare function findLastIndex<A>(predicate: Predicate<A>): (self: Vector
|
|
187
179
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
188
180
|
*/
|
189
181
|
export declare function flatten<A>(self: Vector<Vector<A>>): Vector<A>;
|
190
|
-
/**
|
191
|
-
* Converts an array, an array-like, or an iterable into a Vector.
|
192
|
-
* @complexity O(n)
|
193
|
-
* @tsplus static fncts.VectorOps from
|
194
|
-
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
195
|
-
*/
|
196
|
-
export declare function from<A>(sequence: A[] | ArrayLike<A> | Iterable<A>): Vector<A>;
|
197
182
|
/**
|
198
183
|
* Folds a function over a Vector. Left-associative.
|
199
184
|
* @tsplus pipeable fncts.Vector foldLeft
|
200
185
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
201
186
|
*/
|
202
187
|
export declare function foldLeft<A, B>(initial: B, f: (acc: B, a: A) => B): (self: Vector<A>) => B;
|
203
|
-
/**
|
204
|
-
* @tsplus pipeable fncts.Vector foldLeftWithIndex
|
205
|
-
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
206
|
-
*/
|
207
|
-
export declare function foldLeftWithIndex<A, B>(b: B, f: (i: number, b: B, a: A) => B): (self: Vector<A>) => B;
|
208
188
|
/**
|
209
189
|
* @tsplus pipeable fncts.Vector foldLeftWhile
|
210
190
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
211
191
|
*/
|
212
192
|
export declare function foldLeftWhile<A, B>(b: B, cont: Predicate<B>, f: (i: number, b: B, a: A) => B): (self: Vector<A>) => B;
|
213
193
|
/**
|
214
|
-
* @tsplus pipeable fncts.Vector
|
194
|
+
* @tsplus pipeable fncts.Vector foldLeftWithIndex
|
215
195
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
216
196
|
*/
|
217
|
-
export declare function
|
197
|
+
export declare function foldLeftWithIndex<A, B>(b: B, f: (i: number, b: B, a: A) => B): (self: Vector<A>) => B;
|
218
198
|
/**
|
219
199
|
* @tsplus pipeable fncts.Vector foldMap
|
220
200
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
@@ -232,6 +212,11 @@ export declare function foldMapWithIndex<A, M>(f: (i: number, a: A) => M, /** @t
|
|
232
212
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
233
213
|
*/
|
234
214
|
export declare function foldRight<A, B>(initial: B, f: (value: A, acc: B) => B): (self: Vector<A>) => B;
|
215
|
+
/**
|
216
|
+
* @tsplus pipeable fncts.Vector foldRightWhile
|
217
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
218
|
+
*/
|
219
|
+
export declare function foldRightWhile<A, B>(b: B, cont: Predicate<B>, f: (i: number, a: A, b: B) => B): (self: Vector<A>) => B;
|
235
220
|
/**
|
236
221
|
* Folds a function over a Vector. Right-associative.
|
237
222
|
* @complexity O(n)
|
@@ -257,6 +242,13 @@ export declare function forEach<A>(f: (a: A) => void): (self: Vector<A>) => void
|
|
257
242
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
258
243
|
*/
|
259
244
|
export declare function forEachWithIndex<A>(f: (i: number, a: A) => void): (self: Vector<A>) => void;
|
245
|
+
/**
|
246
|
+
* Converts an array, an array-like, or an iterable into a Vector.
|
247
|
+
* @complexity O(n)
|
248
|
+
* @tsplus static fncts.VectorOps from
|
249
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
250
|
+
*/
|
251
|
+
export declare function from<A>(sequence: A[] | ArrayLike<A> | Iterable<A>): Vector<A>;
|
260
252
|
/**
|
261
253
|
* Gets the nth element of the Vector. If `n` is out of bounds
|
262
254
|
* `undefined` is returned.
|
@@ -296,13 +288,6 @@ export declare function includes<A>(element: A): (self: Vector<A>) => boolean;
|
|
296
288
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
297
289
|
*/
|
298
290
|
export declare function indexOf<A>(element: A): (self: Vector<A>) => number;
|
299
|
-
/**
|
300
|
-
* Inserts the given element at the given index in the Vector.
|
301
|
-
* @complexity O(log(n))
|
302
|
-
* @tsplus pipeable fncts.Vector insertAt
|
303
|
-
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
304
|
-
*/
|
305
|
-
export declare function insertAt<A>(index: number, element: A): (self: Vector<A>) => Vector<A>;
|
306
291
|
/**
|
307
292
|
* Inserts the given Vector of elements at the given index in the Vector.
|
308
293
|
* @complexity `O(log(n))`
|
@@ -310,6 +295,13 @@ export declare function insertAt<A>(index: number, element: A): (self: Vector<A>
|
|
310
295
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
311
296
|
*/
|
312
297
|
export declare function insertAllAt<A>(index: number, elements: Vector<A>): (self: Vector<A>) => Vector<A>;
|
298
|
+
/**
|
299
|
+
* Inserts the given element at the given index in the Vector.
|
300
|
+
* @complexity O(log(n))
|
301
|
+
* @tsplus pipeable fncts.Vector insertAt
|
302
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
303
|
+
*/
|
304
|
+
export declare function insertAt<A>(index: number, element: A): (self: Vector<A>) => Vector<A>;
|
313
305
|
/**
|
314
306
|
* Inserts a separator between each element in a Vector.
|
315
307
|
* @tsplus pipeable fncts.Vector intersperse
|
@@ -355,11 +347,6 @@ export declare function lastIndexOf<A>(element: A): (self: Vector<A>) => number;
|
|
355
347
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
356
348
|
*/
|
357
349
|
export declare function makeBy<A>(n: number, f: (index: number) => A): Vector<A>;
|
358
|
-
/**
|
359
|
-
* @tsplus pipeable fncts.Vector mapAccum
|
360
|
-
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
361
|
-
*/
|
362
|
-
export declare function mapAccum<A, S, B>(s: S, f: (s: S, a: A) => readonly [B, S]): (self: Vector<A>) => readonly [Vector<B>, S];
|
363
350
|
/**
|
364
351
|
* Applies a function to each element in the given Vector and returns a
|
365
352
|
* new Vector of the values that the function return.
|
@@ -368,6 +355,11 @@ export declare function mapAccum<A, S, B>(s: S, f: (s: S, a: A) => readonly [B,
|
|
368
355
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
369
356
|
*/
|
370
357
|
export declare function map<A, B>(f: (a: A) => B): (self: Vector<A>) => Vector<B>;
|
358
|
+
/**
|
359
|
+
* @tsplus pipeable fncts.Vector mapAccum
|
360
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
361
|
+
*/
|
362
|
+
export declare function mapAccum<A, S, B>(s: S, f: (s: S, a: A) => readonly [B, S]): (self: Vector<A>) => readonly [Vector<B>, S];
|
371
363
|
/**
|
372
364
|
* Applies a function to each element in the given Vector and returns a
|
373
365
|
* new Vector of the values that the function return.
|
@@ -376,11 +368,6 @@ export declare function map<A, B>(f: (a: A) => B): (self: Vector<A>) => Vector<B
|
|
376
368
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
377
369
|
*/
|
378
370
|
export declare function mapWithIndex<A, B>(f: (i: number, a: A) => B): (self: Vector<A>) => Vector<B>;
|
379
|
-
/**
|
380
|
-
* @tsplus getter fncts.Vector mutableClone
|
381
|
-
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
382
|
-
*/
|
383
|
-
export declare function mutableClone<A>(self: Vector<A>): MutableVector<A>;
|
384
371
|
/**
|
385
372
|
* Returns a Vector that has the entry specified by the index replaced with
|
386
373
|
* the value returned by applying the function to the value.
|
@@ -392,6 +379,11 @@ export declare function mutableClone<A>(self: Vector<A>): MutableVector<A>;
|
|
392
379
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
393
380
|
*/
|
394
381
|
export declare function modifyAt<A>(i: number, f: (a: A) => A): (self: Vector<A>) => Vector<A>;
|
382
|
+
/**
|
383
|
+
* @tsplus getter fncts.Vector mutableClone
|
384
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
385
|
+
*/
|
386
|
+
export declare function mutableClone<A>(self: Vector<A>): MutableVector<A>;
|
395
387
|
/**
|
396
388
|
* Returns `true` if and only if the predicate function returns
|
397
389
|
* `false` for every element in the given Vector.
|
@@ -479,6 +471,14 @@ export declare function single<A>(a: A): Vector<A>;
|
|
479
471
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
480
472
|
*/
|
481
473
|
export declare function slice(from: number, to: number): <A>(self: Vector<A>) => Vector<A>;
|
474
|
+
/**
|
475
|
+
* Returns true if and only if there exists an element in the Vector for
|
476
|
+
* which the predicate returns true.
|
477
|
+
* @complexity O(n)
|
478
|
+
* @tsplus pipeable fncts.Vector some
|
479
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
480
|
+
*/
|
481
|
+
export declare function some<A>(predicate: Predicate<A>): (self: Vector<A>) => boolean;
|
482
482
|
/**
|
483
483
|
* @tsplus pipeable fncts.Vector sort
|
484
484
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
@@ -528,15 +528,6 @@ export declare function tail<A>(self: Vector<A>): Vector<A>;
|
|
528
528
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
529
529
|
*/
|
530
530
|
export declare function take(n: number): <A>(self: Vector<A>) => Vector<A>;
|
531
|
-
/**
|
532
|
-
* Takes the first elements in the Vector for which the predicate returns
|
533
|
-
* `true`.
|
534
|
-
* @complexity `O(k + log(n))` where `k` is the number of elements satisfying
|
535
|
-
the predicate.
|
536
|
-
* @tsplus pipeable fncts.Vector takeWhile
|
537
|
-
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
538
|
-
*/
|
539
|
-
export declare function takeWhile<A>(predicate: Predicate<A>): (self: Vector<A>) => Vector<A>;
|
540
531
|
/**
|
541
532
|
* Takes the last `n` elements from a Vector and returns them in a new
|
542
533
|
* Vector.
|
@@ -554,6 +545,15 @@ satisfying the predicate.
|
|
554
545
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
555
546
|
*/
|
556
547
|
export declare function takeLastWhile<A>(predicate: Predicate<A>): (self: Vector<A>) => Vector<A>;
|
548
|
+
/**
|
549
|
+
* Takes the first elements in the Vector for which the predicate returns
|
550
|
+
* `true`.
|
551
|
+
* @complexity `O(k + log(n))` where `k` is the number of elements satisfying
|
552
|
+
the predicate.
|
553
|
+
* @tsplus pipeable fncts.Vector takeWhile
|
554
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
555
|
+
*/
|
556
|
+
export declare function takeWhile<A>(predicate: Predicate<A>): (self: Vector<A>) => Vector<A>;
|
557
557
|
/**
|
558
558
|
* Converts a Vector into an array.
|
559
559
|
* @complexity `O(n)`
|
@@ -569,17 +569,22 @@ export declare function toArray<A>(self: Vector<A>): ReadonlyArray<A>;
|
|
569
569
|
*/
|
570
570
|
export declare function toList<A>(self: Vector<A>): List<A>;
|
571
571
|
/**
|
572
|
-
* @tsplus getter fncts.Vector
|
572
|
+
* @tsplus getter fncts.Vector traverse
|
573
573
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
574
574
|
*/
|
575
|
-
export declare function
|
575
|
+
export declare function traverse_<A>(self: Vector<A>): <G extends HKT, GC = HKT.None>(G: P.Applicative<G, GC>) => <K, Q, W, X, I, S, R, E, B>(f: (a: A) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, B>) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, Vector<B>>;
|
576
576
|
/**
|
577
|
-
* @tsplus getter fncts.Vector
|
577
|
+
* @tsplus getter fncts.Vector traverseWithIndex
|
578
578
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
579
579
|
*/
|
580
|
-
export declare function
|
580
|
+
export declare function traverseWithIndex_<A>(self: Vector<A>): <G extends HKT, GC = HKT.None>(G: P.Applicative<G, GC>) => <K, Q, W, X, I, S, R, E, B>(f: (i: number, a: A) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, B>) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, Vector<B>>;
|
581
581
|
export declare const traverseWithIndex: P.TraversableWithIndex<VectorF>["traverseWithIndex"];
|
582
582
|
export declare const traverse: Traversable<VectorF>["traverse"];
|
583
|
+
/**
|
584
|
+
* @tsplus static fncts.VectorOps unfold
|
585
|
+
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
586
|
+
*/
|
587
|
+
export declare function unfold<A, B>(b: B, f: (b: B) => Maybe<readonly [A, B]>): Vector<A>;
|
583
588
|
/**
|
584
589
|
* Returns a new Vector without repeated elements by using the given
|
585
590
|
* Eq instance to determine when elements are equal
|
@@ -588,11 +593,6 @@ export declare const traverse: Traversable<VectorF>["traverse"];
|
|
588
593
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
589
594
|
*/
|
590
595
|
export declare function uniq<A>(E: Eq<A>): (self: Vector<A>) => import("@fncts/base/collection/immutable/Vector/definition").Vector<A>;
|
591
|
-
/**
|
592
|
-
* @tsplus static fncts.VectorOps unfold
|
593
|
-
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
594
|
-
*/
|
595
|
-
export declare function unfold<A, B>(b: B, f: (b: B) => Maybe<readonly [A, B]>): Vector<A>;
|
596
596
|
/**
|
597
597
|
* Returns the _first_ element for which the predicate returns `true`.
|
598
598
|
* If no such element is found the function returns `undefined`.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
export type {} from "./immutable/Vector.js";
|
2
2
|
export type {} from "./immutable/SortedMap.js";
|
3
3
|
export type {} from "./immutable/RoseTree.js";
|
4
|
+
export type {} from "./immutable/ReadonlyNonEmptyArray.js";
|
5
|
+
export type {} from "./immutable/ReadonlyArray.js";
|
4
6
|
export type {} from "./immutable/Queue.js";
|
5
7
|
export type {} from "./immutable/List.js";
|
6
|
-
export type {} from "./immutable/ImmutableNonEmptyArray.js";
|
7
|
-
export type {} from "./immutable/ImmutableArray.js";
|
8
8
|
export type {} from "./immutable/HashSet.js";
|
9
9
|
export type {} from "./immutable/HashMap.js";
|
10
10
|
export type {} from "./immutable/Dictionary.js";
|
package/collection.d.ts
CHANGED
package/control/Eval/api.d.ts
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
import { Eval } from "@fncts/base/control/Eval/definition";
|
2
|
+
import { Lazy } from "@fncts/base/data/function/definition";
|
3
|
+
import { Conc } from "@fncts/base/collection/immutable/Conc";
|
2
4
|
import { Zipped } from "@fncts/base/data/Zipped";
|
3
5
|
import type { _A } from "@fncts/base/types";
|
6
|
+
/**
|
7
|
+
* @tsplus pipeable fncts.control.Eval ap
|
8
|
+
* @tsplus location "@fncts/base/control/Eval/api"
|
9
|
+
*/
|
10
|
+
export declare function ap<A>(fa: Eval<A>): <B>(self: Eval<(a: A) => B>) => Eval<B>;
|
4
11
|
/**
|
5
12
|
* @tsplus pipeable fncts.control.Eval and
|
6
13
|
* @tsplus location "@fncts/base/control/Eval/api"
|
@@ -11,6 +18,16 @@ export declare function and(that: Eval<boolean>): (self: Eval<boolean>) => Eval<
|
|
11
18
|
* @tsplus location "@fncts/base/control/Eval/api"
|
12
19
|
*/
|
13
20
|
export declare function flatMap<A, B>(f: (a: A) => Eval<B>): (self: Eval<A>) => Eval<B>;
|
21
|
+
/**
|
22
|
+
* @tsplus static fncts.control.EvalOps whileLoop
|
23
|
+
* @tsplus location "@fncts/base/control/Eval/api"
|
24
|
+
*/
|
25
|
+
export declare function whileLoop<A>(check: Lazy<boolean>, body: Lazy<Eval<A>>, process: (a: A) => void): Eval<void>;
|
26
|
+
/**
|
27
|
+
* @tsplus static fncts.control.EvalOps forEach
|
28
|
+
* @tsplus location "@fncts/base/control/Eval/api"
|
29
|
+
*/
|
30
|
+
export declare function forEach<A, B>(as: Iterable<A>, f: (a: A) => Eval<B>): Eval<Conc<B>>;
|
14
31
|
/**
|
15
32
|
* @tsplus getter fncts.control.Eval flatten
|
16
33
|
* @tsplus location "@fncts/base/control/Eval/api"
|
@@ -31,16 +48,21 @@ export declare function zipWith<A, B, C>(fb: Eval<B>, f: (a: A, b: B) => C): (se
|
|
31
48
|
* @tsplus location "@fncts/base/control/Eval/api"
|
32
49
|
*/
|
33
50
|
export declare function zip<B>(fb: Eval<B>): <A>(self: Eval<A>) => Eval<Zipped.Make<A, B>>;
|
51
|
+
export declare function foreachWithIndex<A, B>(as: Iterable<A>, f: (index: number, a: A) => Eval<B>): Eval<ReadonlyArray<B>>;
|
34
52
|
/**
|
35
|
-
* @tsplus
|
53
|
+
* @tsplus static fncts.control.EvalOps foreach
|
36
54
|
* @tsplus location "@fncts/base/control/Eval/api"
|
37
55
|
*/
|
38
|
-
export declare function
|
56
|
+
export declare function foreach<A, B>(as: Iterable<A>, f: (a: A) => Eval<B>): Eval<ReadonlyArray<B>>;
|
39
57
|
/**
|
40
|
-
* @tsplus static fncts.control.EvalOps
|
58
|
+
* @tsplus static fncts.control.EvalOps all
|
41
59
|
* @tsplus location "@fncts/base/control/Eval/api"
|
42
60
|
*/
|
43
|
-
export declare function
|
61
|
+
export declare function all<A extends ReadonlyArray<Eval<any>>>(...computations: A): Eval<{
|
62
|
+
[K in keyof A]: _A<A[K]>;
|
63
|
+
}>;
|
64
|
+
export declare function all<A extends Iterable<Eval<any>>>(computations: A): [A] extends [Iterable<infer A>] ? Eval<ReadonlyArray<_A<A>>> : never;
|
65
|
+
export declare function all<A extends Record<string, Eval<any>>>(computations: A): Eval<{
|
44
66
|
[K in keyof A]: _A<A[K]>;
|
45
67
|
}>;
|
46
68
|
declare class GenEval<A> {
|
@@ -56,4 +78,4 @@ declare class GenEval<A> {
|
|
56
78
|
export declare function gen<T extends GenEval<any>, A>(f: (i: {
|
57
79
|
<A>(_: Eval<A>): GenEval<A>;
|
58
80
|
}) => Generator<T, A, any>): Eval<A>;
|
59
|
-
export
|
81
|
+
export {};
|
@@ -16,6 +16,11 @@ export declare function defer<A>(make: Lazy<Eval<A>>): Eval<A>;
|
|
16
16
|
* @tsplus location "@fncts/base/control/Eval/constructors"
|
17
17
|
*/
|
18
18
|
export declare function always<A>(make: Lazy<A>): Eval<A>;
|
19
|
+
/**
|
20
|
+
* @tsplus static fncts.control.EvalOps unit
|
21
|
+
* @tsplus location "@fncts/base/control/Eval/constructors"
|
22
|
+
*/
|
23
|
+
export declare const unit: Eval<void>;
|
19
24
|
/**
|
20
25
|
* @tsplus static fncts.control.EvalOps later
|
21
26
|
* @tsplus location "@fncts/base/control/Eval/constructors"
|
package/data/CaseClass.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ImmutableArray } from "@fncts/base/collection/immutable/ImmutableArray/definition";
|
2
1
|
import { Hashable } from "@fncts/base/data/Hashable";
|
3
2
|
import { Equatable } from "@fncts/base/data/Equatable";
|
4
3
|
import type { Equals } from "@fncts/typelevel/Any";
|
@@ -6,13 +5,13 @@ import type { True } from "@fncts/typelevel/Boolean";
|
|
6
5
|
export declare const CaseClassTypeId: unique symbol;
|
7
6
|
export type CaseClassTypeId = typeof CaseClassTypeId;
|
8
7
|
export interface CaseArgs {
|
9
|
-
readonly [CaseClassTypeId]:
|
8
|
+
readonly [CaseClassTypeId]: ReadonlyArray<string>;
|
10
9
|
}
|
11
10
|
export interface Copy<T> {
|
12
11
|
copy(args: Equals<T, {}> extends 1 ? void : Partial<T>): this;
|
13
12
|
}
|
14
13
|
export interface CaseConstructor {
|
15
|
-
[CaseClassTypeId]:
|
14
|
+
[CaseClassTypeId]: ReadonlyArray<string>;
|
16
15
|
new <T>(args: Equals<T, {}> extends True ? void : T): T & Copy<T> & CaseArgs;
|
17
16
|
}
|
18
17
|
export declare function isCaseClass(u: unknown): u is CaseConstructor;
|
package/data/Const/api.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { Const } from "./definition.js";
|
2
|
-
/**
|
3
|
-
* @tsplus pipeable fncts.Const map
|
4
|
-
* @tsplus location "@fncts/base/data/Const/api"
|
5
|
-
*/
|
6
|
-
export declare function map<A, B>(_f: (a: A) => B): <E>(self: Const<E, A>) => Const<E, B>;
|
7
2
|
/**
|
8
3
|
* @tsplus static fncts.ConstOps make
|
9
4
|
* @tsplus static fncts.ConstOps __call
|
10
5
|
* @tsplus location "@fncts/base/data/Const/api"
|
11
6
|
*/
|
12
7
|
export declare function makeConst<E, A = never>(e: E): Const<E, A>;
|
8
|
+
/**
|
9
|
+
* @tsplus pipeable fncts.Const map
|
10
|
+
* @tsplus location "@fncts/base/data/Const/api"
|
11
|
+
*/
|
12
|
+
export declare function map<A, B>(_f: (a: A) => B): <E>(self: Const<E, A>) => Const<E, B>;
|
@@ -2,12 +2,12 @@ import { HKT } from "@fncts/typelevel/HKT";
|
|
2
2
|
import type * as P from "../../typeclass.js";
|
3
3
|
import type { ConstF } from "@fncts/base/data/Const/definition";
|
4
4
|
/**
|
5
|
-
* @tsplus static fncts.ConstOps
|
5
|
+
* @tsplus static fncts.ConstOps getApplicative
|
6
6
|
* @tsplus location "@fncts/base/data/Const/instances"
|
7
7
|
*/
|
8
|
-
export declare function
|
8
|
+
export declare function getApplicative<E>(M: P.Monoid<E>): P.Applicative<ConstF, HKT.Fix<"E", E>>;
|
9
9
|
/**
|
10
|
-
* @tsplus static fncts.ConstOps
|
10
|
+
* @tsplus static fncts.ConstOps getApply
|
11
11
|
* @tsplus location "@fncts/base/data/Const/instances"
|
12
12
|
*/
|
13
|
-
export declare function
|
13
|
+
export declare function getApply<E>(S: P.Semigroup<E>): P.Apply<ConstF, import("@fncts/typelevel/HKT.js").HKT.Fix<"E", E>>;
|