You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Combines an array of `Either` values into a single `Either`, stopping at the first error (fail-fast). Returns `Right` with all values if all are `Right`, or `Left` with the first error encountered.
551
+
552
+
Unlike `all` which collects all errors, `sequence` returns immediately when it finds the first `Left`.
553
+
554
+
```ts
555
+
import { sequence, right, left } from'holo-fn/either';
Combines an array of `Result` values into a single `Result`, stopping at the first error (fail-fast). Returns `Ok` with all values if all are `Ok`, or `Err` with the first error encountered.
447
+
448
+
Unlike `all` which collects all errors, `sequence` returns immediately when it finds the first `Err`.
0 commit comments