@typed/fx 2.0.0-beta.6 → 2.0.0-beta.7
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/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 +2 -1
|
@@ -22,7 +22,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
22
22
|
* interruption, and Scope requirements expressed by its members.
|
|
23
23
|
*
|
|
24
24
|
* @since 1.18.0
|
|
25
|
-
* @category models
|
|
25
|
+
* @category State models
|
|
26
26
|
*/
|
|
27
27
|
export interface RefArray<in out A, in out E = never, out R = never> extends RefSubject.RefSubject<ReadonlyArray<A>, E, R> {
|
|
28
28
|
}
|
|
@@ -63,7 +63,7 @@ export interface RefArray<in out A, in out E = never, out R = never> extends Ref
|
|
|
63
63
|
* ```
|
|
64
64
|
*
|
|
65
65
|
* @since 1.18.0
|
|
66
|
-
* @category
|
|
66
|
+
* @category Constructors
|
|
67
67
|
*/
|
|
68
68
|
export declare function make<A, E = never, R = never>(initial: ReadonlyArray<A> | Effect.Effect<ReadonlyArray<A>, E, R> | Fx.Fx<ReadonlyArray<A>, E, R>, eq?: Equivalence<A>): Effect.Effect<RefArray<A, E>, never, R | Scope.Scope>;
|
|
69
69
|
/**
|
|
@@ -80,7 +80,7 @@ export declare function make<A, E = never, R = never>(initial: ReadonlyArray<A>
|
|
|
80
80
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
81
81
|
*
|
|
82
82
|
* @since 1.18.0
|
|
83
|
-
* @category
|
|
83
|
+
* @category State updates
|
|
84
84
|
*/
|
|
85
85
|
export declare const prepend: {
|
|
86
86
|
<A>(value: A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -100,7 +100,7 @@ export declare const prepend: {
|
|
|
100
100
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
101
101
|
*
|
|
102
102
|
* @since 1.18.0
|
|
103
|
-
* @category
|
|
103
|
+
* @category State updates
|
|
104
104
|
*/
|
|
105
105
|
export declare const prependAll: {
|
|
106
106
|
<A>(value: Iterable<A>): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -120,7 +120,7 @@ export declare const prependAll: {
|
|
|
120
120
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
121
121
|
*
|
|
122
122
|
* @since 1.18.0
|
|
123
|
-
* @category
|
|
123
|
+
* @category State updates
|
|
124
124
|
*/
|
|
125
125
|
export declare const append: {
|
|
126
126
|
<A>(value: A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -140,7 +140,7 @@ export declare const append: {
|
|
|
140
140
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
141
141
|
*
|
|
142
142
|
* @since 1.18.0
|
|
143
|
-
* @category
|
|
143
|
+
* @category State updates
|
|
144
144
|
*/
|
|
145
145
|
export declare const appendAll: {
|
|
146
146
|
<A>(value: Iterable<A>): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -160,7 +160,7 @@ export declare const appendAll: {
|
|
|
160
160
|
* acquires no resource; failures and services remain those of the source ref.
|
|
161
161
|
*
|
|
162
162
|
* @since 1.18.0
|
|
163
|
-
* @category
|
|
163
|
+
* @category State updates
|
|
164
164
|
*/
|
|
165
165
|
export declare const drop: {
|
|
166
166
|
(n: number): <A, E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -180,7 +180,7 @@ export declare const drop: {
|
|
|
180
180
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
181
181
|
*
|
|
182
182
|
* @since 1.18.0
|
|
183
|
-
* @category
|
|
183
|
+
* @category State updates
|
|
184
184
|
*/
|
|
185
185
|
export declare const dropRight: {
|
|
186
186
|
(n: number): <A, E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -200,7 +200,7 @@ export declare const dropRight: {
|
|
|
200
200
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
201
201
|
*
|
|
202
202
|
* @since 1.18.0
|
|
203
|
-
* @category
|
|
203
|
+
* @category State updates
|
|
204
204
|
*/
|
|
205
205
|
export declare const dropWhile: {
|
|
206
206
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -220,7 +220,7 @@ export declare const dropWhile: {
|
|
|
220
220
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
221
221
|
*
|
|
222
222
|
* @since 1.18.0
|
|
223
|
-
* @category
|
|
223
|
+
* @category Derived queries
|
|
224
224
|
*/
|
|
225
225
|
export declare const filterValues: {
|
|
226
226
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<ReadonlyArray<A>, E, R>;
|
|
@@ -240,7 +240,7 @@ export declare const filterValues: {
|
|
|
240
240
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
241
241
|
*
|
|
242
242
|
* @since 1.18.0
|
|
243
|
-
* @category
|
|
243
|
+
* @category Optional queries
|
|
244
244
|
*/
|
|
245
245
|
export declare const getIndex: {
|
|
246
246
|
(index: number): <A, E, R>(ref: RefArray<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
@@ -260,7 +260,7 @@ export declare const getIndex: {
|
|
|
260
260
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
261
261
|
*
|
|
262
262
|
* @since 1.18.0
|
|
263
|
-
* @category
|
|
263
|
+
* @category Derived queries
|
|
264
264
|
*/
|
|
265
265
|
export declare const groupBy: {
|
|
266
266
|
<A>(f: (a: A) => string): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<R, E, Record<string, ReadonlyArray<A>>>;
|
|
@@ -280,7 +280,7 @@ export declare const groupBy: {
|
|
|
280
280
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
281
281
|
*
|
|
282
282
|
* @since 1.18.0
|
|
283
|
-
* @category
|
|
283
|
+
* @category State updates
|
|
284
284
|
*/
|
|
285
285
|
export declare const insertAt: {
|
|
286
286
|
<A>(index: number, a: A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -300,7 +300,7 @@ export declare const insertAt: {
|
|
|
300
300
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
301
301
|
*
|
|
302
302
|
* @since 1.18.0
|
|
303
|
-
* @category
|
|
303
|
+
* @category State predicates
|
|
304
304
|
*/
|
|
305
305
|
export declare const isEmpty: <A, E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
306
306
|
/**
|
|
@@ -317,7 +317,7 @@ export declare const isEmpty: <A, E, R>(ref: RefArray<A, E, R>) => RefSubject.Co
|
|
|
317
317
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
318
318
|
*
|
|
319
319
|
* @since 1.18.0
|
|
320
|
-
* @category
|
|
320
|
+
* @category State predicates
|
|
321
321
|
*/
|
|
322
322
|
export declare const isNonEmpty: <A, E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
323
323
|
/**
|
|
@@ -334,7 +334,7 @@ export declare const isNonEmpty: <A, E, R>(ref: RefArray<A, E, R>) => RefSubject
|
|
|
334
334
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
335
335
|
*
|
|
336
336
|
* @since 1.18.0
|
|
337
|
-
* @category
|
|
337
|
+
* @category Derived queries
|
|
338
338
|
*/
|
|
339
339
|
export declare const length: <A, E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<number, E, R>;
|
|
340
340
|
/**
|
|
@@ -357,7 +357,7 @@ export declare const length: <A, E, R>(ref: RefArray<A, E, R>) => RefSubject.Com
|
|
|
357
357
|
* changing that signature or runtime behavior requires a separate compatibility decision.
|
|
358
358
|
*
|
|
359
359
|
* @since 1.18.0
|
|
360
|
-
* @category
|
|
360
|
+
* @category State updates
|
|
361
361
|
*/
|
|
362
362
|
export declare const map: {
|
|
363
363
|
<A>(f: (a: A, index: number) => A): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<ReadonlyArray<A>, E, R>;
|
|
@@ -377,7 +377,7 @@ export declare const map: {
|
|
|
377
377
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
378
378
|
*
|
|
379
379
|
* @since 1.18.0
|
|
380
|
-
* @category
|
|
380
|
+
* @category Derived queries
|
|
381
381
|
*/
|
|
382
382
|
export declare const mapValues: {
|
|
383
383
|
<A, B>(f: (a: A, index: number) => B): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<ReadonlyArray<B>, E, R>;
|
|
@@ -397,7 +397,7 @@ export declare const mapValues: {
|
|
|
397
397
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
398
398
|
*
|
|
399
399
|
* @since 1.18.0
|
|
400
|
-
* @category
|
|
400
|
+
* @category State updates
|
|
401
401
|
*/
|
|
402
402
|
export declare const modifyAt: {
|
|
403
403
|
<A>(index: number, f: (a: A) => A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -417,7 +417,7 @@ export declare const modifyAt: {
|
|
|
417
417
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
418
418
|
*
|
|
419
419
|
* @since 1.18.0
|
|
420
|
-
* @category
|
|
420
|
+
* @category Derived queries
|
|
421
421
|
*/
|
|
422
422
|
export declare const partition: {
|
|
423
423
|
<A, B extends A>(predicate: (a: A) => a is B): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<R, E, readonly [ReadonlyArray<B>, ReadonlyArray<A>]>;
|
|
@@ -437,7 +437,7 @@ export declare const partition: {
|
|
|
437
437
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
438
438
|
*
|
|
439
439
|
* @since 1.18.0
|
|
440
|
-
* @category
|
|
440
|
+
* @category Derived queries
|
|
441
441
|
*/
|
|
442
442
|
export declare const reduce: {
|
|
443
443
|
<A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<B, E, R>;
|
|
@@ -457,7 +457,7 @@ export declare const reduce: {
|
|
|
457
457
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
458
458
|
*
|
|
459
459
|
* @since 1.18.0
|
|
460
|
-
* @category
|
|
460
|
+
* @category Derived queries
|
|
461
461
|
*/
|
|
462
462
|
export declare const reduceRight: {
|
|
463
463
|
<A, B>(b: B, f: (b: B, a: A, index: number) => B): <E, R>(ref: RefArray<A, E, R>) => RefSubject.Computed<B, E, R>;
|
|
@@ -477,7 +477,7 @@ export declare const reduceRight: {
|
|
|
477
477
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
478
478
|
*
|
|
479
479
|
* @since 1.18.0
|
|
480
|
-
* @category
|
|
480
|
+
* @category State updates
|
|
481
481
|
*/
|
|
482
482
|
export declare const replaceAt: {
|
|
483
483
|
<A>(index: number, a: A): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -497,7 +497,7 @@ export declare const replaceAt: {
|
|
|
497
497
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
498
498
|
*
|
|
499
499
|
* @since 1.18.0
|
|
500
|
-
* @category
|
|
500
|
+
* @category State updates
|
|
501
501
|
*/
|
|
502
502
|
export declare const rotate: {
|
|
503
503
|
(n: number): <A, E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -517,7 +517,7 @@ export declare const rotate: {
|
|
|
517
517
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
518
518
|
*
|
|
519
519
|
* @since 1.18.0
|
|
520
|
-
* @category
|
|
520
|
+
* @category State updates
|
|
521
521
|
*/
|
|
522
522
|
export declare const sortBy: {
|
|
523
523
|
<A>(orders: Iterable<Order.Order<A>>): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -537,7 +537,7 @@ export declare const sortBy: {
|
|
|
537
537
|
* acquires no resource; failures and services remain those of the source ref.
|
|
538
538
|
*
|
|
539
539
|
* @since 1.18.0
|
|
540
|
-
* @category
|
|
540
|
+
* @category State updates
|
|
541
541
|
*/
|
|
542
542
|
export declare const take: {
|
|
543
543
|
(n: number): <A, E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -557,7 +557,7 @@ export declare const take: {
|
|
|
557
557
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
558
558
|
*
|
|
559
559
|
* @since 1.18.0
|
|
560
|
-
* @category
|
|
560
|
+
* @category State updates
|
|
561
561
|
*/
|
|
562
562
|
export declare const takeRight: {
|
|
563
563
|
(n: number): <A, E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -577,7 +577,7 @@ export declare const takeRight: {
|
|
|
577
577
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
578
578
|
*
|
|
579
579
|
* @since 1.18.0
|
|
580
|
-
* @category
|
|
580
|
+
* @category State updates
|
|
581
581
|
*/
|
|
582
582
|
export declare const takeWhile: {
|
|
583
583
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
@@ -597,7 +597,7 @@ export declare const takeWhile: {
|
|
|
597
597
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
598
598
|
*
|
|
599
599
|
* @since 1.18.0
|
|
600
|
-
* @category
|
|
600
|
+
* @category State updates
|
|
601
601
|
*/
|
|
602
602
|
export declare const dedupeWith: <A>(valueEq: Equivalence<A>) => <E, R>(ref: RefArray<A, E, R>) => Effect.Effect<ReadonlyArray<A>, E, R>;
|
|
603
603
|
/**
|
|
@@ -633,7 +633,7 @@ export declare const dedupeWith: <A>(valueEq: Equivalence<A>) => <E, R>(ref: Ref
|
|
|
633
633
|
* ```
|
|
634
634
|
*
|
|
635
635
|
* @since 1.18.0
|
|
636
|
-
* @category
|
|
636
|
+
* @category Optional queries
|
|
637
637
|
*/
|
|
638
638
|
export declare const last: <A, E, R>(ref: RefArray<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
639
639
|
/**
|
|
@@ -669,7 +669,7 @@ export declare const last: <A, E, R>(ref: RefArray<A, E, R>) => RefSubject.Filte
|
|
|
669
669
|
* ```
|
|
670
670
|
*
|
|
671
671
|
* @since 1.18.0
|
|
672
|
-
* @category
|
|
672
|
+
* @category Optional queries
|
|
673
673
|
*/
|
|
674
674
|
export declare const head: <A, E, R>(ref: RefArray<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
675
675
|
//# sourceMappingURL=RefArray.d.ts.map
|
|
@@ -46,7 +46,7 @@ import { Result } from "effect";
|
|
|
46
46
|
* ```
|
|
47
47
|
*
|
|
48
48
|
* @since 1.18.0
|
|
49
|
-
* @category
|
|
49
|
+
* @category Constructors
|
|
50
50
|
*/
|
|
51
51
|
export function make(initial, eq = equals) {
|
|
52
52
|
return RefSubject.make(initial, { eq: Equivalence_.Array(eq) });
|
|
@@ -65,7 +65,7 @@ export function make(initial, eq = equals) {
|
|
|
65
65
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
66
66
|
*
|
|
67
67
|
* @since 1.18.0
|
|
68
|
-
* @category
|
|
68
|
+
* @category State updates
|
|
69
69
|
*/
|
|
70
70
|
export const prepend = dual(2, function prepend(ref, value) {
|
|
71
71
|
return RefSubject.update(ref, ReadonlyArray.prepend(value));
|
|
@@ -84,7 +84,7 @@ export const prepend = dual(2, function prepend(ref, value) {
|
|
|
84
84
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
85
85
|
*
|
|
86
86
|
* @since 1.18.0
|
|
87
|
-
* @category
|
|
87
|
+
* @category State updates
|
|
88
88
|
*/
|
|
89
89
|
export const prependAll = dual(2, function prependAll(ref, value) {
|
|
90
90
|
return RefSubject.update(ref, ReadonlyArray.prependAll(value));
|
|
@@ -103,7 +103,7 @@ export const prependAll = dual(2, function prependAll(ref, value) {
|
|
|
103
103
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
104
104
|
*
|
|
105
105
|
* @since 1.18.0
|
|
106
|
-
* @category
|
|
106
|
+
* @category State updates
|
|
107
107
|
*/
|
|
108
108
|
export const append = dual(2, function append(ref, value) {
|
|
109
109
|
return RefSubject.update(ref, ReadonlyArray.append(value));
|
|
@@ -122,7 +122,7 @@ export const append = dual(2, function append(ref, value) {
|
|
|
122
122
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
123
123
|
*
|
|
124
124
|
* @since 1.18.0
|
|
125
|
-
* @category
|
|
125
|
+
* @category State updates
|
|
126
126
|
*/
|
|
127
127
|
export const appendAll = dual(2, function appendAll(ref, value) {
|
|
128
128
|
return RefSubject.update(ref, ReadonlyArray.appendAll(value));
|
|
@@ -141,7 +141,7 @@ export const appendAll = dual(2, function appendAll(ref, value) {
|
|
|
141
141
|
* acquires no resource; failures and services remain those of the source ref.
|
|
142
142
|
*
|
|
143
143
|
* @since 1.18.0
|
|
144
|
-
* @category
|
|
144
|
+
* @category State updates
|
|
145
145
|
*/
|
|
146
146
|
export const drop = dual(2, function drop(ref, n) {
|
|
147
147
|
return RefSubject.update(ref, ReadonlyArray.drop(n));
|
|
@@ -160,7 +160,7 @@ export const drop = dual(2, function drop(ref, n) {
|
|
|
160
160
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
161
161
|
*
|
|
162
162
|
* @since 1.18.0
|
|
163
|
-
* @category
|
|
163
|
+
* @category State updates
|
|
164
164
|
*/
|
|
165
165
|
export const dropRight = dual(2, function dropRight(ref, n) {
|
|
166
166
|
return RefSubject.update(ref, ReadonlyArray.dropRight(n));
|
|
@@ -179,7 +179,7 @@ export const dropRight = dual(2, function dropRight(ref, n) {
|
|
|
179
179
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
180
180
|
*
|
|
181
181
|
* @since 1.18.0
|
|
182
|
-
* @category
|
|
182
|
+
* @category State updates
|
|
183
183
|
*/
|
|
184
184
|
export const dropWhile = dual(2, function dropWhile(ref, predicate) {
|
|
185
185
|
return RefSubject.update(ref, ReadonlyArray.dropWhile(predicate));
|
|
@@ -198,7 +198,7 @@ export const dropWhile = dual(2, function dropWhile(ref, predicate) {
|
|
|
198
198
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
199
199
|
*
|
|
200
200
|
* @since 1.18.0
|
|
201
|
-
* @category
|
|
201
|
+
* @category Derived queries
|
|
202
202
|
*/
|
|
203
203
|
export const filterValues = dual(2, function filterValues(ref, predicate) {
|
|
204
204
|
return RefSubject.map(ref, ReadonlyArray.filter(predicate));
|
|
@@ -217,7 +217,7 @@ export const filterValues = dual(2, function filterValues(ref, predicate) {
|
|
|
217
217
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
218
218
|
*
|
|
219
219
|
* @since 1.18.0
|
|
220
|
-
* @category
|
|
220
|
+
* @category Optional queries
|
|
221
221
|
*/
|
|
222
222
|
export const getIndex = dual(2, function getIndex(ref, index) {
|
|
223
223
|
return RefSubject.filterMap(ref, ReadonlyArray.get(index));
|
|
@@ -236,7 +236,7 @@ export const getIndex = dual(2, function getIndex(ref, index) {
|
|
|
236
236
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
237
237
|
*
|
|
238
238
|
* @since 1.18.0
|
|
239
|
-
* @category
|
|
239
|
+
* @category Derived queries
|
|
240
240
|
*/
|
|
241
241
|
export const groupBy = dual(2, function groupBy(ref, f) {
|
|
242
242
|
return RefSubject.map(ref, ReadonlyArray.groupBy(f));
|
|
@@ -255,7 +255,7 @@ export const groupBy = dual(2, function groupBy(ref, f) {
|
|
|
255
255
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
256
256
|
*
|
|
257
257
|
* @since 1.18.0
|
|
258
|
-
* @category
|
|
258
|
+
* @category State updates
|
|
259
259
|
*/
|
|
260
260
|
export const insertAt = dual(3, function insertAt(ref, index, a) {
|
|
261
261
|
return RefSubject.update(ref, (as) => Option.getOrElse(ReadonlyArray.insertAt(as, index, a), () => [...as, a]));
|
|
@@ -274,7 +274,7 @@ export const insertAt = dual(3, function insertAt(ref, index, a) {
|
|
|
274
274
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
275
275
|
*
|
|
276
276
|
* @since 1.18.0
|
|
277
|
-
* @category
|
|
277
|
+
* @category State predicates
|
|
278
278
|
*/
|
|
279
279
|
export const isEmpty = (ref) => RefSubject.map(ref, ReadonlyArray.isReadonlyArrayEmpty);
|
|
280
280
|
/**
|
|
@@ -291,7 +291,7 @@ export const isEmpty = (ref) => RefSubject.map(ref, ReadonlyArray.isReadonlyArra
|
|
|
291
291
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
292
292
|
*
|
|
293
293
|
* @since 1.18.0
|
|
294
|
-
* @category
|
|
294
|
+
* @category State predicates
|
|
295
295
|
*/
|
|
296
296
|
export const isNonEmpty = (ref) => RefSubject.map(ref, ReadonlyArray.isReadonlyArrayNonEmpty);
|
|
297
297
|
/**
|
|
@@ -308,7 +308,7 @@ export const isNonEmpty = (ref) => RefSubject.map(ref, ReadonlyArray.isReadonlyA
|
|
|
308
308
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
309
309
|
*
|
|
310
310
|
* @since 1.18.0
|
|
311
|
-
* @category
|
|
311
|
+
* @category Derived queries
|
|
312
312
|
*/
|
|
313
313
|
export const length = (ref) => RefSubject.map(ref, ReadonlyArray.length);
|
|
314
314
|
/**
|
|
@@ -331,7 +331,7 @@ export const length = (ref) => RefSubject.map(ref, ReadonlyArray.length);
|
|
|
331
331
|
* changing that signature or runtime behavior requires a separate compatibility decision.
|
|
332
332
|
*
|
|
333
333
|
* @since 1.18.0
|
|
334
|
-
* @category
|
|
334
|
+
* @category State updates
|
|
335
335
|
*/
|
|
336
336
|
export const map = dual(2, function mapValues(ref, f) {
|
|
337
337
|
return RefSubject.update(ref, ReadonlyArray.map(f));
|
|
@@ -350,7 +350,7 @@ export const map = dual(2, function mapValues(ref, f) {
|
|
|
350
350
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
351
351
|
*
|
|
352
352
|
* @since 1.18.0
|
|
353
|
-
* @category
|
|
353
|
+
* @category Derived queries
|
|
354
354
|
*/
|
|
355
355
|
export const mapValues = dual(2, function mapValues(ref, f) {
|
|
356
356
|
return RefSubject.map(ref, ReadonlyArray.map(f));
|
|
@@ -369,7 +369,7 @@ export const mapValues = dual(2, function mapValues(ref, f) {
|
|
|
369
369
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
370
370
|
*
|
|
371
371
|
* @since 1.18.0
|
|
372
|
-
* @category
|
|
372
|
+
* @category State updates
|
|
373
373
|
*/
|
|
374
374
|
export const modifyAt = dual(3, function modifyAt(ref, index, f) {
|
|
375
375
|
return RefSubject.update(ref, (values) => Option.getOrElse(ReadonlyArray.modify(values, index, f), () => values));
|
|
@@ -388,7 +388,7 @@ export const modifyAt = dual(3, function modifyAt(ref, index, f) {
|
|
|
388
388
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
389
389
|
*
|
|
390
390
|
* @since 1.18.0
|
|
391
|
-
* @category
|
|
391
|
+
* @category Derived queries
|
|
392
392
|
*/
|
|
393
393
|
export const partition = dual(2, function partition(ref, predicate) {
|
|
394
394
|
return RefSubject.map(ref, (array) => ReadonlyArray.partition(array, Result.liftPredicate(predicate, Result.fail)));
|
|
@@ -407,7 +407,7 @@ export const partition = dual(2, function partition(ref, predicate) {
|
|
|
407
407
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
408
408
|
*
|
|
409
409
|
* @since 1.18.0
|
|
410
|
-
* @category
|
|
410
|
+
* @category Derived queries
|
|
411
411
|
*/
|
|
412
412
|
export const reduce = dual(3, function reduce(ref, b, f) {
|
|
413
413
|
return RefSubject.map(ref, ReadonlyArray.reduce(b, f));
|
|
@@ -426,7 +426,7 @@ export const reduce = dual(3, function reduce(ref, b, f) {
|
|
|
426
426
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
427
427
|
*
|
|
428
428
|
* @since 1.18.0
|
|
429
|
-
* @category
|
|
429
|
+
* @category Derived queries
|
|
430
430
|
*/
|
|
431
431
|
export const reduceRight = dual(3, function reduceRight(ref, b, f) {
|
|
432
432
|
return RefSubject.map(ref, ReadonlyArray.reduceRight(b, f));
|
|
@@ -445,7 +445,7 @@ export const reduceRight = dual(3, function reduceRight(ref, b, f) {
|
|
|
445
445
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
446
446
|
*
|
|
447
447
|
* @since 1.18.0
|
|
448
|
-
* @category
|
|
448
|
+
* @category State updates
|
|
449
449
|
*/
|
|
450
450
|
export const replaceAt = dual(3, function replaceAt(ref, index, a) {
|
|
451
451
|
return RefSubject.update(ref, (values) => Option.getOrElse(ReadonlyArray.replace(values, index, a), () => values));
|
|
@@ -464,7 +464,7 @@ export const replaceAt = dual(3, function replaceAt(ref, index, a) {
|
|
|
464
464
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
465
465
|
*
|
|
466
466
|
* @since 1.18.0
|
|
467
|
-
* @category
|
|
467
|
+
* @category State updates
|
|
468
468
|
*/
|
|
469
469
|
export const rotate = dual(2, function rotate(ref, n) {
|
|
470
470
|
return RefSubject.update(ref, ReadonlyArray.rotate(n));
|
|
@@ -483,7 +483,7 @@ export const rotate = dual(2, function rotate(ref, n) {
|
|
|
483
483
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
484
484
|
*
|
|
485
485
|
* @since 1.18.0
|
|
486
|
-
* @category
|
|
486
|
+
* @category State updates
|
|
487
487
|
*/
|
|
488
488
|
export const sortBy = dual(2, function sortBy(ref, orders) {
|
|
489
489
|
return RefSubject.update(ref, ReadonlyArray.sortBy(...orders));
|
|
@@ -502,7 +502,7 @@ export const sortBy = dual(2, function sortBy(ref, orders) {
|
|
|
502
502
|
* acquires no resource; failures and services remain those of the source ref.
|
|
503
503
|
*
|
|
504
504
|
* @since 1.18.0
|
|
505
|
-
* @category
|
|
505
|
+
* @category State updates
|
|
506
506
|
*/
|
|
507
507
|
export const take = dual(2, function take(ref, n) {
|
|
508
508
|
return RefSubject.update(ref, ReadonlyArray.take(n));
|
|
@@ -521,7 +521,7 @@ export const take = dual(2, function take(ref, n) {
|
|
|
521
521
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
522
522
|
*
|
|
523
523
|
* @since 1.18.0
|
|
524
|
-
* @category
|
|
524
|
+
* @category State updates
|
|
525
525
|
*/
|
|
526
526
|
export const takeRight = dual(2, function takeRight(ref, n) {
|
|
527
527
|
return RefSubject.update(ref, ReadonlyArray.takeRight(n));
|
|
@@ -540,7 +540,7 @@ export const takeRight = dual(2, function takeRight(ref, n) {
|
|
|
540
540
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
541
541
|
*
|
|
542
542
|
* @since 1.18.0
|
|
543
|
-
* @category
|
|
543
|
+
* @category State updates
|
|
544
544
|
*/
|
|
545
545
|
export const takeWhile = dual(2, function takeWhile(ref, predicate) {
|
|
546
546
|
return RefSubject.update(ref, ReadonlyArray.takeWhile(predicate));
|
|
@@ -559,7 +559,7 @@ export const takeWhile = dual(2, function takeWhile(ref, predicate) {
|
|
|
559
559
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
560
560
|
*
|
|
561
561
|
* @since 1.18.0
|
|
562
|
-
* @category
|
|
562
|
+
* @category State updates
|
|
563
563
|
*/
|
|
564
564
|
export const dedupeWith = (valueEq) => (ref) => RefSubject.update(ref, ReadonlyArray.dedupeWith(valueEq));
|
|
565
565
|
/**
|
|
@@ -595,7 +595,7 @@ export const dedupeWith = (valueEq) => (ref) => RefSubject.update(ref, ReadonlyA
|
|
|
595
595
|
* ```
|
|
596
596
|
*
|
|
597
597
|
* @since 1.18.0
|
|
598
|
-
* @category
|
|
598
|
+
* @category Optional queries
|
|
599
599
|
*/
|
|
600
600
|
export const last = (ref) => RefSubject.filterMap(ref, ReadonlyArray.last);
|
|
601
601
|
/**
|
|
@@ -631,6 +631,6 @@ export const last = (ref) => RefSubject.filterMap(ref, ReadonlyArray.last);
|
|
|
631
631
|
* ```
|
|
632
632
|
*
|
|
633
633
|
* @since 1.18.0
|
|
634
|
-
* @category
|
|
634
|
+
* @category Optional queries
|
|
635
635
|
*/
|
|
636
636
|
export const head = (ref) => RefSubject.filterMap(ref, ReadonlyArray.head);
|