@fncts/base 0.0.12 → 0.0.15
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 +16 -21
- package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
- package/_cjs/collection/compat/Array/api.cjs +10 -10
- package/_cjs/collection/compat/Array/derivations.cjs +96 -0
- package/_cjs/collection/compat/Array/derivations.cjs.map +1 -0
- package/_cjs/collection/compat/Array.cjs +13 -0
- package/_cjs/collection/compat/Array.cjs.map +1 -1
- package/_cjs/collection/compat/Record/instances.cjs +67 -16
- package/_cjs/collection/compat/Record/instances.cjs.map +1 -1
- package/_cjs/collection/compat.cjs +6 -0
- package/_cjs/collection/compat.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/api.cjs +9 -12
- package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/definition.cjs +41 -43
- package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/derivations.cjs +45 -0
- package/_cjs/collection/immutable/Conc/derivations.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc.cjs +13 -0
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/collection/immutable/Dictionary/definition.cjs +2 -4
- package/_cjs/collection/immutable/Dictionary/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/api.cjs +26 -29
- package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
- package/_cjs/collection/immutable/HashMap/definition.cjs +15 -17
- package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/api.cjs +142 -159
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/constructors.cjs +2 -2
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs +18 -15
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs +41 -0
- package/_cjs/collection/immutable/ImmutableArray/derivations.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs +11 -9
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray.cjs +13 -0
- package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +21 -22
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs +2 -2
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs +3 -9
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs +62 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs.map +1 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +8 -2
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs +13 -0
- package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs.map +1 -1
- package/_cjs/collection/immutable/List/definition.cjs +2 -2
- package/_cjs/collection/immutable/RoseTree/definition.cjs +13 -15
- package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/api.cjs +8 -12
- package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/definition.cjs +11 -13
- package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Vector/internal.cjs +1 -1
- package/_cjs/collection/immutable.cjs +6 -0
- package/_cjs/collection/immutable.cjs.map +1 -0
- package/_cjs/collection/mutable/HashMap.cjs +4 -0
- package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
- package/_cjs/collection/mutable.cjs +6 -0
- package/_cjs/collection/mutable.cjs.map +1 -0
- package/_cjs/collection/weak/IterableWeakMap.cjs +51 -2
- package/_cjs/collection/weak/IterableWeakMap.cjs.map +1 -1
- package/_cjs/collection/weak/IterableWeakSet.cjs +59 -7
- package/_cjs/collection/weak/IterableWeakSet.cjs.map +1 -1
- package/_cjs/collection/weak.cjs +6 -0
- package/_cjs/collection/weak.cjs.map +1 -0
- package/_cjs/collection.cjs +6 -0
- package/_cjs/collection.cjs.map +1 -0
- package/_cjs/control/Eval/api.cjs +9 -3
- package/_cjs/control/Eval/api.cjs.map +1 -1
- package/_cjs/control/Eval/definition.cjs +1 -8
- package/_cjs/control/Eval/definition.cjs.map +1 -1
- package/_cjs/control/Eval/instance.cjs +6 -0
- package/_cjs/control/Eval/instance.cjs.map +1 -1
- package/_cjs/control/Z/api.cjs +16 -14
- package/_cjs/control/Z/api.cjs.map +1 -1
- package/_cjs/control/Z/definition.cjs +8 -14
- package/_cjs/control/Z/definition.cjs.map +1 -1
- package/_cjs/control/Z/instances.cjs +6 -0
- package/_cjs/control/Z/instances.cjs.map +1 -1
- package/_cjs/control/Z/runtime.cjs +17 -13
- package/_cjs/control/Z/runtime.cjs.map +1 -1
- package/_cjs/control.cjs +6 -0
- package/_cjs/control.cjs.map +1 -0
- package/_cjs/data/Cause/api/isEmpty.cjs +2 -0
- package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
- package/_cjs/data/Cause/api/linearize.cjs +2 -0
- package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
- package/_cjs/data/Cause/api.cjs +2 -0
- package/_cjs/data/Cause/api.cjs.map +1 -1
- package/_cjs/data/Const/definition.cjs +0 -7
- package/_cjs/data/Const/definition.cjs.map +1 -1
- package/_cjs/data/Const/instances.cjs +11 -8
- package/_cjs/data/Const/instances.cjs.map +1 -1
- package/_cjs/data/Datum/api.cjs +479 -0
- package/_cjs/data/Datum/api.cjs.map +1 -0
- package/_cjs/data/Datum/definition.cjs +142 -0
- package/_cjs/data/Datum/definition.cjs.map +1 -0
- package/_cjs/data/Datum/instances.cjs +69 -0
- package/_cjs/data/Datum/instances.cjs.map +1 -0
- package/_cjs/data/DatumEither/api.cjs +365 -0
- package/_cjs/data/DatumEither/api.cjs.map +1 -0
- package/_cjs/data/DatumEither/definition.cjs +9 -0
- package/_cjs/data/DatumEither/definition.cjs.map +1 -0
- package/_cjs/data/DecodeError/definition.cjs +16 -4
- package/_cjs/data/DecodeError/definition.cjs.map +1 -1
- package/_cjs/data/DecodeError/instances.cjs +6 -0
- package/_cjs/data/DecodeError/instances.cjs.map +1 -0
- package/_cjs/data/DecodeError.cjs +13 -0
- package/_cjs/data/DecodeError.cjs.map +1 -1
- package/_cjs/data/Decoder/definition.cjs +3 -10
- package/_cjs/data/Decoder/definition.cjs.map +1 -1
- package/_cjs/data/Either/api/alignWith.cjs +2 -0
- package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
- package/_cjs/data/Either/api.cjs +21 -5
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/definition.cjs +4 -11
- package/_cjs/data/Either/definition.cjs.map +1 -1
- package/_cjs/data/Either/instances.cjs +25 -23
- package/_cjs/data/Either/instances.cjs.map +1 -1
- package/_cjs/data/EitherT/api.cjs +106 -0
- package/_cjs/data/EitherT/api.cjs.map +1 -0
- package/_cjs/data/EitherT/definition.cjs +9 -0
- package/_cjs/data/EitherT/definition.cjs.map +1 -0
- package/_cjs/data/Environment/api.cjs +15 -14
- package/_cjs/data/Environment/api.cjs.map +1 -1
- package/_cjs/data/Environment/definition.cjs.map +1 -1
- package/_cjs/data/Identity/api.cjs +3 -1
- package/_cjs/data/Identity/api.cjs.map +1 -1
- package/_cjs/data/Identity/definition.cjs +2 -4
- package/_cjs/data/Identity/definition.cjs.map +1 -1
- package/_cjs/data/Identity/instances.cjs +6 -0
- package/_cjs/data/Identity/instances.cjs.map +1 -1
- package/_cjs/data/Intervals.cjs +292 -0
- package/_cjs/data/Intervals.cjs.map +1 -0
- package/_cjs/data/Maybe/api.cjs +3 -1
- package/_cjs/data/Maybe/api.cjs.map +1 -1
- package/_cjs/data/Maybe/definition.cjs +11 -13
- package/_cjs/data/Maybe/definition.cjs.map +1 -1
- package/_cjs/data/Maybe/instances.cjs +13 -11
- package/_cjs/data/Maybe/instances.cjs.map +1 -1
- package/_cjs/data/Newtype.cjs +3 -5
- package/_cjs/data/Newtype.cjs.map +1 -1
- package/_cjs/data/Patch/api.cjs +2 -0
- package/_cjs/data/Patch/api.cjs.map +1 -1
- package/_cjs/data/Struct/api.cjs +2 -0
- package/_cjs/data/Struct/api.cjs.map +1 -1
- package/_cjs/data/Struct/definition.cjs +2 -4
- package/_cjs/data/Struct/definition.cjs.map +1 -1
- package/_cjs/data/These/definition.cjs +1 -1
- package/_cjs/data/These/definition.cjs.map +1 -1
- package/_cjs/data/Zipped.cjs +55 -0
- package/_cjs/data/Zipped.cjs.map +1 -0
- package/_cjs/data/function/api.cjs +10 -0
- package/_cjs/data/function/api.cjs.map +1 -1
- package/_cjs/data/object/instances.cjs +9 -1
- package/_cjs/data/object/instances.cjs.map +1 -1
- package/_cjs/data/string/api.cjs +1 -1
- package/_cjs/data.cjs +6 -0
- package/_cjs/data.cjs.map +1 -0
- package/_cjs/global.cjs +6 -0
- package/_cjs/global.cjs.map +1 -0
- package/_cjs/index.cjs +6 -0
- package/_cjs/index.cjs.map +1 -0
- package/_cjs/json.cjs +6 -0
- package/_cjs/json.cjs.map +1 -0
- package/_cjs/optics/At/definition.cjs +2 -0
- package/_cjs/optics/At/definition.cjs.map +1 -1
- package/_cjs/optics/Iso/definition.cjs +4 -0
- package/_cjs/optics/Iso/definition.cjs.map +1 -1
- package/_cjs/optics/Lens/definition.cjs +4 -0
- package/_cjs/optics/Lens/definition.cjs.map +1 -1
- package/_cjs/optics/Optional/definition.cjs +5 -5
- package/_cjs/optics/Optional/definition.cjs.map +1 -1
- package/_cjs/optics/Prism/definition.cjs +2 -0
- package/_cjs/optics/Prism/definition.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/compose.cjs +1 -1
- package/_cjs/optics/Traversal/api/compose.cjs.map +1 -1
- package/_cjs/optics/Traversal/api/fromTraversable.cjs +1 -1
- package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
- package/_cjs/optics/Traversal/definition.cjs +7 -3
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- package/_cjs/optics.cjs +6 -0
- package/_cjs/optics.cjs.map +1 -0
- package/_cjs/typeclass/Alt.cjs +0 -7
- package/_cjs/typeclass/Alt.cjs.map +1 -1
- package/_cjs/typeclass/ApplicativeExcept.cjs +9 -35
- package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
- package/_cjs/typeclass/Apply.cjs +39 -66
- package/_cjs/typeclass/Apply.cjs.map +1 -1
- package/_cjs/typeclass/Chain.cjs +6 -28
- package/_cjs/typeclass/Chain.cjs.map +1 -1
- package/_cjs/typeclass/Fail.cjs +0 -10
- package/_cjs/typeclass/Fail.cjs.map +1 -1
- package/_cjs/typeclass/Filterable.cjs +0 -36
- package/_cjs/typeclass/Filterable.cjs.map +1 -1
- package/_cjs/typeclass/Foldable.cjs +4 -34
- package/_cjs/typeclass/Foldable.cjs.map +1 -1
- package/_cjs/typeclass/FoldableWithIndex.cjs +4 -34
- package/_cjs/typeclass/FoldableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Functor.cjs +3 -18
- package/_cjs/typeclass/Functor.cjs.map +1 -1
- package/_cjs/typeclass/Guard/definition.cjs +3 -10
- package/_cjs/typeclass/Guard/definition.cjs.map +1 -1
- package/_cjs/typeclass/HashEq.cjs +2 -0
- package/_cjs/typeclass/HashEq.cjs.map +1 -1
- package/_cjs/typeclass/MonadExcept.cjs +2 -10
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
- package/_cjs/typeclass/Monoid.cjs +2 -0
- package/_cjs/typeclass/Monoid.cjs.map +1 -1
- package/_cjs/typeclass/Nil.cjs +0 -10
- package/_cjs/typeclass/Nil.cjs.map +1 -1
- package/_cjs/typeclass/Ord/definition.cjs +2 -0
- package/_cjs/typeclass/Ord/definition.cjs.map +1 -1
- package/_cjs/typeclass/Ord/instances.cjs +4 -3
- package/_cjs/typeclass/Ord/instances.cjs.map +1 -1
- package/_cjs/typeclass/Pointed.cjs +0 -11
- package/_cjs/typeclass/Pointed.cjs.map +1 -1
- package/_cjs/typeclass/Semialign.cjs +18 -46
- package/_cjs/typeclass/Semialign.cjs.map +1 -1
- package/_cjs/typeclass/Semimonoidal.cjs +0 -11
- package/_cjs/typeclass/Semimonoidal.cjs.map +1 -1
- package/_cjs/typeclass/Showable/show.cjs +12 -12
- package/_cjs/typeclass/Showable/show.cjs.map +1 -1
- package/_cjs/typeclass/Traversable.cjs +7 -26
- package/_cjs/typeclass/Traversable.cjs.map +1 -1
- package/_cjs/typeclass/TraversableWithIndex.cjs +3 -7
- package/_cjs/typeclass/TraversableWithIndex.cjs.map +1 -1
- package/_cjs/typeclass/Witherable.cjs +3 -45
- package/_cjs/typeclass/Witherable.cjs.map +1 -1
- package/_cjs/typeclass/WitherableWithIndex.cjs +8 -44
- package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
- package/_cjs/util.cjs +6 -0
- package/_cjs/util.cjs.map +1 -0
- package/_mjs/collection/Iterable/api/traverseConc.mjs +16 -21
- package/_mjs/collection/Iterable/api/traverseConc.mjs.map +1 -1
- package/_mjs/collection/compat/Array/api.mjs +10 -10
- package/_mjs/collection/compat/Array/derivations.mjs +70 -0
- package/_mjs/collection/compat/Array/derivations.mjs.map +1 -0
- package/_mjs/collection/compat/Array.mjs +1 -0
- package/_mjs/collection/compat/Array.mjs.map +1 -1
- package/_mjs/collection/compat/Record/instances.mjs +62 -16
- package/_mjs/collection/compat/Record/instances.mjs.map +1 -1
- package/_mjs/collection/compat.mjs +2 -0
- package/_mjs/collection/compat.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/api.mjs +8 -11
- package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/definition.mjs +41 -42
- package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/derivations.mjs +27 -0
- package/_mjs/collection/immutable/Conc/derivations.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc.mjs +2 -1
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/collection/immutable/Dictionary/definition.mjs +2 -3
- package/_mjs/collection/immutable/Dictionary/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/api.mjs +18 -20
- package/_mjs/collection/immutable/HashMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/HashMap/definition.mjs +15 -16
- package/_mjs/collection/immutable/HashMap/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/HashSet/api.mjs +1 -0
- package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/api.mjs +134 -153
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/constructors.mjs +2 -2
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs +16 -12
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs +25 -0
- package/_mjs/collection/immutable/ImmutableArray/derivations.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs +9 -8
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray.mjs +1 -0
- package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +19 -19
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs +2 -2
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs +0 -2
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs +39 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs.map +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +4 -3
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs +1 -0
- package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs.map +1 -1
- package/_mjs/collection/immutable/List/definition.mjs +2 -2
- package/_mjs/collection/immutable/RoseTree/definition.mjs +13 -14
- package/_mjs/collection/immutable/RoseTree/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/SortedMap/api.mjs +1 -0
- package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/api.mjs +8 -12
- package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/definition.mjs +11 -12
- package/_mjs/collection/immutable/Vector/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Vector/internal.mjs +1 -1
- package/_mjs/collection/immutable.mjs +2 -0
- package/_mjs/collection/immutable.mjs.map +1 -0
- package/_mjs/collection/mutable/HashMap.mjs +4 -0
- package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
- package/_mjs/collection/mutable.mjs +2 -0
- package/_mjs/collection/mutable.mjs.map +1 -0
- package/_mjs/collection/weak/IterableWeakMap.mjs +51 -2
- package/_mjs/collection/weak/IterableWeakMap.mjs.map +1 -1
- package/_mjs/collection/weak/IterableWeakSet.mjs +59 -7
- package/_mjs/collection/weak/IterableWeakSet.mjs.map +1 -1
- package/_mjs/collection/weak.mjs +2 -0
- package/_mjs/collection/weak.mjs.map +1 -0
- package/_mjs/collection.mjs +2 -0
- package/_mjs/collection.mjs.map +1 -0
- package/_mjs/control/Eval/api.mjs +9 -4
- package/_mjs/control/Eval/api.mjs.map +1 -1
- package/_mjs/control/Eval/definition.mjs +1 -2
- package/_mjs/control/Eval/definition.mjs.map +1 -1
- package/_mjs/control/Eval/instance.mjs +1 -0
- package/_mjs/control/Eval/instance.mjs.map +1 -1
- package/_mjs/control/Eval/run.mjs +1 -0
- package/_mjs/control/Eval/run.mjs.map +1 -1
- package/_mjs/control/Z/api.mjs +16 -15
- package/_mjs/control/Z/api.mjs.map +1 -1
- package/_mjs/control/Z/definition.mjs +3 -5
- package/_mjs/control/Z/definition.mjs.map +1 -1
- package/_mjs/control/Z/instances.mjs +1 -0
- package/_mjs/control/Z/instances.mjs.map +1 -1
- package/_mjs/control/Z/runtime.mjs +15 -13
- package/_mjs/control/Z/runtime.mjs.map +1 -1
- package/_mjs/control.mjs +2 -0
- package/_mjs/control.mjs.map +1 -0
- package/_mjs/data/Branded/derivations.mjs +1 -0
- package/_mjs/data/Branded/derivations.mjs.map +1 -1
- package/_mjs/data/Cause/api/isEmpty.mjs +1 -0
- package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -1
- package/_mjs/data/Cause/api/linearize.mjs +1 -0
- package/_mjs/data/Cause/api/linearize.mjs.map +1 -1
- package/_mjs/data/Cause/api.mjs +2 -1
- package/_mjs/data/Cause/api.mjs.map +1 -1
- package/_mjs/data/Const/definition.mjs +0 -3
- package/_mjs/data/Const/definition.mjs.map +1 -1
- package/_mjs/data/Const/instances.mjs +7 -5
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/Datum/api.mjs +404 -0
- package/_mjs/data/Datum/api.mjs.map +1 -0
- package/_mjs/data/Datum/definition.mjs +112 -0
- package/_mjs/data/Datum/definition.mjs.map +1 -0
- package/_mjs/data/Datum/instances.mjs +52 -0
- package/_mjs/data/Datum/instances.mjs.map +1 -0
- package/_mjs/data/DatumEither/api.mjs +290 -0
- package/_mjs/data/DatumEither/api.mjs.map +1 -0
- package/_mjs/data/DatumEither/definition.mjs +2 -0
- package/_mjs/data/DatumEither/definition.mjs.map +1 -0
- package/_mjs/data/DecodeError/definition.mjs +12 -3
- package/_mjs/data/DecodeError/definition.mjs.map +1 -1
- package/_mjs/data/DecodeError/instances.mjs +2 -0
- package/_mjs/data/DecodeError/instances.mjs.map +1 -0
- package/_mjs/data/DecodeError.mjs +1 -0
- package/_mjs/data/DecodeError.mjs.map +1 -1
- package/_mjs/data/Decoder/api.mjs +1 -0
- package/_mjs/data/Decoder/api.mjs.map +1 -1
- package/_mjs/data/Decoder/definition.mjs +0 -2
- package/_mjs/data/Decoder/definition.mjs.map +1 -1
- package/_mjs/data/Either/api/alignWith.mjs +1 -0
- package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
- package/_mjs/data/Either/api.mjs +17 -4
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/definition.mjs +1 -3
- package/_mjs/data/Either/definition.mjs.map +1 -1
- package/_mjs/data/Either/instances.mjs +24 -23
- package/_mjs/data/Either/instances.mjs.map +1 -1
- package/_mjs/data/EitherT/api.mjs +73 -0
- package/_mjs/data/EitherT/api.mjs.map +1 -0
- package/_mjs/data/EitherT/definition.mjs +2 -0
- package/_mjs/data/EitherT/definition.mjs.map +1 -0
- package/_mjs/data/Environment/api.mjs +12 -13
- package/_mjs/data/Environment/api.mjs.map +1 -1
- package/_mjs/data/Environment/definition.mjs.map +1 -1
- package/_mjs/data/Identity/api.mjs +2 -1
- package/_mjs/data/Identity/api.mjs.map +1 -1
- package/_mjs/data/Identity/definition.mjs +2 -3
- package/_mjs/data/Identity/definition.mjs.map +1 -1
- package/_mjs/data/Identity/instances.mjs +1 -0
- package/_mjs/data/Identity/instances.mjs.map +1 -1
- package/_mjs/data/Intervals.mjs +257 -0
- package/_mjs/data/Intervals.mjs.map +1 -0
- package/_mjs/data/Maybe/api.mjs +2 -1
- package/_mjs/data/Maybe/api.mjs.map +1 -1
- package/_mjs/data/Maybe/definition.mjs +8 -10
- package/_mjs/data/Maybe/definition.mjs.map +1 -1
- package/_mjs/data/Maybe/instances.mjs +12 -11
- package/_mjs/data/Maybe/instances.mjs.map +1 -1
- package/_mjs/data/Newtype.mjs +3 -4
- package/_mjs/data/Newtype.mjs.map +1 -1
- package/_mjs/data/Patch/api.mjs +1 -0
- package/_mjs/data/Patch/api.mjs.map +1 -1
- package/_mjs/data/Struct/api.mjs +1 -0
- package/_mjs/data/Struct/api.mjs.map +1 -1
- package/_mjs/data/Struct/definition.mjs +2 -3
- package/_mjs/data/Struct/definition.mjs.map +1 -1
- package/_mjs/data/These/definition.mjs +1 -1
- package/_mjs/data/These/definition.mjs.map +1 -1
- package/_mjs/data/Zipped.mjs +37 -0
- package/_mjs/data/Zipped.mjs.map +1 -0
- package/_mjs/data/function/api.mjs +8 -0
- package/_mjs/data/function/api.mjs.map +1 -1
- package/_mjs/data/object/instances.mjs +7 -1
- package/_mjs/data/object/instances.mjs.map +1 -1
- package/_mjs/data/string/api.mjs +1 -1
- package/_mjs/data.mjs +2 -0
- package/_mjs/data.mjs.map +1 -0
- package/_mjs/global.mjs +2 -0
- package/_mjs/global.mjs.map +1 -0
- package/_mjs/index.mjs +2 -0
- package/_mjs/index.mjs.map +1 -0
- package/_mjs/json.mjs +2 -0
- package/_mjs/json.mjs.map +1 -0
- package/_mjs/optics/At/api.mjs +1 -0
- package/_mjs/optics/At/api.mjs.map +1 -1
- package/_mjs/optics/At/definition.mjs +1 -0
- package/_mjs/optics/At/definition.mjs.map +1 -1
- package/_mjs/optics/Index/api.mjs +1 -0
- package/_mjs/optics/Index/api.mjs.map +1 -1
- package/_mjs/optics/Iso/api.mjs +1 -0
- package/_mjs/optics/Iso/api.mjs.map +1 -1
- package/_mjs/optics/Iso/definition.mjs +2 -0
- package/_mjs/optics/Iso/definition.mjs.map +1 -1
- package/_mjs/optics/Lens/api.mjs +1 -0
- package/_mjs/optics/Lens/api.mjs.map +1 -1
- package/_mjs/optics/Lens/definition.mjs +2 -0
- package/_mjs/optics/Lens/definition.mjs.map +1 -1
- package/_mjs/optics/Optional/api/compose.mjs +1 -0
- package/_mjs/optics/Optional/api/compose.mjs.map +1 -1
- package/_mjs/optics/Optional/definition.mjs +5 -5
- package/_mjs/optics/Optional/definition.mjs.map +1 -1
- package/_mjs/optics/Prism/api/compose.mjs +1 -0
- package/_mjs/optics/Prism/api/compose.mjs.map +1 -1
- package/_mjs/optics/Prism/api/fromNullable.mjs +1 -0
- package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -1
- package/_mjs/optics/Prism/api/just.mjs +1 -0
- package/_mjs/optics/Prism/api/just.mjs.map +1 -1
- package/_mjs/optics/Prism/definition.mjs +1 -0
- package/_mjs/optics/Prism/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs +2 -1
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +2 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
- package/_mjs/optics/Traversal/definition.mjs +5 -3
- package/_mjs/optics/Traversal/definition.mjs.map +1 -1
- package/_mjs/optics.mjs +2 -0
- package/_mjs/optics.mjs.map +1 -0
- package/_mjs/typeclass/Alt.mjs +0 -5
- package/_mjs/typeclass/Alt.mjs.map +1 -1
- package/_mjs/typeclass/ApplicativeExcept.mjs +7 -32
- package/_mjs/typeclass/ApplicativeExcept.mjs.map +1 -1
- package/_mjs/typeclass/Apply.mjs +35 -65
- package/_mjs/typeclass/Apply.mjs.map +1 -1
- package/_mjs/typeclass/Chain.mjs +4 -25
- package/_mjs/typeclass/Chain.mjs.map +1 -1
- package/_mjs/typeclass/Eq/derivations.mjs +1 -0
- package/_mjs/typeclass/Eq/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Fail.mjs +1 -8
- package/_mjs/typeclass/Fail.mjs.map +1 -1
- package/_mjs/typeclass/Filterable.mjs +0 -28
- package/_mjs/typeclass/Filterable.mjs.map +1 -1
- package/_mjs/typeclass/Foldable.mjs +3 -30
- package/_mjs/typeclass/Foldable.mjs.map +1 -1
- package/_mjs/typeclass/FoldableWithIndex.mjs +3 -30
- package/_mjs/typeclass/FoldableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Functor.mjs +3 -16
- package/_mjs/typeclass/Functor.mjs.map +1 -1
- package/_mjs/typeclass/Guard/api.mjs +1 -0
- package/_mjs/typeclass/Guard/api.mjs.map +1 -1
- package/_mjs/typeclass/Guard/definition.mjs +0 -2
- package/_mjs/typeclass/Guard/definition.mjs.map +1 -1
- package/_mjs/typeclass/HashEq.mjs +1 -0
- package/_mjs/typeclass/HashEq.mjs.map +1 -1
- package/_mjs/typeclass/MonadExcept.mjs +2 -9
- package/_mjs/typeclass/MonadExcept.mjs.map +1 -1
- package/_mjs/typeclass/Monoid.mjs +1 -0
- package/_mjs/typeclass/Monoid.mjs.map +1 -1
- package/_mjs/typeclass/Nil.mjs +1 -8
- package/_mjs/typeclass/Nil.mjs.map +1 -1
- package/_mjs/typeclass/Ord/definition.mjs +1 -0
- package/_mjs/typeclass/Ord/definition.mjs.map +1 -1
- package/_mjs/typeclass/Ord/instances.mjs +3 -0
- package/_mjs/typeclass/Ord/instances.mjs.map +1 -1
- package/_mjs/typeclass/Pointed.mjs +0 -9
- package/_mjs/typeclass/Pointed.mjs.map +1 -1
- package/_mjs/typeclass/Semialign.mjs +17 -45
- package/_mjs/typeclass/Semialign.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/api.mjs +1 -0
- package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
- package/_mjs/typeclass/Semigroup/derivations.mjs +1 -0
- package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -1
- package/_mjs/typeclass/Semimonoidal.mjs +0 -9
- package/_mjs/typeclass/Semimonoidal.mjs.map +1 -1
- package/_mjs/typeclass/Showable/show.mjs +12 -12
- package/_mjs/typeclass/Showable/show.mjs.map +1 -1
- package/_mjs/typeclass/Traversable.mjs +6 -25
- package/_mjs/typeclass/Traversable.mjs.map +1 -1
- package/_mjs/typeclass/TraversableWithIndex.mjs +2 -6
- package/_mjs/typeclass/TraversableWithIndex.mjs.map +1 -1
- package/_mjs/typeclass/Witherable.mjs +3 -40
- package/_mjs/typeclass/Witherable.mjs.map +1 -1
- package/_mjs/typeclass/WitherableWithIndex.mjs +6 -41
- package/_mjs/typeclass/WitherableWithIndex.mjs.map +1 -1
- package/_mjs/util.mjs +2 -0
- package/_mjs/util.mjs.map +1 -0
- package/_src/collection/Iterable/api/traverseConc.ts +24 -21
- package/_src/collection/compat/Array/api.ts +10 -10
- package/_src/collection/compat/Array/definition.ts +3 -3
- package/_src/collection/compat/Array/derivations.ts +85 -0
- package/_src/collection/compat/Array.ts +1 -0
- package/_src/collection/compat/Record/instances.ts +43 -0
- package/_src/collection/compat.ts +4 -0
- package/_src/collection/immutable/Conc/api.ts +9 -11
- package/_src/collection/immutable/Conc/definition.ts +18 -13
- package/_src/collection/immutable/Conc/derivations.ts +28 -0
- package/_src/collection/immutable/Conc.ts +1 -0
- package/_src/collection/immutable/Dictionary/definition.ts +1 -1
- package/_src/collection/immutable/HashMap/api.ts +20 -17
- package/_src/collection/immutable/HashMap/definition.ts +10 -6
- package/_src/collection/immutable/ImmutableArray/api.ts +62 -119
- package/_src/collection/immutable/ImmutableArray/constructors.ts +2 -2
- package/_src/collection/immutable/ImmutableArray/definition.ts +11 -5
- package/_src/collection/immutable/ImmutableArray/derivations.ts +28 -0
- package/_src/collection/immutable/ImmutableArray/instances.ts +47 -42
- package/_src/collection/immutable/ImmutableArray.ts +1 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +13 -11
- package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +2 -2
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +10 -5
- package/_src/collection/immutable/ImmutableNonEmptyArray/derivations.ts +44 -0
- package/_src/collection/immutable/ImmutableNonEmptyArray/instances.ts +24 -25
- package/_src/collection/immutable/ImmutableNonEmptyArray.ts +1 -0
- package/_src/collection/immutable/List/definition.ts +2 -2
- package/_src/collection/immutable/RoseTree/definition.ts +7 -4
- package/_src/collection/immutable/Vector/api.ts +12 -16
- package/_src/collection/immutable/Vector/definition.ts +10 -10
- package/_src/collection/immutable/Vector/internal.ts +1 -1
- package/_src/collection/immutable.ts +12 -0
- package/_src/collection/mutable/HashMap.ts +4 -0
- package/_src/collection/mutable.ts +6 -0
- package/_src/collection/weak/IterableWeakMap.ts +50 -5
- package/_src/collection/weak/IterableWeakSet.ts +57 -9
- package/_src/collection/weak.ts +4 -0
- package/_src/collection.ts +7 -0
- package/_src/control/Eval/api.ts +5 -2
- package/_src/control/Eval/definition.ts +8 -5
- package/_src/control/Eval/instance.ts +7 -7
- package/_src/control/Z/api.ts +40 -52
- package/_src/control/Z/definition.ts +36 -36
- package/_src/control/Z/instances.ts +3 -3
- package/_src/control/Z/runtime.ts +11 -11
- package/_src/control.ts +5 -0
- package/_src/data/Const/definition.ts +9 -17
- package/_src/data/Const/instances.ts +5 -5
- package/_src/data/Datum/api.ts +376 -0
- package/_src/data/Datum/definition.ts +102 -0
- package/_src/data/Datum/instances.ts +34 -0
- package/_src/data/DatumEither/api.ts +348 -0
- package/_src/data/DatumEither/definition.ts +20 -0
- package/_src/data/DecodeError/definition.ts +11 -3
- package/_src/data/DecodeError/instances.ts +0 -0
- package/_src/data/DecodeError.ts +1 -0
- package/_src/data/Decoder/definition.ts +7 -4
- package/_src/data/Either/api.ts +12 -2
- package/_src/data/Either/definition.ts +10 -15
- package/_src/data/Either/instances.ts +6 -6
- package/_src/data/EitherT/api.ts +239 -0
- package/_src/data/EitherT/definition.ts +23 -0
- package/_src/data/Environment/api.ts +8 -6
- package/_src/data/Environment/definition.ts +2 -2
- package/_src/data/Identity/api.ts +2 -2
- package/_src/data/Identity/definition.ts +2 -2
- package/_src/data/Identity/instances.ts +7 -7
- package/_src/data/Intervals.ts +126 -0
- package/_src/data/Maybe/api.ts +2 -2
- package/_src/data/Maybe/definition.ts +8 -5
- package/_src/data/Maybe/instances.ts +10 -10
- package/_src/data/Newtype.ts +32 -11
- package/_src/data/Struct/definition.ts +1 -1
- package/_src/data/Tag/definition.ts +2 -2
- package/_src/data/These/definition.ts +1 -1
- package/_src/data/Zipped.ts +52 -0
- package/_src/data/function/api.ts +8 -0
- package/_src/data/object/instances.ts +11 -1
- package/_src/data/string/api.ts +1 -1
- package/_src/data.ts +35 -0
- package/_src/global.ts +252 -0
- package/_src/index.ts +8 -0
- package/_src/json.ts +5 -0
- package/_src/optics/Optional/definition.ts +2 -2
- package/_src/optics/Traversal/api/compose.ts +1 -1
- package/_src/optics/Traversal/api/fromTraversable.ts +11 -11
- package/_src/optics/Traversal/definition.ts +13 -12
- package/_src/optics.ts +12 -0
- package/_src/typeclass/Align.ts +1 -1
- package/_src/typeclass/Alt.ts +24 -54
- package/_src/typeclass/Alternative.ts +1 -1
- package/_src/typeclass/Applicative.ts +6 -1
- package/_src/typeclass/ApplicativeExcept.ts +55 -81
- package/_src/typeclass/Apply.ts +224 -253
- package/_src/typeclass/Chain.ts +71 -98
- package/_src/typeclass/Fail.ts +10 -28
- package/_src/typeclass/Filterable.ts +13 -67
- package/_src/typeclass/FilterableWithIndex.ts +13 -13
- package/_src/typeclass/Foldable.ts +16 -35
- package/_src/typeclass/FoldableWithIndex.ts +14 -37
- package/_src/typeclass/Functor.ts +11 -21
- package/_src/typeclass/FunctorWithIndex.ts +4 -4
- package/_src/typeclass/Guard/definition.ts +1 -3
- package/_src/typeclass/Monad.ts +1 -1
- package/_src/typeclass/MonadExcept.ts +11 -7
- package/_src/typeclass/Nil.ts +10 -27
- package/_src/typeclass/Pointed.ts +11 -30
- package/_src/typeclass/Semialign.ts +285 -253
- package/_src/typeclass/Semimonoidal.ts +23 -54
- package/_src/typeclass/Showable/show.ts +10 -12
- package/_src/typeclass/Traversable.ts +45 -63
- package/_src/typeclass/TraversableWithIndex.ts +37 -34
- package/_src/typeclass/Witherable.ts +28 -115
- package/_src/typeclass/WitherableWithIndex.ts +82 -115
- package/_src/types/extractions.ts +1 -1
- package/_src/util.ts +8 -0
- package/collection/Iterable/api/traverseConc.d.ts +4 -6
- package/collection/compat/Array/api.d.ts +10 -10
- package/collection/compat/Array/definition.d.ts +3 -3
- package/collection/compat/Array/derivations.d.ts +24 -0
- package/collection/compat/Array.d.ts +1 -0
- package/collection/compat/Record/instances.d.ts +12 -0
- package/collection/compat.d.ts +2 -0
- package/collection/immutable/Conc/api.d.ts +4 -6
- package/collection/immutable/Conc/definition.d.ts +24 -20
- package/collection/immutable/Conc/derivations.d.ts +14 -0
- package/collection/immutable/Conc.d.ts +1 -0
- package/collection/immutable/Dictionary/definition.d.ts +1 -1
- package/collection/immutable/HashMap/api.d.ts +13 -13
- package/collection/immutable/HashMap/definition.d.ts +10 -7
- package/collection/immutable/ImmutableArray/api.d.ts +22 -24
- package/collection/immutable/ImmutableArray/constructors.d.ts +2 -2
- package/collection/immutable/ImmutableArray/definition.d.ts +12 -6
- package/collection/immutable/ImmutableArray/derivations.d.ts +14 -0
- package/collection/immutable/ImmutableArray/instances.d.ts +17 -17
- package/collection/immutable/ImmutableArray.d.ts +1 -0
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +6 -5
- package/collection/immutable/ImmutableNonEmptyArray/constructors.d.ts +2 -2
- package/collection/immutable/ImmutableNonEmptyArray/definition.d.ts +9 -5
- package/collection/immutable/ImmutableNonEmptyArray/derivations.d.ts +14 -0
- package/collection/immutable/ImmutableNonEmptyArray/instances.d.ts +10 -10
- package/collection/immutable/ImmutableNonEmptyArray.d.ts +1 -0
- package/collection/immutable/List/definition.d.ts +2 -2
- package/collection/immutable/RoseTree/definition.d.ts +7 -5
- package/collection/immutable/Vector/api.d.ts +4 -4
- package/collection/immutable/Vector/definition.d.ts +9 -10
- package/collection/immutable/Vector/internal.d.ts +1 -1
- package/collection/immutable.d.ts +10 -0
- package/collection/mutable/HashMap.d.ts +1 -0
- package/collection/mutable.d.ts +4 -0
- package/collection/weak/IterableWeakMap.d.ts +9 -3
- package/collection/weak/IterableWeakSet.d.ts +10 -4
- package/collection/weak.d.ts +2 -0
- package/collection.d.ts +5 -0
- package/control/Eval/api.d.ts +6 -1
- package/control/Eval/definition.d.ts +6 -4
- package/control/Eval/instance.d.ts +3 -3
- package/control/Z/api.d.ts +32 -30
- package/control/Z/definition.d.ts +43 -37
- package/control/Z/instances.d.ts +2 -2
- package/control/Z/runtime.d.ts +9 -8
- package/control.d.ts +3 -0
- package/data/Const/definition.d.ts +8 -16
- package/data/Const/instances.d.ts +4 -3
- package/data/Datum/api.d.ts +188 -0
- package/data/Datum/definition.d.ts +75 -0
- package/data/Datum/instances.d.ts +32 -0
- package/data/DatumEither/api.d.ts +169 -0
- package/data/DatumEither/definition.d.ts +21 -0
- package/data/DecodeError/definition.d.ts +6 -0
- package/data/DecodeError/instances.d.ts +1 -0
- package/data/DecodeError.d.ts +1 -0
- package/data/Decoder/definition.d.ts +6 -4
- package/data/Either/api.d.ts +10 -0
- package/data/Either/definition.d.ts +8 -14
- package/data/Either/instances.d.ts +4 -3
- package/data/EitherT/api.d.ts +60 -0
- package/data/EitherT/definition.d.ts +12 -0
- package/data/Environment/api.d.ts +7 -5
- package/data/Environment/definition.d.ts +3 -3
- package/data/Identity/api.d.ts +2 -1
- package/data/Identity/definition.d.ts +2 -2
- package/data/Identity/instances.d.ts +3 -3
- package/data/Intervals.d.ts +53 -0
- package/data/Maybe/api.d.ts +2 -1
- package/data/Maybe/definition.d.ts +10 -5
- package/data/Maybe/instances.d.ts +6 -6
- package/data/Newtype.d.ts +9 -8
- package/data/Struct/definition.d.ts +1 -1
- package/data/Tag/definition.d.ts +2 -2
- package/data/Zipped.d.ts +24 -0
- package/data/function/api.d.ts +6 -0
- package/data/object/instances.d.ts +6 -1
- package/data/string/api.d.ts +1 -1
- package/data.d.ts +33 -0
- package/global.d.ts +237 -0
- package/index.d.ts +8 -0
- package/json.d.ts +3 -0
- package/optics/Traversal/api/fromTraversable.d.ts +1 -1
- package/optics/Traversal/definition.d.ts +2 -4
- package/optics.d.ts +10 -0
- package/package.json +6 -2
- package/typeclass/Align.d.ts +1 -1
- package/typeclass/Alt.d.ts +2 -4
- package/typeclass/Alternative.d.ts +1 -1
- package/typeclass/Applicative.d.ts +2 -1
- package/typeclass/ApplicativeExcept.d.ts +5 -13
- package/typeclass/Apply.d.ts +20 -32
- package/typeclass/Chain.d.ts +5 -13
- package/typeclass/Fail.d.ts +2 -7
- package/typeclass/Filterable.d.ts +7 -31
- package/typeclass/FilterableWithIndex.d.ts +7 -7
- package/typeclass/Foldable.d.ts +6 -19
- package/typeclass/FoldableWithIndex.d.ts +6 -19
- package/typeclass/Functor.d.ts +4 -11
- package/typeclass/FunctorWithIndex.d.ts +2 -2
- package/typeclass/Guard/definition.d.ts +1 -4
- package/typeclass/Monad.d.ts +1 -1
- package/typeclass/MonadExcept.d.ts +3 -4
- package/typeclass/Nil.d.ts +2 -7
- package/typeclass/Pointed.d.ts +2 -7
- package/typeclass/Semialign.d.ts +26 -32
- package/typeclass/Semimonoidal.d.ts +3 -8
- package/typeclass/Showable/show.d.ts +1 -1
- package/typeclass/Traversable.d.ts +21 -12
- package/typeclass/TraversableWithIndex.d.ts +19 -6
- package/typeclass/Witherable.d.ts +5 -19
- package/typeclass/WitherableWithIndex.d.ts +33 -19
- package/types/extractions.d.ts +1 -1
- package/util.d.ts +6 -0
|
@@ -106,7 +106,7 @@ export declare function incrementDepth(bits: number): number;
|
|
|
106
106
|
export declare function decrementDepth(bits: number): number;
|
|
107
107
|
/**
|
|
108
108
|
* Appends the value to the Vector by _mutating_ the Vector and its content.
|
|
109
|
-
* @tsplus fluent fncts.
|
|
109
|
+
* @tsplus fluent fncts.MutableVector push
|
|
110
110
|
* @tsplus location "@fncts/base/collection/immutable/Vector/internal"
|
|
111
111
|
*/
|
|
112
112
|
export declare function push<A>(l: MutableVector<A>, value: A): MutableVector<A>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type {} from "./immutable/Conc.js";
|
|
2
|
+
export type {} from "./immutable/HashMap.js";
|
|
3
|
+
export type {} from "./immutable/HashSet.js";
|
|
4
|
+
export type {} from "./immutable/ImmutableArray.js";
|
|
5
|
+
export type {} from "./immutable/ImmutableNonEmptyArray.js";
|
|
6
|
+
export type {} from "./immutable/List.js";
|
|
7
|
+
export type {} from "./immutable/Queue.js";
|
|
8
|
+
export type {} from "./immutable/RoseTree.js";
|
|
9
|
+
export type {} from "./immutable/SortedMap.js";
|
|
10
|
+
export type {} from "./immutable/Vector.js";
|
|
@@ -17,6 +17,7 @@ export declare class HashMap<K, V> implements Iterable<readonly [K, V]> {
|
|
|
17
17
|
private contentSize;
|
|
18
18
|
get size(): number;
|
|
19
19
|
has(key: K): boolean;
|
|
20
|
+
unsafeGet(key: K): V | undefined;
|
|
20
21
|
get(key: K): Maybe<V>;
|
|
21
22
|
set(key: K, value: V): Maybe<V>;
|
|
22
23
|
delete(key: K): Maybe<V>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @tsplus type fncts.IterableWeakMap
|
|
3
3
|
*/
|
|
4
|
-
export declare class IterableWeakMap<K extends object, V> implements Iterable<readonly [K, V]> {
|
|
4
|
+
export declare class IterableWeakMap<K extends object, V> implements Iterable<readonly [K, V]>, Map<K, V> {
|
|
5
5
|
private weakMap;
|
|
6
6
|
private refSet;
|
|
7
7
|
private finalizationGroup;
|
|
@@ -10,7 +10,13 @@ export declare class IterableWeakMap<K extends object, V> implements Iterable<re
|
|
|
10
10
|
set(this: this, key: K, value: V): this;
|
|
11
11
|
get(this: this, key: K): V | undefined;
|
|
12
12
|
delete(this: this, key: K): boolean;
|
|
13
|
-
[Symbol.iterator](this: this): IterableIterator<readonly [K, V]>;
|
|
14
|
-
entries(this: this): IterableIterator<readonly [K, V]>;
|
|
15
13
|
has(this: this, key: K): boolean;
|
|
14
|
+
clear(): void;
|
|
15
|
+
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: IterableWeakMap<K, V>): void;
|
|
16
|
+
get size(): number;
|
|
17
|
+
[Symbol.iterator](this: this): IterableIterator<[K, V]>;
|
|
18
|
+
get [Symbol.toStringTag](): string;
|
|
19
|
+
entries(this: this): IterableIterator<[K, V]>;
|
|
20
|
+
keys(this: this): IterableIterator<K>;
|
|
21
|
+
values(): IterableIterator<V>;
|
|
16
22
|
}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @tsplus type fncts.IterableWeakSet
|
|
3
3
|
*/
|
|
4
|
-
export declare class IterableWeakSet<A extends object> implements Iterable<A> {
|
|
4
|
+
export declare class IterableWeakSet<A extends object> implements Iterable<A>, Set<A> {
|
|
5
5
|
private weakMap;
|
|
6
6
|
private refSet;
|
|
7
7
|
private finalizationGroup;
|
|
8
8
|
private static cleanup;
|
|
9
|
-
constructor(iterable
|
|
9
|
+
constructor(iterable?: Iterable<A>);
|
|
10
10
|
add(this: this, value: A): this;
|
|
11
11
|
delete(this: this, value: A): boolean;
|
|
12
|
-
[Symbol.iterator](this: this): IterableIterator<A>;
|
|
13
|
-
entries(this: this): IterableIterator<A>;
|
|
14
12
|
has(this: this, value: A): boolean;
|
|
13
|
+
keys(): IterableIterator<A>;
|
|
14
|
+
values(): IterableIterator<A>;
|
|
15
|
+
forEach(f: (value: A, value2: A, set: Set<A>) => void, thisArg?: Set<A>): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
get size(): number;
|
|
18
|
+
[Symbol.iterator](this: this): IterableIterator<A>;
|
|
19
|
+
get [Symbol.toStringTag](): string;
|
|
20
|
+
entries(this: this): IterableIterator<[A, A]>;
|
|
15
21
|
}
|
package/collection.d.ts
ADDED
package/control/Eval/api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Eval } from "@fncts/base/control/Eval/definition";
|
|
2
|
+
import { Zipped } from "@fncts/base/data/Zipped";
|
|
2
3
|
import type { _A } from "@fncts/base/types";
|
|
3
4
|
/**
|
|
4
5
|
* @tsplus fluent fncts.control.Eval and
|
|
@@ -25,7 +26,11 @@ export declare function map_<A, B>(self: Eval<A>, f: (a: A) => B): Eval<B>;
|
|
|
25
26
|
* @tsplus location "@fncts/base/control/Eval/api"
|
|
26
27
|
*/
|
|
27
28
|
export declare function zipWith_<A, B, C>(self: Eval<A>, fb: Eval<B>, f: (a: A, b: B) => C): Eval<C>;
|
|
28
|
-
|
|
29
|
+
/**
|
|
30
|
+
* @tsplus fluent fncts.control.Eval zip
|
|
31
|
+
* @tsplus location "@fncts/base/control/Eval/api"
|
|
32
|
+
*/
|
|
33
|
+
export declare function zip_<A, B>(self: Eval<A>, fb: Eval<B>): Eval<Zipped.Make<A, B>>;
|
|
29
34
|
/**
|
|
30
35
|
* @tsplus fluent fncts.control.Eval ap
|
|
31
36
|
* @tsplus location "@fncts/base/control/Eval/api"
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { HKT } from "@fncts/typelevel/HKT";
|
|
2
2
|
export declare const EvalTypeId: unique symbol;
|
|
3
3
|
export declare type EvalTypeId = typeof EvalTypeId;
|
|
4
|
-
export interface EvalF extends
|
|
4
|
+
export interface EvalF extends HKT {
|
|
5
|
+
type: Eval<this["A"]>;
|
|
6
|
+
variance: {
|
|
7
|
+
A: "+";
|
|
8
|
+
};
|
|
5
9
|
}
|
|
6
10
|
/**
|
|
7
11
|
* @tsplus type fncts.control.Eval
|
|
8
12
|
*/
|
|
9
13
|
export interface Eval<A> {
|
|
10
14
|
readonly _typeId: EvalTypeId;
|
|
11
|
-
|
|
12
|
-
[HKT.A]?: () => A;
|
|
13
|
-
[HKT.T]?: Eval<HKT._A<this>>;
|
|
15
|
+
readonly _A: () => A;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* @tsplus type fncts.control.EvalOps
|
|
@@ -5,16 +5,16 @@ import type * as P from "@fncts/base/typeclass";
|
|
|
5
5
|
* @tsplus implicit
|
|
6
6
|
* @tsplus location "@fncts/base/control/Eval/instance"
|
|
7
7
|
*/
|
|
8
|
-
export declare const Functor: P.Functor<EvalF>;
|
|
8
|
+
export declare const Functor: P.Functor<EvalF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
9
9
|
/**
|
|
10
10
|
* @tsplus static fncts.control.EvalOps Apply
|
|
11
11
|
* @tsplus implicit
|
|
12
12
|
* @tsplus location "@fncts/base/control/Eval/instance"
|
|
13
13
|
*/
|
|
14
|
-
export declare const Apply: P.Apply<EvalF>;
|
|
14
|
+
export declare const Apply: P.Apply<EvalF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
15
15
|
/**
|
|
16
16
|
* @tsplus static fncts.control.EvalOps Applicative
|
|
17
17
|
* @tsplus implicit
|
|
18
18
|
* @tsplus location "@fncts/base/control/Eval/instance"
|
|
19
19
|
*/
|
|
20
|
-
export declare const Applicative: P.Applicative<EvalF>;
|
|
20
|
+
export declare const Applicative: P.Applicative<EvalF, import("@fncts/typelevel/HKT").HKT.None>;
|
package/control/Z/api.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Z } from "@fncts/base/control/Z/definition";
|
|
2
2
|
import { Either } from "@fncts/base/data/Either/definition";
|
|
3
3
|
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
|
4
|
+
import { Environment } from "@fncts/base/data/Environment/definition";
|
|
4
5
|
import { Lazy } from "@fncts/base/data/function/definition";
|
|
5
6
|
import { Cause } from "@fncts/base/data/Cause/definition";
|
|
6
7
|
import { Conc } from "@fncts/base/collection/immutable/Conc";
|
|
7
8
|
import { Predicate } from "@fncts/base/data/Predicate/definition";
|
|
9
|
+
import { Zipped } from "@fncts/base/data/Zipped";
|
|
8
10
|
/**
|
|
9
11
|
* @tsplus getter fncts.control.Z absolve
|
|
10
12
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
@@ -35,12 +37,12 @@ export declare function bimap_<W, S1, S2, R, E, A, G, B>(pab: Z<W, S1, S2, R, E,
|
|
|
35
37
|
* @tsplus fluent fncts.control.Z catchAll
|
|
36
38
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
37
39
|
*/
|
|
38
|
-
export declare function catchAll_<W, S1, S2, R, E, A, S3, R1, E1, B>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: E) => Z<W, S1, S3, R1, E1, B>): Z<W, S1, S3, R
|
|
40
|
+
export declare function catchAll_<W, S1, S2, R, E, A, S3, R1, E1, B>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: E) => Z<W, S1, S3, R1, E1, B>): Z<W, S1, S3, R | R1, E1, A | B>;
|
|
39
41
|
/**
|
|
40
42
|
* @tsplus fluent fncts.control.Z catchJust
|
|
41
43
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
42
44
|
*/
|
|
43
|
-
export declare function catchJust_<W, S1, S2, R, E, A, S3, R1, E1, B>(fa: Z<W, S1, S2, R, E, A>, f: (e: E) => Maybe<Z<W, S1, S3, R1, E1, B>>): Z<W, S1, S2 | S3, R
|
|
45
|
+
export declare function catchJust_<W, S1, S2, R, E, A, S3, R1, E1, B>(fa: Z<W, S1, S2, R, E, A>, f: (e: E) => Maybe<Z<W, S1, S3, R1, E1, B>>): Z<W, S1, S2 | S3, R | R1, E | E1, A | B>;
|
|
44
46
|
/**
|
|
45
47
|
* @tsplus fluent fncts.control.Z flatMap
|
|
46
48
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
@@ -50,7 +52,7 @@ export declare function flatMap_<W, S1, S2, R, E, A, W1, S3, R1, E1, B>(ma: Z<W,
|
|
|
50
52
|
* @tsplus fluent fncts.control.Z contramapEnvironment
|
|
51
53
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
52
54
|
*/
|
|
53
|
-
export declare function contramapEnvironment_<R0, W, S1, S2, R, E, A>(ma: Z<W, S1, S2, R, E, A>, f: (r0: R0) => R): Z<W, S1, S2, R0, E, A>;
|
|
55
|
+
export declare function contramapEnvironment_<R0, W, S1, S2, R, E, A>(ma: Z<W, S1, S2, R, E, A>, f: (r0: Environment<R0>) => Environment<R>): Z<W, S1, S2, R0, E, A>;
|
|
54
56
|
/**
|
|
55
57
|
* Transforms the initial state of this computation` with the specified
|
|
56
58
|
* function.
|
|
@@ -85,17 +87,17 @@ export declare function either<W, S1, S2, R, E, A>(fa: Z<W, S1, S2, R, E, A>): Z
|
|
|
85
87
|
* @tsplus static fncts.control.ZOps environment
|
|
86
88
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
87
89
|
*/
|
|
88
|
-
export declare function environment<R>(): Z<never, unknown, never, R, never, R
|
|
90
|
+
export declare function environment<R>(): Z<never, unknown, never, R, never, Environment<R>>;
|
|
89
91
|
/**
|
|
90
92
|
* @tsplus static fncts.control.ZOps environmentWith
|
|
91
93
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
92
94
|
*/
|
|
93
|
-
export declare function environmentWith<R0, A>(f: (r: R0) => A): Z<never, unknown, never, R0, never, A>;
|
|
95
|
+
export declare function environmentWith<R0, A>(f: (r: Environment<R0>) => A): Z<never, unknown, never, R0, never, A>;
|
|
94
96
|
/**
|
|
95
97
|
* @tsplus static fncts.control.ZOps environmentWithZ
|
|
96
98
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
97
99
|
*/
|
|
98
|
-
export declare function environmentWithZ<R0, W, S1, S2, R, E, A>(f: (r: R0) => Z<W, S1, S2, R, E, A>): Z<W, S1, S2, R
|
|
100
|
+
export declare function environmentWithZ<R0, W, S1, S2, R, E, A>(f: (r: Environment<R0>) => Z<W, S1, S2, R, E, A>): Z<W, S1, S2, R | R0, E, A>;
|
|
99
101
|
/**
|
|
100
102
|
* Erases the current log
|
|
101
103
|
* @tsplus getter fncts.control.Z erase
|
|
@@ -106,22 +108,22 @@ export declare function erase<W, S1, S2, R, E, A>(wa: Z<W, S1, S2, R, E, A>): Z<
|
|
|
106
108
|
* @tsplus static fncts.control.ZOps fail
|
|
107
109
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
108
110
|
*/
|
|
109
|
-
export declare function fail<E>(e: Lazy<E>, __tsplusTrace?: string): Z<never, unknown, never,
|
|
111
|
+
export declare function fail<E>(e: Lazy<E>, __tsplusTrace?: string): Z<never, unknown, never, never, E, never>;
|
|
110
112
|
/**
|
|
111
113
|
* @tsplus static fncts.control.ZOps failNow
|
|
112
114
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
113
115
|
*/
|
|
114
|
-
export declare function failNow<E>(e: E, __tsplusTrace?: string): Z<never, unknown, never,
|
|
116
|
+
export declare function failNow<E>(e: E, __tsplusTrace?: string): Z<never, unknown, never, never, E, never>;
|
|
115
117
|
/**
|
|
116
118
|
* @tsplus static fncts.control.ZOps failCause
|
|
117
119
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
118
120
|
*/
|
|
119
|
-
export declare function failCause<E>(cause: Lazy<Cause<E>>, __tsplusTrace?: string): Z<never, unknown, never,
|
|
121
|
+
export declare function failCause<E>(cause: Lazy<Cause<E>>, __tsplusTrace?: string): Z<never, unknown, never, never, E, never>;
|
|
120
122
|
/**
|
|
121
123
|
* @tsplus static fncts.control.ZOps failCauseNow
|
|
122
124
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
123
125
|
*/
|
|
124
|
-
export declare function failCauseNow<E>(cause: Cause<E>, __tsplusTrace?: string): Z<never, unknown, never,
|
|
126
|
+
export declare function failCauseNow<E>(cause: Cause<E>, __tsplusTrace?: string): Z<never, unknown, never, never, E, never>;
|
|
125
127
|
/**
|
|
126
128
|
* @tsplus getter fncts.control.Z flatten
|
|
127
129
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
@@ -132,12 +134,12 @@ export declare function flatten<W, S1, S2, R, E, A, W1, S3, R1, E1>(mma: Z<W, S1
|
|
|
132
134
|
* @tsplus static fncts.control.ZOps get
|
|
133
135
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
134
136
|
*/
|
|
135
|
-
export declare function get<S>(): Z<never, S, S,
|
|
137
|
+
export declare function get<S>(): Z<never, S, S, never, never, S>;
|
|
136
138
|
/**
|
|
137
139
|
* @tsplus static fncts.control.ZOps gets
|
|
138
140
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
139
141
|
*/
|
|
140
|
-
export declare function gets<S, A>(f: (s: S) => A): Z<never, S, S,
|
|
142
|
+
export declare function gets<S, A>(f: (s: S) => A): Z<never, S, S, never, never, A>;
|
|
141
143
|
/**
|
|
142
144
|
* @tsplus static fncts.control.ZOps getsZ
|
|
143
145
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
@@ -147,12 +149,12 @@ export declare function getsZ<S, W, R, E, A>(f: (s: S) => Z<W, S, S, R, E, A>):
|
|
|
147
149
|
* @tsplus static fncts.control.ZOps halt
|
|
148
150
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
149
151
|
*/
|
|
150
|
-
export declare function halt(defect: Lazy<unknown>, __tsplusTrace?: string): Z<never, unknown, never,
|
|
152
|
+
export declare function halt(defect: Lazy<unknown>, __tsplusTrace?: string): Z<never, unknown, never, never, never, never>;
|
|
151
153
|
/**
|
|
152
154
|
* @tsplus static fncts.control.ZOps haltNow
|
|
153
155
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
154
156
|
*/
|
|
155
|
-
export declare function haltNow(defect: unknown, __tsplusTrace?: string): Z<never, unknown, never,
|
|
157
|
+
export declare function haltNow(defect: unknown, __tsplusTrace?: string): Z<never, unknown, never, never, never, never>;
|
|
156
158
|
/**
|
|
157
159
|
* @tsplus getter fncts.control.Z listen
|
|
158
160
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
@@ -199,17 +201,17 @@ export declare function match_<W, S1, S2, R, E, A, B, C>(fa: Z<W, S1, S2, R, E,
|
|
|
199
201
|
* @tsplus fluent fncts.control.Z matchZ
|
|
200
202
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
201
203
|
*/
|
|
202
|
-
export declare function matchZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: E) => Z<W1, S5, S3, R1, E1, B>, onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S1 & S5, S3 | S4, R
|
|
204
|
+
export declare function matchZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: E) => Z<W1, S5, S3, R1, E1, B>, onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S1 & S5, S3 | S4, R | R1 | R2, E1 | E2, B | C>;
|
|
203
205
|
/**
|
|
204
206
|
* @tsplus fluent fncts.control.Z matchCauseZ
|
|
205
207
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
206
208
|
*/
|
|
207
|
-
export declare function matchCauseZ_<W, S1, S2, R, E, A, W1, S0, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: Cause<E>) => Z<W1, S0, S3, R1, E1, B>, onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S0 & S1, S3 | S4, R
|
|
209
|
+
export declare function matchCauseZ_<W, S1, S2, R, E, A, W1, S0, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: Cause<E>) => Z<W1, S0, S3, R1, E1, B>, onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S0 & S1, S3 | S4, R | R1 | R2, E1 | E2, B | C>;
|
|
208
210
|
/**
|
|
209
211
|
* @tsplus fluent fncts.control.Z matchLogZ
|
|
210
212
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
211
213
|
*/
|
|
212
|
-
export declare function matchLogZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (ws: Conc<W>, e: E) => Z<W1, S5, S3, R1, E1, B>, onSuccess: (ws: Conc<W>, a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S1 & S5, S3 | S4, R
|
|
214
|
+
export declare function matchLogZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (ws: Conc<W>, e: E) => Z<W1, S5, S3, R1, E1, B>, onSuccess: (ws: Conc<W>, a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S1 & S5, S3 | S4, R | R1 | R2, E1 | E2, B | C>;
|
|
213
215
|
/**
|
|
214
216
|
* Recovers from errors by accepting one computation to execute for the case
|
|
215
217
|
* of an error, and one computation to execute for the case of success. More powerful
|
|
@@ -225,36 +227,36 @@ export declare function matchLogCauseZ_<W, S1, S2, R, E, A, W1, S0, S3, R1, E1,
|
|
|
225
227
|
* @tsplus static fncts.control.ZOps modify
|
|
226
228
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
227
229
|
*/
|
|
228
|
-
export declare function modify<S1, S2, A>(f: (s: S1) => readonly [A, S2]): Z<never, S1, S2,
|
|
230
|
+
export declare function modify<S1, S2, A>(f: (s: S1) => readonly [A, S2]): Z<never, S1, S2, never, never, A>;
|
|
229
231
|
/**
|
|
230
232
|
* Constructs a computation that may fail from the specified modify function.
|
|
231
233
|
* @tsplus static fncts.control.ZOps modifyEither
|
|
232
234
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
233
235
|
*/
|
|
234
|
-
export declare function modifyEither<S1, S2, E, A>(f: (s: S1) => Either<E, readonly [A, S2]>): Z<never, S1, S2,
|
|
236
|
+
export declare function modifyEither<S1, S2, E, A>(f: (s: S1) => Either<E, readonly [A, S2]>): Z<never, S1, S2, never, E, A>;
|
|
235
237
|
/**
|
|
236
238
|
* @tsplus fluent fncts.control.Z orElse
|
|
237
239
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
238
240
|
*/
|
|
239
|
-
export declare function orElse_<W, S1, S2, R, E, A, W1, S3, R1, E1, A1>(fa: Z<W, S1, S2, R, E, A>, fb: Lazy<Z<W1, S1, S3, R1, E1, A1>>): Z<W | W1, S1, S2 | S3, R
|
|
241
|
+
export declare function orElse_<W, S1, S2, R, E, A, W1, S3, R1, E1, A1>(fa: Z<W, S1, S2, R, E, A>, fb: Lazy<Z<W1, S1, S3, R1, E1, A1>>): Z<W | W1, S1, S2 | S3, R | R1, E | E1, A | A1>;
|
|
240
242
|
/**
|
|
241
243
|
* Executes this computation and returns its value, if it succeeds, but
|
|
242
244
|
* otherwise executes the specified computation.
|
|
243
245
|
* @tsplus fluent fncts.control.Z orElseEither
|
|
244
246
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
245
247
|
*/
|
|
246
|
-
export declare function orElseEither_<W, S1, S2, R, E, A, S3, S4, R1, E1, A1>(fa: Z<W, S1, S2, R, E, A>, that: Lazy<Z<W, S3, S4, R1, E1, A1>>): Z<W, S1 & S3, S2 | S4, R
|
|
248
|
+
export declare function orElseEither_<W, S1, S2, R, E, A, S3, S4, R1, E1, A1>(fa: Z<W, S1, S2, R, E, A>, that: Lazy<Z<W, S3, S4, R1, E1, A1>>): Z<W, S1 & S3, S2 | S4, R | R1, E1, Either<A, A1>>;
|
|
247
249
|
/**
|
|
248
250
|
* @tsplus fluent fncts.control.Z provideEnvironment
|
|
249
251
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
250
252
|
*/
|
|
251
|
-
export declare function provideEnvironment_<W, S1, S2, R, E, A>(fa: Z<W, S1, S2, R, E, A>, r: R): Z<W, S1, S2,
|
|
253
|
+
export declare function provideEnvironment_<W, S1, S2, R, E, A>(fa: Z<W, S1, S2, R, E, A>, r: Environment<R>): Z<W, S1, S2, never, E, A>;
|
|
252
254
|
/**
|
|
253
255
|
* Constructs a computation that sets the state to the specified value.
|
|
254
256
|
* @tsplus static fncts.control.ZOps put
|
|
255
257
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
256
258
|
*/
|
|
257
|
-
export declare function put<S>(s: S): Z<never, unknown, S,
|
|
259
|
+
export declare function put<S>(s: S): Z<never, unknown, S, never, never, void>;
|
|
258
260
|
/**
|
|
259
261
|
* Repeats this computation the specified number of times (or until the first failure)
|
|
260
262
|
* passing the updated state to each successive repetition.
|
|
@@ -273,12 +275,12 @@ export declare function repeatUntil_<W, S1, S2 extends S1, R, E, A>(ma: Z<W, S1,
|
|
|
273
275
|
* @tsplus static fncts.control.ZOps succeed
|
|
274
276
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
275
277
|
*/
|
|
276
|
-
export declare function succeed<A, W = never, S1 = unknown, S2 = never>(effect: Lazy<A>, __tsplusTrace?: string): Z<W, S1, S2,
|
|
278
|
+
export declare function succeed<A, W = never, S1 = unknown, S2 = never>(effect: Lazy<A>, __tsplusTrace?: string): Z<W, S1, S2, never, never, A>;
|
|
277
279
|
/**
|
|
278
280
|
* @tsplus static fncts.control.ZOps succeedNow
|
|
279
281
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
280
282
|
*/
|
|
281
|
-
export declare function succeedNow<A, W = never, S1 = unknown, S2 = never>(a: A, __tsplusTrace?: string): Z<W, S1, S2,
|
|
283
|
+
export declare function succeedNow<A, W = never, S1 = unknown, S2 = never>(a: A, __tsplusTrace?: string): Z<W, S1, S2, never, never, A>;
|
|
282
284
|
/**
|
|
283
285
|
* @tsplus fluent fncts.control.Z tap
|
|
284
286
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
@@ -288,12 +290,12 @@ export declare function tap_<W, S1, S2, R, E, A, W1, S3, R1, E1, B>(ma: Z<W, S1,
|
|
|
288
290
|
* @tsplus static fncts.control.ZOps tell
|
|
289
291
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
290
292
|
*/
|
|
291
|
-
export declare function tell<W>(w: W): Z<W, unknown, never,
|
|
293
|
+
export declare function tell<W>(w: W): Z<W, unknown, never, never, never, void>;
|
|
292
294
|
/**
|
|
293
295
|
* @tsplus static fncts.control.ZOps tellAll
|
|
294
296
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
295
297
|
*/
|
|
296
|
-
export declare function tellAll<W>(ws: Conc<W>): Z<W, unknown, never,
|
|
298
|
+
export declare function tellAll<W>(ws: Conc<W>): Z<W, unknown, never, never, never, void>;
|
|
297
299
|
/**
|
|
298
300
|
* Like `map`, but also allows the state to be modified.
|
|
299
301
|
* @tsplus fluent fncts.control.Z transform
|
|
@@ -304,13 +306,13 @@ export declare function transform_<W, S1, S2, R, E, A, S3, B>(ma: Z<W, S1, S2, R
|
|
|
304
306
|
* @tsplus static fncts.control.ZOps unit
|
|
305
307
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
306
308
|
*/
|
|
307
|
-
export declare const unit: Z<never, unknown, never,
|
|
309
|
+
export declare const unit: Z<never, unknown, never, never, never, void>;
|
|
308
310
|
/**
|
|
309
311
|
* Constructs a computation from the specified update function.
|
|
310
312
|
* @tsplus static fncts.control.ZOps update
|
|
311
313
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
312
314
|
*/
|
|
313
|
-
export declare function update<S1, S2>(f: (s: S1) => S2): Z<never, S1, S2,
|
|
315
|
+
export declare function update<S1, S2>(f: (s: S1) => S2): Z<never, S1, S2, never, never, void>;
|
|
314
316
|
/**
|
|
315
317
|
* @tsplus fluent fncts.control.Z write
|
|
316
318
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
@@ -325,7 +327,7 @@ export declare function writeAll_<W, S1, S2, R, E, A, W1>(ma: Z<W, S1, S2, R, E,
|
|
|
325
327
|
* @tsplus fluent fncts.control.Z zip
|
|
326
328
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
327
329
|
*/
|
|
328
|
-
export declare function zip_<W, S1, S2, R, E, A, W1, S3, Q, D, B>(fa: Z<W, S1, S2, R, E, A>, fb: Z<W1, S2, S3, Q, D, B>): Z<W | W1, S1, S3, Q & R, D | E,
|
|
330
|
+
export declare function zip_<W, S1, S2, R, E, A, W1, S3, Q, D, B>(fa: Z<W, S1, S2, R, E, A>, fb: Z<W1, S2, S3, Q, D, B>): Z<W | W1, S1, S3, Q & R, D | E, Zipped.Make<A, B>>;
|
|
329
331
|
/**
|
|
330
332
|
* @tsplus fluent fncts.control.Z zipFirst
|
|
331
333
|
* @tsplus location "@fncts/base/control/Z/api"
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { HKT } from "@fncts/typelevel/HKT";
|
|
2
2
|
import { Cause } from "@fncts/base/data/Cause/definition";
|
|
3
3
|
import { Conc } from "@fncts/base/collection/immutable/Conc";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { Environment } from "@fncts/base/data/Environment/definition";
|
|
5
|
+
export interface ZF extends HKT {
|
|
6
|
+
type: Z<this["W"], this["S"], this["S"], this["R"], this["E"], this["A"]>;
|
|
7
|
+
variance: {
|
|
8
|
+
W: "+";
|
|
9
|
+
S: "_";
|
|
10
|
+
R: "-";
|
|
11
|
+
E: "+";
|
|
12
|
+
A: "+";
|
|
13
|
+
};
|
|
7
14
|
}
|
|
8
15
|
export declare const ZTypeId: unique symbol;
|
|
9
16
|
export declare type ZTypeId = typeof ZTypeId;
|
|
@@ -22,30 +29,29 @@ export declare type ZTypeId = typeof ZTypeId;
|
|
|
22
29
|
*/
|
|
23
30
|
export declare abstract class Z<W, S1, S2, R, E, A> {
|
|
24
31
|
readonly _typeId: ZTypeId;
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly [HKT.A]: () => A;
|
|
32
|
-
readonly [HKT.T]: Z<HKT._W<this>, HKT._Q<this>, HKT._S<this>, HKT._R<this>, HKT._E<this>, HKT._A<this>>;
|
|
33
|
-
}
|
|
34
|
-
export interface ZFixed<W, S, R, E, A> {
|
|
35
|
-
readonly _typeId: ZTypeId;
|
|
36
|
-
readonly [HKT.F]: ZF;
|
|
37
|
-
readonly [HKT.W]: () => W;
|
|
38
|
-
readonly [HKT.Q]: (_: S) => void;
|
|
39
|
-
readonly [HKT.S]: () => S;
|
|
40
|
-
readonly [HKT.R]: (_: R) => void;
|
|
41
|
-
readonly [HKT.E]: () => E;
|
|
42
|
-
readonly [HKT.A]: () => A;
|
|
43
|
-
readonly [HKT.T]: Z<HKT._W<this>, HKT._S<this>, HKT._S<this>, HKT._R<this>, HKT._E<this>, HKT._A<this>>;
|
|
32
|
+
readonly _W: () => W;
|
|
33
|
+
readonly _S1: (_: S1) => void;
|
|
34
|
+
readonly _S2: () => S2;
|
|
35
|
+
readonly _R: () => R;
|
|
36
|
+
readonly _E: () => E;
|
|
37
|
+
readonly _A: () => A;
|
|
44
38
|
}
|
|
45
39
|
/**
|
|
46
40
|
* @tsplus unify fncts.control.Z
|
|
47
41
|
*/
|
|
48
|
-
export declare function unifyZ<X extends Z<any, any, any, any, any, any>>(_: X): Z<
|
|
42
|
+
export declare function unifyZ<X extends Z<any, any, any, any, any, any>>(_: X): Z<[
|
|
43
|
+
X
|
|
44
|
+
] extends [Z<infer W, any, any, any, any, any>] ? W : never, [
|
|
45
|
+
X
|
|
46
|
+
] extends [Z<any, infer S1, any, any, any, any>] ? S1 : never, [
|
|
47
|
+
X
|
|
48
|
+
] extends [Z<any, any, infer S2, any, any, any>] ? S2 : never, [
|
|
49
|
+
X
|
|
50
|
+
] extends [Z<any, any, any, infer R, any, any>] ? R : never, [
|
|
51
|
+
X
|
|
52
|
+
] extends [Z<any, any, any, any, infer E, any>] ? E : never, [
|
|
53
|
+
X
|
|
54
|
+
] extends [Z<any, any, any, any, any, infer A>] ? A : never>;
|
|
49
55
|
/**
|
|
50
56
|
* @tsplus static fncts.control.ZOps isZ
|
|
51
57
|
* @tsplus location "@fncts/base/control/Z/definition"
|
|
@@ -59,18 +65,18 @@ export declare const enum ZTag {
|
|
|
59
65
|
Modify = "Modify",
|
|
60
66
|
Chain = "Chain",
|
|
61
67
|
Match = "Match",
|
|
62
|
-
|
|
68
|
+
Access = "Access",
|
|
63
69
|
Provide = "Provide",
|
|
64
70
|
Tell = "Tell",
|
|
65
71
|
Listen = "Listen",
|
|
66
72
|
MapLog = "MapLog"
|
|
67
73
|
}
|
|
68
|
-
export declare class SucceedNow<A> extends Z<never, unknown, never,
|
|
74
|
+
export declare class SucceedNow<A> extends Z<never, unknown, never, never, never, A> {
|
|
69
75
|
readonly value: A;
|
|
70
76
|
readonly _tag = ZTag.SucceedNow;
|
|
71
77
|
constructor(value: A);
|
|
72
78
|
}
|
|
73
|
-
export declare class Succeed<A> extends Z<never, unknown, never,
|
|
79
|
+
export declare class Succeed<A> extends Z<never, unknown, never, never, never, A> {
|
|
74
80
|
readonly effect: () => A;
|
|
75
81
|
readonly _tag = ZTag.Succeed;
|
|
76
82
|
constructor(effect: () => A);
|
|
@@ -80,12 +86,12 @@ export declare class Defer<W, S1, S2, R, E, A> extends Z<W, S1, S2, R, E, A> {
|
|
|
80
86
|
readonly _tag = ZTag.Defer;
|
|
81
87
|
constructor(make: () => Z<W, S1, S2, R, E, A>);
|
|
82
88
|
}
|
|
83
|
-
export declare class Fail<E> extends Z<never, unknown, never,
|
|
89
|
+
export declare class Fail<E> extends Z<never, unknown, never, never, E, never> {
|
|
84
90
|
readonly cause: Cause<E>;
|
|
85
91
|
readonly _tag = ZTag.Fail;
|
|
86
92
|
constructor(cause: Cause<E>);
|
|
87
93
|
}
|
|
88
|
-
export declare class Modify<S1, S2, A> extends Z<never, S1, S2,
|
|
94
|
+
export declare class Modify<S1, S2, A> extends Z<never, S1, S2, never, never, A> {
|
|
89
95
|
readonly run: (s1: S1) => readonly [A, S2];
|
|
90
96
|
readonly _tag = ZTag.Modify;
|
|
91
97
|
constructor(run: (s1: S1) => readonly [A, S2]);
|
|
@@ -103,18 +109,18 @@ export declare class Match<W, S1, S2, S5, R, E, A, W1, S3, R1, E1, B, W2, S4, R2
|
|
|
103
109
|
readonly _tag = ZTag.Match;
|
|
104
110
|
constructor(z: Z<W, S1, S2, R, E, A>, onFailure: (ws: Conc<W>, e: Cause<E>) => Z<W1, S5, S3, R1, E1, B>, onSuccess: (ws: Conc<W>, a: A) => Z<W2, S2, S4, R2, E2, C>);
|
|
105
111
|
}
|
|
106
|
-
export declare class
|
|
107
|
-
readonly asks: (r: R0) => Z<W, S1, S2, R, E, A>;
|
|
108
|
-
readonly _tag = ZTag.
|
|
109
|
-
constructor(asks: (r: R0) => Z<W, S1, S2, R, E, A>);
|
|
112
|
+
export declare class Access<W, R0, S1, S2, R, E, A> extends Z<W, S1, S2, R0 | R, E, A> {
|
|
113
|
+
readonly asks: (r: Environment<R0>) => Z<W, S1, S2, R, E, A>;
|
|
114
|
+
readonly _tag = ZTag.Access;
|
|
115
|
+
constructor(asks: (r: Environment<R0>) => Z<W, S1, S2, R, E, A>);
|
|
110
116
|
}
|
|
111
|
-
export declare class Provide<W, S1, S2, R, E, A> extends Z<W, S1, S2,
|
|
117
|
+
export declare class Provide<W, S1, S2, R, E, A> extends Z<W, S1, S2, never, E, A> {
|
|
112
118
|
readonly ma: Z<W, S1, S2, R, E, A>;
|
|
113
|
-
readonly env: R
|
|
119
|
+
readonly env: Environment<R>;
|
|
114
120
|
readonly _tag = ZTag.Provide;
|
|
115
|
-
constructor(ma: Z<W, S1, S2, R, E, A>, env: R);
|
|
121
|
+
constructor(ma: Z<W, S1, S2, R, E, A>, env: Environment<R>);
|
|
116
122
|
}
|
|
117
|
-
export declare class Tell<W> extends Z<W, unknown, never,
|
|
123
|
+
export declare class Tell<W> extends Z<W, unknown, never, never, never, void> {
|
|
118
124
|
readonly log: Conc<W>;
|
|
119
125
|
readonly _tag = ZTag.Tell;
|
|
120
126
|
constructor(log: Conc<W>);
|
|
@@ -125,7 +131,7 @@ export declare class MapLog<W, S1, S2, R, E, A, W1> extends Z<W1, S1, S2, R, E,
|
|
|
125
131
|
readonly _tag = ZTag.MapLog;
|
|
126
132
|
constructor(ma: Z<W, S1, S2, R, E, A>, modifyLog: (ws: Conc<W>) => Conc<W1>);
|
|
127
133
|
}
|
|
128
|
-
export declare type Concrete = SucceedNow<any> | Fail<any> | Modify<any, any, any> | Chain<any, any, any, any, any, any, any, any, any, any, any> | Match<any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any> |
|
|
134
|
+
export declare type Concrete = SucceedNow<any> | Fail<any> | Modify<any, any, any> | Chain<any, any, any, any, any, any, any, any, any, any, any> | Match<any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any> | Access<any, any, any, any, any, any, any> | Provide<any, any, any, any, any, any> | Defer<any, any, any, any, any, any> | Succeed<any> | Tell<any> | MapLog<any, any, any, any, any, any, any>;
|
|
129
135
|
/**
|
|
130
136
|
* @tsplus static fncts.control.ZOps concrete
|
|
131
137
|
* @tsplus location "@fncts/base/control/Z/definition"
|
package/control/Z/instances.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as P from "../../typeclass.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ZF } from "./definition.js";
|
|
3
3
|
/**
|
|
4
4
|
* @tsplus static fncts.control.ZOps Applicative
|
|
5
5
|
* @tsplus implicit
|
|
6
6
|
* @tsplus location "@fncts/base/control/Z/instances"
|
|
7
7
|
*/
|
|
8
|
-
export declare const Applicative: P.Applicative<
|
|
8
|
+
export declare const Applicative: P.Applicative<ZF, import("@fncts/typelevel/HKT.js").HKT.None>;
|
package/control/Z/runtime.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Z } from "@fncts/base/control/Z/definition";
|
|
2
2
|
import { Conc } from "@fncts/base/collection/immutable/Conc";
|
|
3
3
|
import { Exit } from "@fncts/base/data/Exit/definition";
|
|
4
|
+
import { Environment } from "@fncts/base/data/Environment/definition";
|
|
4
5
|
import { Cause } from "@fncts/base/data/Cause/definition";
|
|
5
6
|
/**
|
|
6
7
|
* Runs this computation with the specified initial state, returning either a
|
|
@@ -8,48 +9,48 @@ import { Cause } from "@fncts/base/data/Cause/definition";
|
|
|
8
9
|
* @tsplus fluent fncts.control.Z unsafeRunAll
|
|
9
10
|
* @tsplus location "@fncts/base/control/Z/runtime"
|
|
10
11
|
*/
|
|
11
|
-
export declare function unsafeRunAll_<W, S1, S2, E, A>(ma: Z<W, S1, S2,
|
|
12
|
+
export declare function unsafeRunAll_<W, S1, S2, E, A>(ma: Z<W, S1, S2, never, E, A>, s: S1): readonly [Conc<W>, Exit<E, readonly [S2, A]>];
|
|
12
13
|
/**
|
|
13
14
|
* Runs this computation with the specified initial state, returning both
|
|
14
15
|
* the updated state and the result.
|
|
15
16
|
* @tsplus fluent fncts.control.Z unsafeRun
|
|
16
17
|
* @tsplus location "@fncts/base/control/Z/runtime"
|
|
17
18
|
*/
|
|
18
|
-
export declare function unsafeRun_<W, S1, S2, A>(ma: Z<W, S1, S2,
|
|
19
|
+
export declare function unsafeRun_<W, S1, S2, A>(ma: Z<W, S1, S2, never, never, A>, s: S1): readonly [S2, A];
|
|
19
20
|
/**
|
|
20
21
|
* Runs this computation, returning the result.
|
|
21
22
|
* @tsplus getter fncts.control.Z unsafeRunResult
|
|
22
23
|
* @tsplus location "@fncts/base/control/Z/runtime"
|
|
23
24
|
*/
|
|
24
|
-
export declare function unsafeRunResult<W, A>(ma: Z<W, unknown, unknown,
|
|
25
|
+
export declare function unsafeRunResult<W, A>(ma: Z<W, unknown, unknown, never, never, A>): A;
|
|
25
26
|
/**
|
|
26
27
|
* Runs this computation with the given environment, returning the result.
|
|
27
28
|
* @tsplus fluent fncts.control.Z unsafeRunReader
|
|
28
29
|
* @tsplus location "@fncts/base/control/Z/runtime"
|
|
29
30
|
*/
|
|
30
|
-
export declare function unsafeRunReader_<W, R, A>(ma: Z<W, unknown, never, R, never, A>, r: R): A;
|
|
31
|
+
export declare function unsafeRunReader_<W, R, A>(ma: Z<W, unknown, never, R, never, A>, r: Environment<R>): A;
|
|
31
32
|
/**
|
|
32
33
|
* Runs this computation with the specified initial state, returning the
|
|
33
34
|
* updated state and discarding the result.
|
|
34
35
|
* @tsplus fluent fncts.control.Z unsafeRunState
|
|
35
36
|
* @tsplus location "@fncts/base/control/Z/runtime"
|
|
36
37
|
*/
|
|
37
|
-
export declare function unsafeRunState_<W, S1, S2, A>(ma: Z<W, S1, S2,
|
|
38
|
+
export declare function unsafeRunState_<W, S1, S2, A>(ma: Z<W, S1, S2, never, never, A>, s: S1): S2;
|
|
38
39
|
/**
|
|
39
40
|
* Runs this computation with the specified initial state, returning the
|
|
40
41
|
* result and discarding the updated state.
|
|
41
42
|
* @tsplus fluent fncts.control.Z unsafeRunStateResult
|
|
42
43
|
* @tsplus location "@fncts/base/control/Z/runtime"
|
|
43
44
|
*/
|
|
44
|
-
export declare function unsafeRunStateResult_<W, S1, S2, A>(ma: Z<W, S1, S2,
|
|
45
|
+
export declare function unsafeRunStateResult_<W, S1, S2, A>(ma: Z<W, S1, S2, never, never, A>, s: S1): A;
|
|
45
46
|
/**
|
|
46
47
|
* Runs this computation returning either the result or error
|
|
47
48
|
* @tsplus getter fncts.control.Z unsafeRunExit
|
|
48
49
|
* @tsplus location "@fncts/base/control/Z/runtime"
|
|
49
50
|
*/
|
|
50
|
-
export declare function unsafeRunExit<E, A>(ma: Z<never, unknown, unknown,
|
|
51
|
+
export declare function unsafeRunExit<E, A>(ma: Z<never, unknown, unknown, never, E, A>): Exit<E, A>;
|
|
51
52
|
/**
|
|
52
53
|
* @tsplus getter fncts.control.Z unsafeRunWriter
|
|
53
54
|
* @tsplus location "@fncts/base/control/Z/runtime"
|
|
54
55
|
*/
|
|
55
|
-
export declare function unsafeRunWriter<W, A>(ma: Z<W, unknown, unknown,
|
|
56
|
+
export declare function unsafeRunWriter<W, A>(ma: Z<W, unknown, unknown, never, never, A>): readonly [Conc<W>, A];
|
package/control.d.ts
ADDED