@typed/fx 2.0.0-beta.6 → 2.0.0-beta.8
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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/Fx/Fx.d.ts +9 -9
- package/dist/Fx/Fx.js +1 -1
- package/dist/Fx/TypeId.d.ts +3 -3
- package/dist/Fx/TypeId.js +2 -2
- package/dist/Fx/combinators/additive.d.ts +6 -6
- package/dist/Fx/combinators/additive.js +6 -6
- package/dist/Fx/combinators/catch.d.ts +7 -7
- package/dist/Fx/combinators/catch.js +7 -7
- package/dist/Fx/combinators/causes.d.ts +1 -1
- package/dist/Fx/combinators/causes.js +1 -1
- package/dist/Fx/combinators/changesWithEffect.d.ts +1 -1
- package/dist/Fx/combinators/changesWithEffect.js +1 -1
- package/dist/Fx/combinators/compact.d.ts +1 -1
- package/dist/Fx/combinators/compact.js +1 -1
- package/dist/Fx/combinators/concatMap.d.ts +2 -2
- package/dist/Fx/combinators/concatMap.js +2 -2
- package/dist/Fx/combinators/continueWith.d.ts +4 -4
- package/dist/Fx/combinators/continueWith.js +4 -4
- package/dist/Fx/combinators/debounce.d.ts +2 -2
- package/dist/Fx/combinators/debounce.d.ts.map +1 -1
- package/dist/Fx/combinators/debounce.js +1 -1
- package/dist/Fx/combinators/delay.d.ts +9 -7
- package/dist/Fx/combinators/delay.d.ts.map +1 -1
- package/dist/Fx/combinators/delay.js +8 -6
- package/dist/Fx/combinators/dropUntil.d.ts +2 -2
- package/dist/Fx/combinators/dropUntil.js +2 -2
- package/dist/Fx/combinators/during.d.ts +1 -1
- package/dist/Fx/combinators/during.js +1 -1
- package/dist/Fx/combinators/ensuring.d.ts +1 -1
- package/dist/Fx/combinators/ensuring.js +1 -1
- package/dist/Fx/combinators/exhaustLatestMap.d.ts +1 -1
- package/dist/Fx/combinators/exhaustLatestMap.js +1 -1
- package/dist/Fx/combinators/exhaustLatestMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/exhaustLatestMapEffect.js +1 -1
- package/dist/Fx/combinators/exhaustMap.d.ts +1 -1
- package/dist/Fx/combinators/exhaustMap.js +1 -1
- package/dist/Fx/combinators/exhaustMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/exhaustMapEffect.js +1 -1
- package/dist/Fx/combinators/exit.d.ts +1 -1
- package/dist/Fx/combinators/exit.js +1 -1
- package/dist/Fx/combinators/filter.d.ts +1 -1
- package/dist/Fx/combinators/filter.js +1 -1
- package/dist/Fx/combinators/filterEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterEffect.js +1 -1
- package/dist/Fx/combinators/filterMap.d.ts +1 -1
- package/dist/Fx/combinators/filterMap.js +1 -1
- package/dist/Fx/combinators/filterMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapEffect.js +1 -1
- package/dist/Fx/combinators/filterMapLoop.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoop.js +1 -1
- package/dist/Fx/combinators/filterMapLoopCause.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopCause.js +1 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.js +1 -1
- package/dist/Fx/combinators/filterMapLoopEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopEffect.js +1 -1
- package/dist/Fx/combinators/flatMap.d.ts +2 -2
- package/dist/Fx/combinators/flatMap.js +1 -1
- package/dist/Fx/combinators/flatMapConcurrently.d.ts +1 -1
- package/dist/Fx/combinators/flatMapConcurrently.js +1 -1
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.d.ts +1 -1
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.js +1 -1
- package/dist/Fx/combinators/flatMapEffect.d.ts +2 -2
- package/dist/Fx/combinators/flatMapEffect.js +1 -1
- package/dist/Fx/combinators/flip.d.ts +1 -1
- package/dist/Fx/combinators/flip.js +1 -1
- package/dist/Fx/combinators/gen.d.ts +1 -1
- package/dist/Fx/combinators/gen.js +1 -1
- package/dist/Fx/combinators/genScoped.d.ts +1 -1
- package/dist/Fx/combinators/genScoped.js +1 -1
- package/dist/Fx/combinators/grouped.d.ts +2 -2
- package/dist/Fx/combinators/grouped.js +2 -2
- package/dist/Fx/combinators/keyed.d.ts +2 -2
- package/dist/Fx/combinators/keyed.js +1 -1
- package/dist/Fx/combinators/loop.d.ts +1 -1
- package/dist/Fx/combinators/loop.js +1 -1
- package/dist/Fx/combinators/loopCause.d.ts +1 -1
- package/dist/Fx/combinators/loopCause.js +1 -1
- package/dist/Fx/combinators/loopCauseEffect.d.ts +1 -1
- package/dist/Fx/combinators/loopCauseEffect.js +1 -1
- package/dist/Fx/combinators/loopEffect.d.ts +1 -1
- package/dist/Fx/combinators/loopEffect.js +1 -1
- package/dist/Fx/combinators/map.d.ts +2 -2
- package/dist/Fx/combinators/map.js +2 -2
- package/dist/Fx/combinators/mapBoth.d.ts +1 -1
- package/dist/Fx/combinators/mapBoth.js +1 -1
- package/dist/Fx/combinators/mapEffect.d.ts +1 -1
- package/dist/Fx/combinators/mapEffect.js +1 -1
- package/dist/Fx/combinators/mapError.d.ts +1 -1
- package/dist/Fx/combinators/mapError.js +1 -1
- package/dist/Fx/combinators/mergeAll.d.ts +1 -1
- package/dist/Fx/combinators/mergeAll.js +1 -1
- package/dist/Fx/combinators/mergeOrdered.d.ts +1 -1
- package/dist/Fx/combinators/mergeOrdered.d.ts.map +1 -1
- package/dist/Fx/combinators/mergeOrdered.js +33 -11
- package/dist/Fx/combinators/onError.d.ts +1 -1
- package/dist/Fx/combinators/onError.js +1 -1
- package/dist/Fx/combinators/onExit.d.ts +1 -1
- package/dist/Fx/combinators/onExit.js +1 -1
- package/dist/Fx/combinators/onInterrupt.d.ts +1 -1
- package/dist/Fx/combinators/onInterrupt.js +1 -1
- package/dist/Fx/combinators/pairwise.d.ts +1 -1
- package/dist/Fx/combinators/pairwise.js +1 -1
- package/dist/Fx/combinators/provide.d.ts +4 -4
- package/dist/Fx/combinators/provide.js +4 -4
- package/dist/Fx/combinators/race.d.ts +2 -2
- package/dist/Fx/combinators/race.js +2 -2
- package/dist/Fx/combinators/repeat.d.ts +1 -1
- package/dist/Fx/combinators/repeat.js +1 -1
- package/dist/Fx/combinators/result.d.ts +1 -1
- package/dist/Fx/combinators/result.js +1 -1
- package/dist/Fx/combinators/retry.d.ts +1 -1
- package/dist/Fx/combinators/retry.js +1 -1
- package/dist/Fx/combinators/sample.d.ts +1 -1
- package/dist/Fx/combinators/sample.js +1 -1
- package/dist/Fx/combinators/scan.d.ts +2 -2
- package/dist/Fx/combinators/scan.js +2 -2
- package/dist/Fx/combinators/since.d.ts +1 -1
- package/dist/Fx/combinators/since.js +1 -1
- package/dist/Fx/combinators/skip.d.ts +2 -2
- package/dist/Fx/combinators/skip.js +2 -2
- package/dist/Fx/combinators/skipRepeats.d.ts +1 -1
- package/dist/Fx/combinators/skipRepeats.js +1 -1
- package/dist/Fx/combinators/skipRepeatsWith.d.ts +1 -1
- package/dist/Fx/combinators/skipRepeatsWith.js +1 -1
- package/dist/Fx/combinators/skipWhile.d.ts +4 -4
- package/dist/Fx/combinators/skipWhile.js +4 -4
- package/dist/Fx/combinators/slice.d.ts +3 -3
- package/dist/Fx/combinators/slice.js +2 -2
- package/dist/Fx/combinators/switchMap.d.ts +1 -1
- package/dist/Fx/combinators/switchMap.js +1 -1
- package/dist/Fx/combinators/switchMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/switchMapEffect.js +1 -1
- package/dist/Fx/combinators/take.d.ts +2 -2
- package/dist/Fx/combinators/take.js +2 -2
- package/dist/Fx/combinators/takeUntil.d.ts +3 -3
- package/dist/Fx/combinators/takeUntil.js +3 -3
- package/dist/Fx/combinators/takeWhile.d.ts +2 -2
- package/dist/Fx/combinators/takeWhile.js +2 -2
- package/dist/Fx/combinators/tapEffect.d.ts +1 -1
- package/dist/Fx/combinators/tapEffect.js +1 -1
- package/dist/Fx/combinators/throttle.d.ts +3 -3
- package/dist/Fx/combinators/throttle.d.ts.map +1 -1
- package/dist/Fx/combinators/throttle.js +1 -1
- package/dist/Fx/combinators/timeout.d.ts +2 -2
- package/dist/Fx/combinators/timeout.js +2 -2
- package/dist/Fx/combinators/tuple.d.ts +2 -2
- package/dist/Fx/combinators/tuple.js +2 -2
- package/dist/Fx/combinators/until.d.ts +1 -1
- package/dist/Fx/combinators/until.js +1 -1
- package/dist/Fx/combinators/unwrap.d.ts +1 -1
- package/dist/Fx/combinators/unwrap.js +1 -1
- package/dist/Fx/combinators/unwrapScoped.d.ts +1 -1
- package/dist/Fx/combinators/unwrapScoped.js +1 -1
- package/dist/Fx/combinators/when.d.ts +2 -2
- package/dist/Fx/combinators/when.js +2 -2
- package/dist/Fx/combinators/withLatestFrom.d.ts +2 -2
- package/dist/Fx/combinators/withLatestFrom.js +2 -2
- package/dist/Fx/combinators/withSpan.d.ts +1 -1
- package/dist/Fx/combinators/withSpan.js +1 -1
- package/dist/Fx/combinators/zip.d.ts +4 -4
- package/dist/Fx/combinators/zip.js +4 -4
- package/dist/Fx/constructors/at.d.ts +1 -1
- package/dist/Fx/constructors/at.js +1 -1
- package/dist/Fx/constructors/die.d.ts +1 -1
- package/dist/Fx/constructors/die.js +1 -1
- package/dist/Fx/constructors/empty.d.ts +1 -1
- package/dist/Fx/constructors/empty.js +1 -1
- package/dist/Fx/constructors/fail.d.ts +1 -1
- package/dist/Fx/constructors/fail.js +1 -1
- package/dist/Fx/constructors/failCause.d.ts +1 -1
- package/dist/Fx/constructors/failCause.js +1 -1
- package/dist/Fx/constructors/fn.d.ts +4 -4
- package/dist/Fx/constructors/fn.js +1 -1
- package/dist/Fx/constructors/fromEffect.d.ts +2 -2
- package/dist/Fx/constructors/fromEffect.js +2 -2
- package/dist/Fx/constructors/fromFailures.d.ts +1 -1
- package/dist/Fx/constructors/fromFailures.js +1 -1
- package/dist/Fx/constructors/fromIterable.d.ts +1 -1
- package/dist/Fx/constructors/fromIterable.js +1 -1
- package/dist/Fx/constructors/fromSchedule.d.ts +6 -4
- package/dist/Fx/constructors/fromSchedule.d.ts.map +1 -1
- package/dist/Fx/constructors/fromSchedule.js +6 -4
- package/dist/Fx/constructors/interrupt.d.ts +1 -1
- package/dist/Fx/constructors/interrupt.js +1 -1
- package/dist/Fx/constructors/make.d.ts +9 -7
- package/dist/Fx/constructors/make.d.ts.map +1 -1
- package/dist/Fx/constructors/make.js +8 -6
- package/dist/Fx/constructors/periodic.d.ts +1 -1
- package/dist/Fx/constructors/periodic.js +1 -1
- package/dist/Fx/constructors/succeed.d.ts +4 -4
- package/dist/Fx/constructors/succeed.js +4 -4
- package/dist/Fx/constructors/suspend.d.ts +1 -1
- package/dist/Fx/constructors/suspend.js +1 -1
- package/dist/Fx/constructors/sync.d.ts +1 -1
- package/dist/Fx/constructors/sync.js +1 -1
- package/dist/Fx/run/collect.d.ts +4 -4
- package/dist/Fx/run/collect.js +4 -4
- package/dist/Fx/run/first.d.ts +1 -1
- package/dist/Fx/run/first.js +1 -1
- package/dist/Fx/run/fork.d.ts +2 -2
- package/dist/Fx/run/fork.js +2 -2
- package/dist/Fx/run/observe.d.ts +7 -5
- package/dist/Fx/run/observe.d.ts.map +1 -1
- package/dist/Fx/run/observe.js +30 -15
- package/dist/Fx/run/runPromise.d.ts +2 -2
- package/dist/Fx/run/runPromise.js +2 -2
- package/dist/Fx/stream.d.ts +4 -4
- package/dist/Fx/stream.js +2 -2
- package/dist/Push/Push.d.ts +30 -30
- package/dist/Push/Push.js +26 -26
- package/dist/RefSubject/Hydration.d.ts +24 -24
- package/dist/RefSubject/Hydration.js +5 -5
- package/dist/RefSubject/RefArray.d.ts +31 -31
- package/dist/RefSubject/RefArray.js +30 -30
- package/dist/RefSubject/RefBigDecimal.d.ts +20 -20
- package/dist/RefSubject/RefBigDecimal.js +19 -19
- package/dist/RefSubject/RefBigInt.d.ts +15 -15
- package/dist/RefSubject/RefBigInt.js +14 -14
- package/dist/RefSubject/RefBoolean.d.ts +15 -15
- package/dist/RefSubject/RefBoolean.js +14 -14
- package/dist/RefSubject/RefCause.d.ts +11 -11
- package/dist/RefSubject/RefCause.js +10 -10
- package/dist/RefSubject/RefChunk.d.ts +37 -37
- package/dist/RefSubject/RefChunk.js +36 -36
- package/dist/RefSubject/RefDateTime.d.ts +11 -11
- package/dist/RefSubject/RefDateTime.js +10 -10
- package/dist/RefSubject/RefDuration.d.ts +14 -14
- package/dist/RefSubject/RefDuration.js +13 -13
- package/dist/RefSubject/RefGraph.d.ts +29 -29
- package/dist/RefSubject/RefGraph.js +28 -28
- package/dist/RefSubject/RefHashMap.d.ts +27 -27
- package/dist/RefSubject/RefHashMap.js +26 -26
- package/dist/RefSubject/RefHashRing.d.ts +13 -13
- package/dist/RefSubject/RefHashRing.js +12 -12
- package/dist/RefSubject/RefHashSet.d.ts +21 -21
- package/dist/RefSubject/RefHashSet.js +20 -20
- package/dist/RefSubject/RefIterable.d.ts +30 -30
- package/dist/RefSubject/RefIterable.js +29 -29
- package/dist/RefSubject/RefOption.d.ts +13 -13
- package/dist/RefSubject/RefOption.js +12 -12
- package/dist/RefSubject/RefRecord.d.ts +31 -31
- package/dist/RefSubject/RefRecord.js +30 -30
- package/dist/RefSubject/RefResult.d.ts +12 -12
- package/dist/RefSubject/RefResult.js +11 -11
- package/dist/RefSubject/RefString.d.ts +17 -17
- package/dist/RefSubject/RefString.js +16 -16
- package/dist/RefSubject/RefStruct.d.ts +13 -13
- package/dist/RefSubject/RefStruct.js +12 -12
- package/dist/RefSubject/RefSubject.d.ts +93 -94
- package/dist/RefSubject/RefSubject.d.ts.map +1 -1
- package/dist/RefSubject/RefSubject.js +132 -77
- package/dist/RefSubject/RefTrie.d.ts +26 -26
- package/dist/RefSubject/RefTrie.js +25 -25
- package/dist/RefSubject/RefTuple.d.ts +11 -11
- package/dist/RefSubject/RefTuple.js +9 -9
- package/dist/Sink/Sink.d.ts +21 -19
- package/dist/Sink/Sink.d.ts.map +1 -1
- package/dist/Sink/Sink.js +5 -4
- package/dist/Sink/combinators.d.ts +33 -33
- package/dist/Sink/combinators.js +32 -32
- package/dist/Subject/Subject.d.ts +14 -13
- package/dist/Subject/Subject.d.ts.map +1 -1
- package/dist/Subject/Subject.js +11 -10
- package/dist/Versioned/Versioned.d.ts +31 -28
- package/dist/Versioned/Versioned.d.ts.map +1 -1
- package/dist/Versioned/Versioned.js +45 -37
- package/package.json +5 -4
|
@@ -23,7 +23,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
23
23
|
* interruption, and Scope requirements expressed by its members.
|
|
24
24
|
*
|
|
25
25
|
* @since 1.18.0
|
|
26
|
-
* @category models
|
|
26
|
+
* @category State models
|
|
27
27
|
*/
|
|
28
28
|
export interface RefChunk<in out A, in out E = never, out R = never> extends RefSubject.RefSubject<Chunk.Chunk<A>, E, R> {
|
|
29
29
|
}
|
|
@@ -41,7 +41,7 @@ export interface RefChunk<in out A, in out E = never, out R = never> extends Ref
|
|
|
41
41
|
* and cleanup; source failures and services stay on reads and pushes.
|
|
42
42
|
*
|
|
43
43
|
* @since 1.18.0
|
|
44
|
-
* @category
|
|
44
|
+
* @category Constructors
|
|
45
45
|
*/
|
|
46
46
|
export declare function make<A, E = never, R = never>(initial: Chunk.Chunk<A> | Effect.Effect<Chunk.Chunk<A>, E, R> | Fx.Fx<Chunk.Chunk<A>, E, R>, eq?: Equivalence<A>): Effect.Effect<RefChunk<A, E>, never, R | Scope.Scope>;
|
|
47
47
|
/**
|
|
@@ -58,7 +58,7 @@ export declare function make<A, E = never, R = never>(initial: Chunk.Chunk<A> |
|
|
|
58
58
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
59
59
|
*
|
|
60
60
|
* @since 1.18.0
|
|
61
|
-
* @category
|
|
61
|
+
* @category State updates
|
|
62
62
|
*/
|
|
63
63
|
export declare const prepend: {
|
|
64
64
|
<A>(value: A): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -78,7 +78,7 @@ export declare const prepend: {
|
|
|
78
78
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
79
79
|
*
|
|
80
80
|
* @since 1.18.0
|
|
81
|
-
* @category
|
|
81
|
+
* @category State updates
|
|
82
82
|
*/
|
|
83
83
|
export declare const prependAll: {
|
|
84
84
|
<A>(value: Iterable<A>): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -98,7 +98,7 @@ export declare const prependAll: {
|
|
|
98
98
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
99
99
|
*
|
|
100
100
|
* @since 1.18.0
|
|
101
|
-
* @category
|
|
101
|
+
* @category State updates
|
|
102
102
|
*/
|
|
103
103
|
export declare const append: {
|
|
104
104
|
<A>(value: A): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -118,7 +118,7 @@ export declare const append: {
|
|
|
118
118
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
119
119
|
*
|
|
120
120
|
* @since 1.18.0
|
|
121
|
-
* @category
|
|
121
|
+
* @category State updates
|
|
122
122
|
*/
|
|
123
123
|
export declare const appendAll: {
|
|
124
124
|
<A>(value: Iterable<A>): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -138,7 +138,7 @@ export declare const appendAll: {
|
|
|
138
138
|
* acquires no resource; failures and services remain those of the source ref.
|
|
139
139
|
*
|
|
140
140
|
* @since 1.18.0
|
|
141
|
-
* @category
|
|
141
|
+
* @category State updates
|
|
142
142
|
*/
|
|
143
143
|
export declare const drop: {
|
|
144
144
|
(n: number): <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -158,7 +158,7 @@ export declare const drop: {
|
|
|
158
158
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
159
159
|
*
|
|
160
160
|
* @since 1.18.0
|
|
161
|
-
* @category
|
|
161
|
+
* @category State updates
|
|
162
162
|
*/
|
|
163
163
|
export declare const dropRight: {
|
|
164
164
|
(n: number): <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -178,7 +178,7 @@ export declare const dropRight: {
|
|
|
178
178
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
179
179
|
*
|
|
180
180
|
* @since 1.18.0
|
|
181
|
-
* @category
|
|
181
|
+
* @category State updates
|
|
182
182
|
*/
|
|
183
183
|
export declare const dropWhile: {
|
|
184
184
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -198,7 +198,7 @@ export declare const dropWhile: {
|
|
|
198
198
|
* acquires no resource; failures and services remain those of the source ref.
|
|
199
199
|
*
|
|
200
200
|
* @since 1.18.0
|
|
201
|
-
* @category
|
|
201
|
+
* @category State updates
|
|
202
202
|
*/
|
|
203
203
|
export declare const take: {
|
|
204
204
|
(n: number): <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -218,7 +218,7 @@ export declare const take: {
|
|
|
218
218
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
219
219
|
*
|
|
220
220
|
* @since 1.18.0
|
|
221
|
-
* @category
|
|
221
|
+
* @category State updates
|
|
222
222
|
*/
|
|
223
223
|
export declare const takeRight: {
|
|
224
224
|
(n: number): <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -238,7 +238,7 @@ export declare const takeRight: {
|
|
|
238
238
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
239
239
|
*
|
|
240
240
|
* @since 1.18.0
|
|
241
|
-
* @category
|
|
241
|
+
* @category State updates
|
|
242
242
|
*/
|
|
243
243
|
export declare const takeWhile: {
|
|
244
244
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -258,7 +258,7 @@ export declare const takeWhile: {
|
|
|
258
258
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
259
259
|
*
|
|
260
260
|
* @since 1.18.0
|
|
261
|
-
* @category
|
|
261
|
+
* @category State updates
|
|
262
262
|
*/
|
|
263
263
|
export declare const modifyAt: {
|
|
264
264
|
<A>(index: number, f: (a: A) => A): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -278,7 +278,7 @@ export declare const modifyAt: {
|
|
|
278
278
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
279
279
|
*
|
|
280
280
|
* @since 1.18.0
|
|
281
|
-
* @category
|
|
281
|
+
* @category State updates
|
|
282
282
|
*/
|
|
283
283
|
export declare const replaceAt: {
|
|
284
284
|
<A>(index: number, a: A): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -298,7 +298,7 @@ export declare const replaceAt: {
|
|
|
298
298
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
299
299
|
*
|
|
300
300
|
* @since 1.18.0
|
|
301
|
-
* @category
|
|
301
|
+
* @category State updates
|
|
302
302
|
*/
|
|
303
303
|
export declare const remove: {
|
|
304
304
|
(index: number): <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -317,7 +317,7 @@ export declare const remove: {
|
|
|
317
317
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
318
318
|
* acquires no resource. It returns the committed chunk and retains the ref's E and R channels.
|
|
319
319
|
* @since 1.18.0
|
|
320
|
-
* @category
|
|
320
|
+
* @category State updates
|
|
321
321
|
*/
|
|
322
322
|
export declare const filter: {
|
|
323
323
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -336,7 +336,7 @@ export declare const filter: {
|
|
|
336
336
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
337
337
|
* acquires no resource. It returns the committed chunk and retains the ref's E and R channels.
|
|
338
338
|
* @since 1.18.0
|
|
339
|
-
* @category
|
|
339
|
+
* @category State updates
|
|
340
340
|
*/
|
|
341
341
|
export declare const map: {
|
|
342
342
|
<A>(f: (a: A, index: number) => A): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -356,7 +356,7 @@ export declare const map: {
|
|
|
356
356
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
357
357
|
*
|
|
358
358
|
* @since 1.18.0
|
|
359
|
-
* @category
|
|
359
|
+
* @category State updates
|
|
360
360
|
*/
|
|
361
361
|
export declare const dedupe: <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
362
362
|
/**
|
|
@@ -373,7 +373,7 @@ export declare const dedupe: <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<
|
|
|
373
373
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
374
374
|
*
|
|
375
375
|
* @since 1.18.0
|
|
376
|
-
* @category
|
|
376
|
+
* @category State updates
|
|
377
377
|
*/
|
|
378
378
|
export declare const dedupeAdjacent: <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
379
379
|
/**
|
|
@@ -390,7 +390,7 @@ export declare const dedupeAdjacent: <A, E, R>(ref: RefChunk<A, E, R>) => Effect
|
|
|
390
390
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
391
391
|
*
|
|
392
392
|
* @since 1.18.0
|
|
393
|
-
* @category
|
|
393
|
+
* @category State updates
|
|
394
394
|
*/
|
|
395
395
|
export declare const reverse: <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
396
396
|
/**
|
|
@@ -407,7 +407,7 @@ export declare const reverse: <A, E, R>(ref: RefChunk<A, E, R>) => Effect.Effect
|
|
|
407
407
|
* acquires no resource; failures and services remain those of the source ref.
|
|
408
408
|
*
|
|
409
409
|
* @since 1.18.0
|
|
410
|
-
* @category
|
|
410
|
+
* @category State updates
|
|
411
411
|
*/
|
|
412
412
|
export declare const sort: {
|
|
413
413
|
<A>(order: Order.Order<A>): <E, R>(ref: RefChunk<A, E, R>) => Effect.Effect<Chunk.Chunk<A>, E, R>;
|
|
@@ -427,7 +427,7 @@ export declare const sort: {
|
|
|
427
427
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
428
428
|
*
|
|
429
429
|
* @since 1.18.0
|
|
430
|
-
* @category
|
|
430
|
+
* @category State predicates
|
|
431
431
|
*/
|
|
432
432
|
export declare const isEmpty: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
433
433
|
/**
|
|
@@ -444,7 +444,7 @@ export declare const isEmpty: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Co
|
|
|
444
444
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
445
445
|
*
|
|
446
446
|
* @since 1.18.0
|
|
447
|
-
* @category
|
|
447
|
+
* @category State predicates
|
|
448
448
|
*/
|
|
449
449
|
export declare const isNonEmpty: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
450
450
|
/**
|
|
@@ -461,7 +461,7 @@ export declare const isNonEmpty: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject
|
|
|
461
461
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
462
462
|
*
|
|
463
463
|
* @since 1.18.0
|
|
464
|
-
* @category
|
|
464
|
+
* @category Derived queries
|
|
465
465
|
*/
|
|
466
466
|
export declare const size: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<number, E, R>;
|
|
467
467
|
/**
|
|
@@ -478,7 +478,7 @@ export declare const size: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Compu
|
|
|
478
478
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
479
479
|
*
|
|
480
480
|
* @since 1.18.0
|
|
481
|
-
* @category
|
|
481
|
+
* @category Derived queries
|
|
482
482
|
*/
|
|
483
483
|
export declare const mapValues: {
|
|
484
484
|
<A, B>(f: (a: A, index: number) => B): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<Chunk.Chunk<B>, E, R>;
|
|
@@ -498,7 +498,7 @@ export declare const mapValues: {
|
|
|
498
498
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
499
499
|
*
|
|
500
500
|
* @since 1.18.0
|
|
501
|
-
* @category
|
|
501
|
+
* @category Derived queries
|
|
502
502
|
*/
|
|
503
503
|
export declare const filterValues: {
|
|
504
504
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<Chunk.Chunk<A>, E, R>;
|
|
@@ -518,7 +518,7 @@ export declare const filterValues: {
|
|
|
518
518
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
519
519
|
*
|
|
520
520
|
* @since 1.18.0
|
|
521
|
-
* @category
|
|
521
|
+
* @category Derived queries
|
|
522
522
|
*/
|
|
523
523
|
export declare const partition: {
|
|
524
524
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<[Chunk.Chunk<A>, Chunk.Chunk<A>], E, R>;
|
|
@@ -538,7 +538,7 @@ export declare const partition: {
|
|
|
538
538
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
539
539
|
*
|
|
540
540
|
* @since 1.18.0
|
|
541
|
-
* @category
|
|
541
|
+
* @category Derived queries
|
|
542
542
|
*/
|
|
543
543
|
export declare const reduce: {
|
|
544
544
|
<A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<B, E, R>;
|
|
@@ -558,7 +558,7 @@ export declare const reduce: {
|
|
|
558
558
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
559
559
|
*
|
|
560
560
|
* @since 1.18.0
|
|
561
|
-
* @category
|
|
561
|
+
* @category Derived queries
|
|
562
562
|
*/
|
|
563
563
|
export declare const reduceRight: {
|
|
564
564
|
<A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<B, E, R>;
|
|
@@ -578,7 +578,7 @@ export declare const reduceRight: {
|
|
|
578
578
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
579
579
|
*
|
|
580
580
|
* @since 1.18.0
|
|
581
|
-
* @category
|
|
581
|
+
* @category State predicates
|
|
582
582
|
*/
|
|
583
583
|
export declare const some: {
|
|
584
584
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -598,7 +598,7 @@ export declare const some: {
|
|
|
598
598
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
599
599
|
*
|
|
600
600
|
* @since 1.18.0
|
|
601
|
-
* @category
|
|
601
|
+
* @category State predicates
|
|
602
602
|
*/
|
|
603
603
|
export declare const every: {
|
|
604
604
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -618,7 +618,7 @@ export declare const every: {
|
|
|
618
618
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
619
619
|
*
|
|
620
620
|
* @since 1.18.0
|
|
621
|
-
* @category
|
|
621
|
+
* @category State predicates
|
|
622
622
|
*/
|
|
623
623
|
export declare const contains: {
|
|
624
624
|
<A>(value: A): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -638,7 +638,7 @@ export declare const contains: {
|
|
|
638
638
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
639
639
|
*
|
|
640
640
|
* @since 1.18.0
|
|
641
|
-
* @category
|
|
641
|
+
* @category Optional queries
|
|
642
642
|
*/
|
|
643
643
|
export declare const getIndex: {
|
|
644
644
|
(index: number): <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
@@ -658,7 +658,7 @@ export declare const getIndex: {
|
|
|
658
658
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
659
659
|
*
|
|
660
660
|
* @since 1.18.0
|
|
661
|
-
* @category
|
|
661
|
+
* @category Optional queries
|
|
662
662
|
*/
|
|
663
663
|
export declare const head: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
664
664
|
/**
|
|
@@ -675,7 +675,7 @@ export declare const head: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Filte
|
|
|
675
675
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
676
676
|
*
|
|
677
677
|
* @since 1.18.0
|
|
678
|
-
* @category
|
|
678
|
+
* @category Optional queries
|
|
679
679
|
*/
|
|
680
680
|
export declare const last: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
681
681
|
/**
|
|
@@ -692,7 +692,7 @@ export declare const last: <A, E, R>(ref: RefChunk<A, E, R>) => RefSubject.Filte
|
|
|
692
692
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
693
693
|
*
|
|
694
694
|
* @since 1.18.0
|
|
695
|
-
* @category
|
|
695
|
+
* @category Optional queries
|
|
696
696
|
*/
|
|
697
697
|
export declare const findFirst: {
|
|
698
698
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
@@ -712,7 +712,7 @@ export declare const findFirst: {
|
|
|
712
712
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
713
713
|
*
|
|
714
714
|
* @since 1.18.0
|
|
715
|
-
* @category
|
|
715
|
+
* @category Optional queries
|
|
716
716
|
*/
|
|
717
717
|
export declare const findLast: {
|
|
718
718
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefChunk<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
@@ -22,7 +22,7 @@ import { Result } from "effect";
|
|
|
22
22
|
* and cleanup; source failures and services stay on reads and pushes.
|
|
23
23
|
*
|
|
24
24
|
* @since 1.18.0
|
|
25
|
-
* @category
|
|
25
|
+
* @category Constructors
|
|
26
26
|
*/
|
|
27
27
|
export function make(initial, eq = equals) {
|
|
28
28
|
return RefSubject.make(initial, { eq: Chunk.makeEquivalence(eq) });
|
|
@@ -41,7 +41,7 @@ export function make(initial, eq = equals) {
|
|
|
41
41
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
42
42
|
*
|
|
43
43
|
* @since 1.18.0
|
|
44
|
-
* @category
|
|
44
|
+
* @category State updates
|
|
45
45
|
*/
|
|
46
46
|
export const prepend = dual(2, function prepend(ref, value) {
|
|
47
47
|
return RefSubject.update(ref, Chunk.prepend(value));
|
|
@@ -60,7 +60,7 @@ export const prepend = dual(2, function prepend(ref, value) {
|
|
|
60
60
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
61
61
|
*
|
|
62
62
|
* @since 1.18.0
|
|
63
|
-
* @category
|
|
63
|
+
* @category State updates
|
|
64
64
|
*/
|
|
65
65
|
export const prependAll = dual(2, function prependAll(ref, value) {
|
|
66
66
|
return RefSubject.update(ref, Chunk.prependAll(Chunk.fromIterable(value)));
|
|
@@ -79,7 +79,7 @@ export const prependAll = dual(2, function prependAll(ref, value) {
|
|
|
79
79
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
80
80
|
*
|
|
81
81
|
* @since 1.18.0
|
|
82
|
-
* @category
|
|
82
|
+
* @category State updates
|
|
83
83
|
*/
|
|
84
84
|
export const append = dual(2, function append(ref, value) {
|
|
85
85
|
return RefSubject.update(ref, Chunk.append(value));
|
|
@@ -98,7 +98,7 @@ export const append = dual(2, function append(ref, value) {
|
|
|
98
98
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
99
99
|
*
|
|
100
100
|
* @since 1.18.0
|
|
101
|
-
* @category
|
|
101
|
+
* @category State updates
|
|
102
102
|
*/
|
|
103
103
|
export const appendAll = dual(2, function appendAll(ref, value) {
|
|
104
104
|
return RefSubject.update(ref, Chunk.appendAll(Chunk.fromIterable(value)));
|
|
@@ -117,7 +117,7 @@ export const appendAll = dual(2, function appendAll(ref, value) {
|
|
|
117
117
|
* acquires no resource; failures and services remain those of the source ref.
|
|
118
118
|
*
|
|
119
119
|
* @since 1.18.0
|
|
120
|
-
* @category
|
|
120
|
+
* @category State updates
|
|
121
121
|
*/
|
|
122
122
|
export const drop = dual(2, function drop(ref, n) {
|
|
123
123
|
return RefSubject.update(ref, Chunk.drop(n));
|
|
@@ -136,7 +136,7 @@ export const drop = dual(2, function drop(ref, n) {
|
|
|
136
136
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
137
137
|
*
|
|
138
138
|
* @since 1.18.0
|
|
139
|
-
* @category
|
|
139
|
+
* @category State updates
|
|
140
140
|
*/
|
|
141
141
|
export const dropRight = dual(2, function dropRight(ref, n) {
|
|
142
142
|
return RefSubject.update(ref, Chunk.dropRight(n));
|
|
@@ -155,7 +155,7 @@ export const dropRight = dual(2, function dropRight(ref, n) {
|
|
|
155
155
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
156
156
|
*
|
|
157
157
|
* @since 1.18.0
|
|
158
|
-
* @category
|
|
158
|
+
* @category State updates
|
|
159
159
|
*/
|
|
160
160
|
export const dropWhile = dual(2, function dropWhile(ref, predicate) {
|
|
161
161
|
return RefSubject.update(ref, Chunk.dropWhile(predicate));
|
|
@@ -174,7 +174,7 @@ export const dropWhile = dual(2, function dropWhile(ref, predicate) {
|
|
|
174
174
|
* acquires no resource; failures and services remain those of the source ref.
|
|
175
175
|
*
|
|
176
176
|
* @since 1.18.0
|
|
177
|
-
* @category
|
|
177
|
+
* @category State updates
|
|
178
178
|
*/
|
|
179
179
|
export const take = dual(2, function take(ref, n) {
|
|
180
180
|
return RefSubject.update(ref, Chunk.take(n));
|
|
@@ -193,7 +193,7 @@ export const take = dual(2, function take(ref, n) {
|
|
|
193
193
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
194
194
|
*
|
|
195
195
|
* @since 1.18.0
|
|
196
|
-
* @category
|
|
196
|
+
* @category State updates
|
|
197
197
|
*/
|
|
198
198
|
export const takeRight = dual(2, function takeRight(ref, n) {
|
|
199
199
|
return RefSubject.update(ref, Chunk.takeRight(n));
|
|
@@ -212,7 +212,7 @@ export const takeRight = dual(2, function takeRight(ref, n) {
|
|
|
212
212
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
213
213
|
*
|
|
214
214
|
* @since 1.18.0
|
|
215
|
-
* @category
|
|
215
|
+
* @category State updates
|
|
216
216
|
*/
|
|
217
217
|
export const takeWhile = dual(2, function takeWhile(ref, predicate) {
|
|
218
218
|
return RefSubject.update(ref, Chunk.takeWhile(predicate));
|
|
@@ -231,7 +231,7 @@ export const takeWhile = dual(2, function takeWhile(ref, predicate) {
|
|
|
231
231
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
232
232
|
*
|
|
233
233
|
* @since 1.18.0
|
|
234
|
-
* @category
|
|
234
|
+
* @category State updates
|
|
235
235
|
*/
|
|
236
236
|
export const modifyAt = dual(3, function modifyAt(ref, index, f) {
|
|
237
237
|
return RefSubject.update(ref, (chunk) => Option.getOrElse(Chunk.modify(chunk, index, f), () => chunk));
|
|
@@ -250,7 +250,7 @@ export const modifyAt = dual(3, function modifyAt(ref, index, f) {
|
|
|
250
250
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
251
251
|
*
|
|
252
252
|
* @since 1.18.0
|
|
253
|
-
* @category
|
|
253
|
+
* @category State updates
|
|
254
254
|
*/
|
|
255
255
|
export const replaceAt = dual(3, function replaceAt(ref, index, a) {
|
|
256
256
|
return RefSubject.update(ref, (chunk) => Option.getOrElse(Chunk.replace(chunk, index, a), () => chunk));
|
|
@@ -269,7 +269,7 @@ export const replaceAt = dual(3, function replaceAt(ref, index, a) {
|
|
|
269
269
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
270
270
|
*
|
|
271
271
|
* @since 1.18.0
|
|
272
|
-
* @category
|
|
272
|
+
* @category State updates
|
|
273
273
|
*/
|
|
274
274
|
export const remove = dual(2, function remove(ref, index) {
|
|
275
275
|
return RefSubject.update(ref, Chunk.remove(index));
|
|
@@ -287,7 +287,7 @@ export const remove = dual(2, function remove(ref, index) {
|
|
|
287
287
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
288
288
|
* acquires no resource. It returns the committed chunk and retains the ref's E and R channels.
|
|
289
289
|
* @since 1.18.0
|
|
290
|
-
* @category
|
|
290
|
+
* @category State updates
|
|
291
291
|
*/
|
|
292
292
|
export const filter = dual(2, function filter(ref, predicate) {
|
|
293
293
|
return RefSubject.update(ref, Chunk.filter(predicate));
|
|
@@ -305,7 +305,7 @@ export const filter = dual(2, function filter(ref, predicate) {
|
|
|
305
305
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
306
306
|
* acquires no resource. It returns the committed chunk and retains the ref's E and R channels.
|
|
307
307
|
* @since 1.18.0
|
|
308
|
-
* @category
|
|
308
|
+
* @category State updates
|
|
309
309
|
*/
|
|
310
310
|
export const map = dual(2, function map(ref, f) {
|
|
311
311
|
return RefSubject.update(ref, Chunk.map(f));
|
|
@@ -324,7 +324,7 @@ export const map = dual(2, function map(ref, f) {
|
|
|
324
324
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
325
325
|
*
|
|
326
326
|
* @since 1.18.0
|
|
327
|
-
* @category
|
|
327
|
+
* @category State updates
|
|
328
328
|
*/
|
|
329
329
|
export const dedupe = (ref) => RefSubject.update(ref, Chunk.dedupe);
|
|
330
330
|
/**
|
|
@@ -341,7 +341,7 @@ export const dedupe = (ref) => RefSubject.update(ref, Chunk.dedupe);
|
|
|
341
341
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
342
342
|
*
|
|
343
343
|
* @since 1.18.0
|
|
344
|
-
* @category
|
|
344
|
+
* @category State updates
|
|
345
345
|
*/
|
|
346
346
|
export const dedupeAdjacent = (ref) => RefSubject.update(ref, Chunk.dedupeAdjacent);
|
|
347
347
|
/**
|
|
@@ -358,7 +358,7 @@ export const dedupeAdjacent = (ref) => RefSubject.update(ref, Chunk.dedupeAdjace
|
|
|
358
358
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
359
359
|
*
|
|
360
360
|
* @since 1.18.0
|
|
361
|
-
* @category
|
|
361
|
+
* @category State updates
|
|
362
362
|
*/
|
|
363
363
|
export const reverse = (ref) => RefSubject.update(ref, Chunk.reverse);
|
|
364
364
|
/**
|
|
@@ -375,7 +375,7 @@ export const reverse = (ref) => RefSubject.update(ref, Chunk.reverse);
|
|
|
375
375
|
* acquires no resource; failures and services remain those of the source ref.
|
|
376
376
|
*
|
|
377
377
|
* @since 1.18.0
|
|
378
|
-
* @category
|
|
378
|
+
* @category State updates
|
|
379
379
|
*/
|
|
380
380
|
export const sort = dual(2, function sort(ref, order) {
|
|
381
381
|
return RefSubject.update(ref, Chunk.sort(order));
|
|
@@ -397,7 +397,7 @@ export const sort = dual(2, function sort(ref, order) {
|
|
|
397
397
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
398
398
|
*
|
|
399
399
|
* @since 1.18.0
|
|
400
|
-
* @category
|
|
400
|
+
* @category State predicates
|
|
401
401
|
*/
|
|
402
402
|
export const isEmpty = (ref) => RefSubject.map(ref, Chunk.isEmpty);
|
|
403
403
|
/**
|
|
@@ -414,7 +414,7 @@ export const isEmpty = (ref) => RefSubject.map(ref, Chunk.isEmpty);
|
|
|
414
414
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
415
415
|
*
|
|
416
416
|
* @since 1.18.0
|
|
417
|
-
* @category
|
|
417
|
+
* @category State predicates
|
|
418
418
|
*/
|
|
419
419
|
export const isNonEmpty = (ref) => RefSubject.map(ref, Chunk.isNonEmpty);
|
|
420
420
|
/**
|
|
@@ -431,7 +431,7 @@ export const isNonEmpty = (ref) => RefSubject.map(ref, Chunk.isNonEmpty);
|
|
|
431
431
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
432
432
|
*
|
|
433
433
|
* @since 1.18.0
|
|
434
|
-
* @category
|
|
434
|
+
* @category Derived queries
|
|
435
435
|
*/
|
|
436
436
|
export const size = (ref) => RefSubject.map(ref, Chunk.size);
|
|
437
437
|
/**
|
|
@@ -448,7 +448,7 @@ export const size = (ref) => RefSubject.map(ref, Chunk.size);
|
|
|
448
448
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
449
449
|
*
|
|
450
450
|
* @since 1.18.0
|
|
451
|
-
* @category
|
|
451
|
+
* @category Derived queries
|
|
452
452
|
*/
|
|
453
453
|
export const mapValues = dual(2, function mapValues(ref, f) {
|
|
454
454
|
return RefSubject.map(ref, Chunk.map(f));
|
|
@@ -467,7 +467,7 @@ export const mapValues = dual(2, function mapValues(ref, f) {
|
|
|
467
467
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
468
468
|
*
|
|
469
469
|
* @since 1.18.0
|
|
470
|
-
* @category
|
|
470
|
+
* @category Derived queries
|
|
471
471
|
*/
|
|
472
472
|
export const filterValues = dual(2, function filterValues(ref, predicate) {
|
|
473
473
|
return RefSubject.map(ref, Chunk.filter(predicate));
|
|
@@ -486,7 +486,7 @@ export const filterValues = dual(2, function filterValues(ref, predicate) {
|
|
|
486
486
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
487
487
|
*
|
|
488
488
|
* @since 1.18.0
|
|
489
|
-
* @category
|
|
489
|
+
* @category Derived queries
|
|
490
490
|
*/
|
|
491
491
|
export const partition = dual(2, function partition(ref, predicate) {
|
|
492
492
|
return RefSubject.map(ref, Chunk.partition(Result.liftPredicate(predicate, Result.fail)));
|
|
@@ -505,7 +505,7 @@ export const partition = dual(2, function partition(ref, predicate) {
|
|
|
505
505
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
506
506
|
*
|
|
507
507
|
* @since 1.18.0
|
|
508
|
-
* @category
|
|
508
|
+
* @category Derived queries
|
|
509
509
|
*/
|
|
510
510
|
export const reduce = dual(3, function reduce(ref, b, f) {
|
|
511
511
|
return RefSubject.map(ref, Chunk.reduce(b, f));
|
|
@@ -524,7 +524,7 @@ export const reduce = dual(3, function reduce(ref, b, f) {
|
|
|
524
524
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
525
525
|
*
|
|
526
526
|
* @since 1.18.0
|
|
527
|
-
* @category
|
|
527
|
+
* @category Derived queries
|
|
528
528
|
*/
|
|
529
529
|
export const reduceRight = dual(3, function reduceRight(ref, b, f) {
|
|
530
530
|
return RefSubject.map(ref, Chunk.reduceRight(b, f));
|
|
@@ -543,7 +543,7 @@ export const reduceRight = dual(3, function reduceRight(ref, b, f) {
|
|
|
543
543
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
544
544
|
*
|
|
545
545
|
* @since 1.18.0
|
|
546
|
-
* @category
|
|
546
|
+
* @category State predicates
|
|
547
547
|
*/
|
|
548
548
|
export const some = dual(2, function some(ref, predicate) {
|
|
549
549
|
return RefSubject.map(ref, Chunk.some(predicate));
|
|
@@ -562,7 +562,7 @@ export const some = dual(2, function some(ref, predicate) {
|
|
|
562
562
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
563
563
|
*
|
|
564
564
|
* @since 1.18.0
|
|
565
|
-
* @category
|
|
565
|
+
* @category State predicates
|
|
566
566
|
*/
|
|
567
567
|
export const every = dual(2, function every(ref, predicate) {
|
|
568
568
|
return RefSubject.map(ref, Chunk.every(predicate));
|
|
@@ -581,7 +581,7 @@ export const every = dual(2, function every(ref, predicate) {
|
|
|
581
581
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
582
582
|
*
|
|
583
583
|
* @since 1.18.0
|
|
584
|
-
* @category
|
|
584
|
+
* @category State predicates
|
|
585
585
|
*/
|
|
586
586
|
export const contains = dual(2, function contains(ref, value) {
|
|
587
587
|
return RefSubject.map(ref, Chunk.contains(value));
|
|
@@ -603,7 +603,7 @@ export const contains = dual(2, function contains(ref, value) {
|
|
|
603
603
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
604
604
|
*
|
|
605
605
|
* @since 1.18.0
|
|
606
|
-
* @category
|
|
606
|
+
* @category Optional queries
|
|
607
607
|
*/
|
|
608
608
|
export const getIndex = dual(2, function getIndex(ref, index) {
|
|
609
609
|
return RefSubject.filterMap(ref, Chunk.get(index));
|
|
@@ -622,7 +622,7 @@ export const getIndex = dual(2, function getIndex(ref, index) {
|
|
|
622
622
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
623
623
|
*
|
|
624
624
|
* @since 1.18.0
|
|
625
|
-
* @category
|
|
625
|
+
* @category Optional queries
|
|
626
626
|
*/
|
|
627
627
|
export const head = (ref) => RefSubject.filterMap(ref, Chunk.head);
|
|
628
628
|
/**
|
|
@@ -639,7 +639,7 @@ export const head = (ref) => RefSubject.filterMap(ref, Chunk.head);
|
|
|
639
639
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
640
640
|
*
|
|
641
641
|
* @since 1.18.0
|
|
642
|
-
* @category
|
|
642
|
+
* @category Optional queries
|
|
643
643
|
*/
|
|
644
644
|
export const last = (ref) => RefSubject.filterMap(ref, Chunk.last);
|
|
645
645
|
/**
|
|
@@ -656,7 +656,7 @@ export const last = (ref) => RefSubject.filterMap(ref, Chunk.last);
|
|
|
656
656
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
657
657
|
*
|
|
658
658
|
* @since 1.18.0
|
|
659
|
-
* @category
|
|
659
|
+
* @category Optional queries
|
|
660
660
|
*/
|
|
661
661
|
export const findFirst = dual(2, function findFirst(ref, predicate) {
|
|
662
662
|
return RefSubject.filterMap(ref, Chunk.findFirst(predicate));
|
|
@@ -675,7 +675,7 @@ export const findFirst = dual(2, function findFirst(ref, predicate) {
|
|
|
675
675
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
676
676
|
*
|
|
677
677
|
* @since 1.18.0
|
|
678
|
-
* @category
|
|
678
|
+
* @category Optional queries
|
|
679
679
|
*/
|
|
680
680
|
export const findLast = dual(2, function findLast(ref, predicate) {
|
|
681
681
|
return RefSubject.filterMap(ref, Chunk.findLast(predicate));
|