@fncts/base 0.0.12 → 0.0.13
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/Record/instances.cjs +67 -16
- package/_cjs/collection/compat/Record/instances.cjs.map +1 -1
- 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/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 +136 -153
- package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs +10 -12
- package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableArray/instances.cjs +11 -9
- package/_cjs/collection/immutable/ImmutableArray/instances.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/definition.cjs +3 -9
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +8 -2
- package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -1
- 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/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/control/Eval/api.cjs +9 -3
- package/_cjs/control/Eval/api.cjs.map +1 -1
- package/_cjs/control/Eval/definition.cjs +0 -7
- 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 +9 -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 +15 -13
- package/_cjs/control/Z/runtime.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 +7 -5
- 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 +3 -3
- package/_cjs/data/DecodeError/definition.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.cjs +21 -5
- package/_cjs/data/Either/api.cjs.map +1 -1
- package/_cjs/data/Either/definition.cjs +3 -10
- 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/Struct/definition.cjs +2 -4
- package/_cjs/data/Struct/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/optics/Optional/definition.cjs +4 -6
- package/_cjs/optics/Optional/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 +3 -3
- package/_cjs/optics/Traversal/definition.cjs.map +1 -1
- 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/MonadExcept.cjs +2 -10
- package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
- package/_cjs/typeclass/Nil.cjs +0 -10
- package/_cjs/typeclass/Nil.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/_mjs/collection/Iterable/api/traverseConc.mjs +16 -21
- package/_mjs/collection/Iterable/api/traverseConc.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/immutable/Conc/api.mjs +7 -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/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/ImmutableArray/api.mjs +128 -147
- package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs +10 -11
- package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs +9 -8
- package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +18 -19
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs +0 -2
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +4 -3
- package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -1
- package/_mjs/collection/immutable/RoseTree/definition.mjs +13 -14
- package/_mjs/collection/immutable/RoseTree/definition.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/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/control/Eval/api.mjs +9 -4
- package/_mjs/control/Eval/api.mjs.map +1 -1
- package/_mjs/control/Eval/definition.mjs +0 -1
- 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/Z/api.mjs +16 -15
- package/_mjs/control/Z/api.mjs.map +1 -1
- package/_mjs/control/Z/definition.mjs +4 -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 +14 -13
- package/_mjs/control/Z/runtime.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 +6 -5
- package/_mjs/data/Const/instances.mjs.map +1 -1
- package/_mjs/data/Datum/api.mjs +403 -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 +3 -3
- package/_mjs/data/DecodeError/definition.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.mjs +16 -3
- package/_mjs/data/Either/api.mjs.map +1 -1
- package/_mjs/data/Either/definition.mjs +0 -2
- package/_mjs/data/Either/definition.mjs.map +1 -1
- package/_mjs/data/Either/instances.mjs +23 -22
- 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/Struct/definition.mjs +2 -3
- package/_mjs/data/Struct/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/optics/Optional/definition.mjs +4 -5
- package/_mjs/optics/Optional/definition.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs +1 -1
- package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs +1 -1
- package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
- package/_mjs/optics/Traversal/definition.mjs +3 -3
- package/_mjs/optics/Traversal/definition.mjs.map +1 -1
- 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/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/definition.mjs +0 -2
- package/_mjs/typeclass/Guard/definition.mjs.map +1 -1
- package/_mjs/typeclass/MonadExcept.mjs +2 -9
- package/_mjs/typeclass/MonadExcept.mjs.map +1 -1
- package/_mjs/typeclass/Nil.mjs +1 -8
- package/_mjs/typeclass/Nil.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/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/_src/collection/Iterable/api/traverseConc.ts +24 -21
- package/_src/collection/compat/Record/instances.ts +44 -0
- package/_src/collection/immutable/Conc/api.ts +9 -11
- package/_src/collection/immutable/Conc/definition.ts +9 -5
- 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 +56 -113
- package/_src/collection/immutable/ImmutableArray/definition.ts +8 -5
- package/_src/collection/immutable/ImmutableArray/instances.ts +42 -42
- package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +13 -11
- package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +8 -3
- package/_src/collection/immutable/ImmutableNonEmptyArray/instances.ts +24 -25
- 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 +9 -9
- package/_src/collection/weak/IterableWeakMap.ts +50 -5
- package/_src/collection/weak/IterableWeakSet.ts +57 -9
- package/_src/control/Eval/api.ts +5 -2
- package/_src/control/Eval/definition.ts +7 -4
- package/_src/control/Eval/instance.ts +7 -7
- package/_src/control/Z/api.ts +16 -25
- package/_src/control/Z/definition.ts +32 -31
- package/_src/control/Z/instances.ts +3 -3
- package/_src/control/Z/runtime.ts +7 -7
- 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 +3 -3
- package/_src/data/Decoder/definition.ts +7 -4
- package/_src/data/Either/api.ts +12 -2
- package/_src/data/Either/definition.ts +9 -14
- 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 +7 -4
- 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/Zipped.ts +52 -0
- package/_src/data/function/api.ts +8 -0
- package/_src/data/object/instances.ts +11 -1
- 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/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 +8 -10
- 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/collection/Iterable/api/traverseConc.d.ts +4 -6
- package/collection/compat/Record/instances.d.ts +12 -0
- package/collection/immutable/Conc/api.d.ts +4 -6
- package/collection/immutable/Conc/definition.d.ts +9 -6
- 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 +16 -18
- package/collection/immutable/ImmutableArray/definition.d.ts +8 -6
- package/collection/immutable/ImmutableArray/instances.d.ts +17 -17
- package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +6 -5
- package/collection/immutable/ImmutableNonEmptyArray/definition.d.ts +7 -3
- package/collection/immutable/ImmutableNonEmptyArray/instances.d.ts +10 -10
- 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 +8 -9
- package/collection/weak/IterableWeakMap.d.ts +9 -3
- package/collection/weak/IterableWeakSet.d.ts +10 -4
- 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 +8 -6
- package/control/Z/definition.d.ts +38 -32
- package/control/Z/instances.d.ts +2 -2
- package/control/Z/runtime.d.ts +5 -4
- 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/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 +7 -4
- 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/optics/Traversal/api/fromTraversable.d.ts +1 -1
- package/optics/Traversal/definition.d.ts +2 -4
- package/package.json +2 -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/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
|
@@ -4,84 +4,84 @@ import type * as P from "@fncts/base/typeclass";
|
|
|
4
4
|
* @tsplus implicit
|
|
5
5
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
6
6
|
*/
|
|
7
|
-
export declare const Align: P.Align<ImmutableArrayF>;
|
|
7
|
+
export declare const Align: P.Align<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
8
8
|
/**
|
|
9
9
|
* @tsplus implicit
|
|
10
10
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
11
11
|
*/
|
|
12
|
-
export declare const Functor: P.Functor<ImmutableArrayF>;
|
|
12
|
+
export declare const Functor: P.Functor<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
13
13
|
/**
|
|
14
14
|
* @tsplus implicit
|
|
15
15
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
16
16
|
*/
|
|
17
|
-
export declare const FunctorWithIndex: P.FunctorWithIndex<ImmutableArrayF>;
|
|
17
|
+
export declare const FunctorWithIndex: P.FunctorWithIndex<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
18
18
|
/**
|
|
19
19
|
* @tsplus implicit
|
|
20
20
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
21
21
|
*/
|
|
22
|
-
export declare const Apply: P.Apply<ImmutableArrayF>;
|
|
22
|
+
export declare const Apply: P.Apply<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
23
23
|
/**
|
|
24
24
|
* @tsplus implicit
|
|
25
25
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
26
26
|
*/
|
|
27
|
-
export declare const Applicative: P.Applicative<ImmutableArrayF>;
|
|
27
|
+
export declare const Applicative: P.Applicative<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
28
28
|
/**
|
|
29
29
|
* @tsplus implicit
|
|
30
30
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
31
31
|
*/
|
|
32
|
-
export declare const Alt: P.Alt<ImmutableArrayF>;
|
|
32
|
+
export declare const Alt: P.Alt<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
33
33
|
/**
|
|
34
34
|
* @tsplus implicit
|
|
35
35
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
36
36
|
*/
|
|
37
|
-
export declare const Alternative: P.Alternative<ImmutableArrayF>;
|
|
37
|
+
export declare const Alternative: P.Alternative<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
38
38
|
/**
|
|
39
39
|
* @tsplus implicit
|
|
40
40
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
41
41
|
*/
|
|
42
|
-
export declare const Filterable: P.Filterable<ImmutableArrayF>;
|
|
42
|
+
export declare const Filterable: P.Filterable<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
43
43
|
/**
|
|
44
44
|
* @tsplus implicit
|
|
45
45
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
46
46
|
*/
|
|
47
|
-
export declare const FilterableWithIndex: P.FilterableWithIndex<ImmutableArrayF>;
|
|
47
|
+
export declare const FilterableWithIndex: P.FilterableWithIndex<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
48
48
|
/**
|
|
49
49
|
* @tsplus implicit
|
|
50
50
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
51
51
|
*/
|
|
52
|
-
export declare const Foldable: P.Foldable<ImmutableArrayF>;
|
|
52
|
+
export declare const Foldable: P.Foldable<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
53
53
|
/**
|
|
54
54
|
* @tsplus implicit
|
|
55
55
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
56
56
|
*/
|
|
57
|
-
export declare const FoldableWithIndex: P.FoldableWithIndex<ImmutableArrayF>;
|
|
57
|
+
export declare const FoldableWithIndex: P.FoldableWithIndex<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
58
58
|
/**
|
|
59
59
|
* @tsplus implicit
|
|
60
60
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
61
61
|
*/
|
|
62
|
-
export declare const FlatMap: P.FlatMap<ImmutableArrayF>;
|
|
62
|
+
export declare const FlatMap: P.FlatMap<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
63
63
|
/**
|
|
64
64
|
* @tsplus implicit
|
|
65
65
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
66
66
|
*/
|
|
67
|
-
export declare const Monad: P.Monad<ImmutableArrayF>;
|
|
67
|
+
export declare const Monad: P.Monad<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
68
68
|
/**
|
|
69
69
|
* @tsplus implicit
|
|
70
70
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
71
71
|
*/
|
|
72
|
-
export declare const Traversable: P.Traversable<ImmutableArrayF>;
|
|
72
|
+
export declare const Traversable: P.Traversable<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
73
73
|
/**
|
|
74
74
|
* @tsplus implicit
|
|
75
75
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
76
76
|
*/
|
|
77
|
-
export declare const TraversableWithIndex: P.TraversableWithIndex<ImmutableArrayF>;
|
|
77
|
+
export declare const TraversableWithIndex: P.TraversableWithIndex<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
78
78
|
/**
|
|
79
79
|
* @tsplus implicit
|
|
80
80
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
81
81
|
*/
|
|
82
|
-
export declare const Witherable: P.Witherable<ImmutableArrayF>;
|
|
82
|
+
export declare const Witherable: P.Witherable<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
83
83
|
/**
|
|
84
84
|
* @tsplus implicit
|
|
85
85
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableArray/instances"
|
|
86
86
|
*/
|
|
87
|
-
export declare const WitherableWithIndex: P.WitherableWithIndex<ImmutableArrayF>;
|
|
87
|
+
export declare const WitherableWithIndex: P.WitherableWithIndex<ImmutableArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { These } from "@fncts/base/data/These";
|
|
2
2
|
import { ImmutableArray } from "@fncts/base/collection/immutable/ImmutableArray/definition";
|
|
3
|
+
import { Zipped } from "@fncts/base/data/Zipped";
|
|
3
4
|
import type { ImmutableNonEmptyArrayF } from "@fncts/base/collection/immutable/ImmutableNonEmptyArray/definition";
|
|
4
5
|
import { ImmutableNonEmptyArray } from "@fncts/base/collection/immutable/ImmutableNonEmptyArray/definition";
|
|
5
6
|
import * as P from "@fncts/base/typeclass";
|
|
@@ -57,7 +58,7 @@ export declare function crossWith_<A, B, C>(self: ImmutableNonEmptyArray<A>, fb:
|
|
|
57
58
|
* @tsplus fluent fncts.ImmutableNonEmptyArray cross
|
|
58
59
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/api"
|
|
59
60
|
*/
|
|
60
|
-
export declare function cross_<A, B>(self: ImmutableNonEmptyArray<A>, fb: ImmutableNonEmptyArray<B>): ImmutableNonEmptyArray<
|
|
61
|
+
export declare function cross_<A, B>(self: ImmutableNonEmptyArray<A>, fb: ImmutableNonEmptyArray<B>): ImmutableNonEmptyArray<Zipped.Make<A, B>>;
|
|
61
62
|
/**
|
|
62
63
|
* @tsplus fluent fncts.ImmutableNonEmptyArray elem
|
|
63
64
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/api"
|
|
@@ -163,15 +164,15 @@ export declare function splitAt_<A>(self: ImmutableNonEmptyArray<A>, n: number):
|
|
|
163
164
|
*/
|
|
164
165
|
export declare function sort<A>(self: ImmutableNonEmptyArray<A>, /** @tsplus auto */ O: P.Ord<A>): ImmutableNonEmptyArray<A>;
|
|
165
166
|
/**
|
|
166
|
-
* @tsplus
|
|
167
|
+
* @tsplus getter fncts.ImmutableNonEmptyArray traverseWithIndex
|
|
167
168
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/api"
|
|
168
169
|
*/
|
|
169
|
-
export declare const
|
|
170
|
+
export declare const traverseWithIndex: <KF, QF, WF, XF, IF, SF, RF, EF, A>(ta: ImmutableNonEmptyArray<A>) => <G extends import("@fncts/typelevel/HKT").HKT, GC = import("@fncts/typelevel/HKT").HKT.None>(G: P.Applicative<G, GC>) => <KG, QG, WG, XG, IG, SG, RG, EG, B>(f: (i: number, a: A) => import("@fncts/typelevel/HKT").HKT.Kind<G, GC, KG, QG, WG, XG, IG, SG, RG, EG, B>) => import("@fncts/typelevel/HKT").HKT.Kind<G, GC, KG, QG, WG, XG, IG, SG, RG, EG, ImmutableNonEmptyArray<B>>;
|
|
170
171
|
/**
|
|
171
|
-
* @tsplus
|
|
172
|
+
* @tsplus getter fncts.ImmutableNonEmptyArray traverse
|
|
172
173
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/api"
|
|
173
174
|
*/
|
|
174
|
-
export declare const
|
|
175
|
+
export declare const traverse: P.Traversable<ImmutableNonEmptyArrayF>["traverse"];
|
|
175
176
|
/**
|
|
176
177
|
* @tsplus fluent fncts.ImmutableNonEmptyArray uniq
|
|
177
178
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/api"
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { HKT } from "@fncts/typelevel/HKT";
|
|
2
2
|
import { ImmutableArray } from "@fncts/base/collection/immutable/ImmutableArray/definition";
|
|
3
|
-
export interface ImmutableNonEmptyArrayF extends
|
|
3
|
+
export interface ImmutableNonEmptyArrayF extends HKT {
|
|
4
|
+
type: ImmutableNonEmptyArray<this["A"]>;
|
|
5
|
+
variance: {
|
|
6
|
+
A: "+";
|
|
7
|
+
};
|
|
8
|
+
index: number;
|
|
4
9
|
}
|
|
5
10
|
/**
|
|
6
11
|
* @tsplus type fncts.ImmutableNonEmptyArray
|
|
@@ -8,8 +13,7 @@ export interface ImmutableNonEmptyArrayF extends ImmutableNonEmptyArray<any> {
|
|
|
8
13
|
*/
|
|
9
14
|
export declare class ImmutableNonEmptyArray<A> extends ImmutableArray<A> {
|
|
10
15
|
readonly _array: ReadonlyNonEmptyArray<A>;
|
|
11
|
-
|
|
12
|
-
[HKT.T]: ImmutableNonEmptyArray<HKT._A<this>>;
|
|
16
|
+
readonly _A: () => A;
|
|
13
17
|
constructor(_array: ReadonlyNonEmptyArray<A>);
|
|
14
18
|
}
|
|
15
19
|
/**
|
|
@@ -4,49 +4,49 @@ import type * as P from "@fncts/base/typeclass";
|
|
|
4
4
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps Semialign
|
|
5
5
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
6
6
|
*/
|
|
7
|
-
export declare const Semialign: P.Semialign<ImmutableNonEmptyArrayF>;
|
|
7
|
+
export declare const Semialign: P.Semialign<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
8
8
|
/**
|
|
9
9
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps Functor
|
|
10
10
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
11
11
|
*/
|
|
12
|
-
export declare const Functor: P.Functor<ImmutableNonEmptyArrayF>;
|
|
12
|
+
export declare const Functor: P.Functor<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
13
13
|
/**
|
|
14
14
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps FunctorWithIndex
|
|
15
15
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
16
16
|
*/
|
|
17
|
-
export declare const FunctorWithIndex: P.FunctorWithIndex<ImmutableNonEmptyArrayF>;
|
|
17
|
+
export declare const FunctorWithIndex: P.FunctorWithIndex<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
18
18
|
/**
|
|
19
19
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps Apply
|
|
20
20
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
21
21
|
*/
|
|
22
|
-
export declare const Apply: P.Apply<ImmutableNonEmptyArrayF>;
|
|
22
|
+
export declare const Apply: P.Apply<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
23
23
|
/**
|
|
24
24
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps Applicative
|
|
25
25
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
26
26
|
*/
|
|
27
|
-
export declare const Applicative: P.Applicative<ImmutableNonEmptyArrayF>;
|
|
27
|
+
export declare const Applicative: P.Applicative<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
28
28
|
/**
|
|
29
29
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps Monad
|
|
30
30
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
31
31
|
*/
|
|
32
|
-
export declare const Monad: P.Monad<ImmutableNonEmptyArrayF>;
|
|
32
|
+
export declare const Monad: P.Monad<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
33
33
|
/**
|
|
34
34
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps Foldable
|
|
35
35
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
36
36
|
*/
|
|
37
|
-
export declare const Foldable: P.Foldable<ImmutableNonEmptyArrayF>;
|
|
37
|
+
export declare const Foldable: P.Foldable<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
38
38
|
/**
|
|
39
39
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps FoldableWithIndex
|
|
40
40
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
41
41
|
*/
|
|
42
|
-
export declare const FoldableWithIndex: P.FoldableWithIndex<ImmutableNonEmptyArrayF>;
|
|
42
|
+
export declare const FoldableWithIndex: P.FoldableWithIndex<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
43
43
|
/**
|
|
44
44
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps Traversable
|
|
45
45
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
46
46
|
*/
|
|
47
|
-
export declare const Traversable: P.Traversable<ImmutableNonEmptyArrayF>;
|
|
47
|
+
export declare const Traversable: P.Traversable<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
48
48
|
/**
|
|
49
49
|
* @tsplus static fncts.ImmutableNonEmptyArrayOps TraversableWithIndex
|
|
50
50
|
* @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/instances"
|
|
51
51
|
*/
|
|
52
|
-
export declare const TraversableWithIndex: P.TraversableWithIndex<ImmutableNonEmptyArrayF>;
|
|
52
|
+
export declare const TraversableWithIndex: P.TraversableWithIndex<ImmutableNonEmptyArrayF, import("@fncts/typelevel/HKT").HKT.None>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { HKT } from "@fncts/typelevel/HKT";
|
|
1
2
|
import { Hashable } from "@fncts/base/typeclass/Hashable";
|
|
2
3
|
import { Equatable } from "@fncts/base/typeclass/Equatable";
|
|
3
|
-
import { HKT } from "@fncts/typelevel/HKT";
|
|
4
4
|
import { Vector } from "@fncts/base/collection/immutable/Vector";
|
|
5
5
|
export declare const RoseTreeTypeId: unique symbol;
|
|
6
6
|
export declare type RoseTreeTypeId = typeof RoseTreeTypeId;
|
|
7
|
-
export interface RoseTreeF extends
|
|
7
|
+
export interface RoseTreeF extends HKT {
|
|
8
|
+
type: RoseTree<this["A"]>;
|
|
9
|
+
variance: {
|
|
10
|
+
A: "+";
|
|
11
|
+
};
|
|
8
12
|
}
|
|
9
13
|
/**
|
|
10
14
|
* @tsplus type fncts.RoseTree
|
|
@@ -14,9 +18,7 @@ export declare class RoseTree<A> implements Hashable, Equatable {
|
|
|
14
18
|
readonly value: A;
|
|
15
19
|
readonly forest: Vector<RoseTree<A>>;
|
|
16
20
|
readonly _typeId: RoseTreeTypeId;
|
|
17
|
-
|
|
18
|
-
readonly [HKT.A]: () => A;
|
|
19
|
-
readonly [HKT.T]: RoseTree<HKT._A<this>>;
|
|
21
|
+
_A: () => A;
|
|
20
22
|
constructor(value: A, forest: Vector<RoseTree<A>>);
|
|
21
23
|
[Symbol.equals](that: unknown): boolean;
|
|
22
24
|
get [Symbol.hash](): number;
|
|
@@ -4,7 +4,7 @@ import { Refinement } from "@fncts/base/data/Refinement/definition";
|
|
|
4
4
|
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
|
5
5
|
import { List } from "@fncts/base/collection/immutable/List/definition";
|
|
6
6
|
import type { MutableVector, VectorF } from "@fncts/base/collection/immutable/Vector/definition";
|
|
7
|
-
import type { Eq, Monoid, Ord, Ordering, Traversable
|
|
7
|
+
import type { Eq, Monoid, Ord, Ordering, Traversable } from "@fncts/base/typeclass";
|
|
8
8
|
/**
|
|
9
9
|
* Appends an element to the end of a Vector and returns the new Vector.
|
|
10
10
|
* @complexity O(n)
|
|
@@ -541,12 +541,12 @@ export declare function toArray<A>(self: Vector<A>): ReadonlyArray<A>;
|
|
|
541
541
|
*/
|
|
542
542
|
export declare function toList<A>(self: Vector<A>): List<A>;
|
|
543
543
|
/**
|
|
544
|
-
* @tsplus
|
|
544
|
+
* @tsplus getter fncts.Vector traverseWithIndex
|
|
545
545
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
|
546
546
|
*/
|
|
547
|
-
export declare const traverseWithIndex:
|
|
547
|
+
export declare const traverseWithIndex: <KF, QF, WF, XF, IF, SF, RF, EF, A>(ta: import("@fncts/base/collection/immutable/Vector/definition").Vector<A>) => <G extends import("@fncts/typelevel/HKT").HKT, GC = import("@fncts/typelevel/HKT").HKT.None>(G: import("@fncts/base/typeclass").Applicative<G, GC>) => <KG, QG, WG, XG, IG, SG, RG, EG, B>(f: (i: number, a: A) => import("@fncts/typelevel/HKT").HKT.Kind<G, GC, KG, QG, WG, XG, IG, SG, RG, EG, B>) => import("@fncts/typelevel/HKT").HKT.Kind<G, GC, KG, QG, WG, XG, IG, SG, RG, EG, import("@fncts/base/collection/immutable/Vector/definition").Vector<B>>;
|
|
548
548
|
/**
|
|
549
|
-
* @tsplus
|
|
549
|
+
* @tsplus getter fncts.Vector traverse
|
|
550
550
|
* @tsplus location "@fncts/base/collection/immutable/Vector/api"
|
|
551
551
|
*/
|
|
552
552
|
export declare const traverse: Traversable<VectorF>["traverse"];
|
|
@@ -4,7 +4,12 @@ import { Equatable } from "@fncts/base/typeclass/Equatable";
|
|
|
4
4
|
import type { Node } from "@fncts/base/collection/immutable/Vector/internal";
|
|
5
5
|
export declare const VectorTypeId: unique symbol;
|
|
6
6
|
export declare type VectorTypeId = typeof VectorTypeId;
|
|
7
|
-
export interface VectorF extends
|
|
7
|
+
export interface VectorF extends HKT {
|
|
8
|
+
type: Vector<this["A"]>;
|
|
9
|
+
variance: {
|
|
10
|
+
A: "+";
|
|
11
|
+
};
|
|
12
|
+
index: number;
|
|
8
13
|
}
|
|
9
14
|
/**
|
|
10
15
|
* Represents a Vector of elements.
|
|
@@ -25,10 +30,7 @@ export declare class Vector<A> implements Iterable<A> {
|
|
|
25
30
|
/** @private */
|
|
26
31
|
readonly suffix: A[];
|
|
27
32
|
readonly _typeId: VectorTypeId;
|
|
28
|
-
readonly
|
|
29
|
-
readonly [HKT.A]: () => A;
|
|
30
|
-
readonly [HKT.T]: Vector<HKT._A<this>>;
|
|
31
|
-
readonly [HKT.Ix]: number;
|
|
33
|
+
readonly _A: () => A;
|
|
32
34
|
constructor(
|
|
33
35
|
/** @private */
|
|
34
36
|
bits: number,
|
|
@@ -49,10 +51,7 @@ export declare class Vector<A> implements Iterable<A> {
|
|
|
49
51
|
*/
|
|
50
52
|
export interface MutableVector<A> {
|
|
51
53
|
readonly _typeId: VectorTypeId;
|
|
52
|
-
readonly
|
|
53
|
-
readonly [HKT.A]: () => A;
|
|
54
|
-
readonly [HKT.T]: Vector<HKT._A<this>>;
|
|
55
|
-
readonly [HKT.Ix]: number;
|
|
54
|
+
readonly _A: () => A;
|
|
56
55
|
bits: number;
|
|
57
56
|
offset: number;
|
|
58
57
|
length: number;
|
|
@@ -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/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"
|
|
@@ -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
|
|
@@ -248,7 +250,7 @@ export declare function orElseEither_<W, S1, S2, R, E, A, S3, S4, R1, E1, A1>(fa
|
|
|
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
|
|
@@ -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) => void;
|
|
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,7 +65,7 @@ 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",
|
|
@@ -103,16 +109,16 @@ 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
123
|
export declare class Tell<W> extends Z<W, unknown, never, unknown, never, void> {
|
|
118
124
|
readonly 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>;
|