Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sequenceNonEmptyArray #1611

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/modules/Either.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ Added in v2.0.0
- [elem](#elem)
- [exists](#exists)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [toError](#toerror)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
Expand Down Expand Up @@ -1565,6 +1566,18 @@ export declare const sequenceArray: <E, A>(as: readonly Either<E, A>[]) => Eithe

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <E, A>(
as: ReadonlyNonEmptyArray<Either<E, A>>
) => Either<E, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## toError

Default value for the `onError` argument of `tryCatch`
Expand Down
11 changes: 11 additions & 0 deletions docs/modules/IO.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Added in v2.0.0
- [bind](#bind)
- [bindTo](#bindto)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
- [traverseReadonlyArrayWithIndex](#traversereadonlyarraywithindex)
Expand Down Expand Up @@ -435,6 +436,16 @@ export declare const sequenceArray: <A>(arr: readonly IO<A>[]) => IO<readonly A[

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <A>(arr: ReadonlyNonEmptyArray<IO<A>>) => IO<ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## traverseArray

**Signature**
Expand Down
13 changes: 13 additions & 0 deletions docs/modules/IOEither.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Added in v2.0.0
- [bindW](#bindw)
- [bracket](#bracket)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [sequenceSeqArray](#sequenceseqarray)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
Expand Down Expand Up @@ -1196,6 +1197,18 @@ export declare const sequenceArray: <E, A>(arr: readonly IOEither<E, A>[]) => IO

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <E, A>(
arr: ReadonlyNonEmptyArray<IOEither<E, A>>
) => IOEither<E, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## sequenceSeqArray

**Signature**
Expand Down
13 changes: 13 additions & 0 deletions docs/modules/Option.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ Added in v2.0.0
- [elem](#elem)
- [exists](#exists)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
- [traverseReadonlyArrayWithIndex](#traversereadonlyarraywithindex)
Expand Down Expand Up @@ -1587,6 +1588,18 @@ export declare const sequenceArray: <A>(arr: readonly Option<A>[]) => Option<rea

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <A>(
arr: ReadonlyNonEmptyArray<Option<A>>
) => Option<ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## traverseArray

**Signature**
Expand Down
13 changes: 13 additions & 0 deletions docs/modules/Reader.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Added in v2.0.0
- [bindTo](#bindto)
- [bindW](#bindw)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
- [traverseReadonlyArrayWithIndex](#traversereadonlyarraywithindex)
Expand Down Expand Up @@ -671,6 +672,18 @@ export declare const sequenceArray: <R, A>(arr: readonly Reader<R, A>[]) => Read

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <R, A>(
arr: ReadonlyNonEmptyArray<Reader<R, A>>
) => Reader<R, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## traverseArray

**Signature**
Expand Down
13 changes: 13 additions & 0 deletions docs/modules/ReaderEither.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Added in v2.0.0
- [bindTo](#bindto)
- [bindW](#bindw)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
- [traverseReadonlyArrayWithIndex](#traversereadonlyarraywithindex)
Expand Down Expand Up @@ -1251,6 +1252,18 @@ export declare const sequenceArray: <R, E, A>(arr: readonly ReaderEither<R, E, A

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <R, E, A>(
arr: ReadonlyNonEmptyArray<ReaderEither<R, E, A>>
) => ReaderEither<R, E, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## traverseArray

**Signature**
Expand Down
26 changes: 26 additions & 0 deletions docs/modules/ReaderTaskEither.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ Added in v2.0.0
- [bindW](#bindw)
- [bracket](#bracket)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [sequenceSeqArray](#sequenceseqarray)
- [sequenceSeqNonEmptyArray](#sequenceseqnonemptyarray)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
- [traverseReadonlyArrayWithIndex](#traversereadonlyarraywithindex)
Expand Down Expand Up @@ -1823,6 +1825,18 @@ export declare const sequenceArray: <R, E, A>(

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <R, E, A>(
arr: ReadonlyNonEmptyArray<ReaderTaskEither<R, E, A>>
) => ReaderTaskEither<R, E, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## sequenceSeqArray

**Signature**
Expand All @@ -1835,6 +1849,18 @@ export declare const sequenceSeqArray: <R, E, A>(

Added in v2.9.0

## sequenceSeqNonEmptyArray

**Signature**

```ts
export declare const sequenceSeqNonEmptyArray: <R, E, A>(
arr: ReadonlyNonEmptyArray<ReaderTaskEither<R, E, A>>
) => ReaderTaskEither<R, E, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## traverseArray

**Signature**
Expand Down
13 changes: 13 additions & 0 deletions docs/modules/State.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Added in v2.0.0
- [evaluate](#evaluate)
- [execute](#execute)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
- [traverseReadonlyArrayWithIndex](#traversereadonlyarraywithindex)
Expand Down Expand Up @@ -424,6 +425,18 @@ export declare const sequenceArray: <S, A>(arr: readonly State<S, A>[]) => State

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <S, A>(
arr: ReadonlyNonEmptyArray<State<S, A>>
) => State<S, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## traverseArray

**Signature**
Expand Down
13 changes: 13 additions & 0 deletions docs/modules/StateReaderTaskEither.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Added in v2.0.0
- [evaluate](#evaluate)
- [execute](#execute)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
- [traverseReadonlyArrayWithIndex](#traversereadonlyarraywithindex)
Expand Down Expand Up @@ -1468,6 +1469,18 @@ export declare const sequenceArray: <S, R, E, A>(

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <S, R, E, A>(
arr: ReadonlyNonEmptyArray<StateReaderTaskEither<S, R, E, A>>
) => StateReaderTaskEither<S, R, E, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## traverseArray

**Signature**
Expand Down
24 changes: 24 additions & 0 deletions docs/modules/Task.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ Added in v2.0.0
- [bindTo](#bindto)
- [never](#never)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [sequenceSeqArray](#sequenceseqarray)
- [sequenceSeqNonEmptyArray](#sequenceseqnonemptyarray)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
- [traverseReadonlyArrayWithIndex](#traversereadonlyarraywithindex)
Expand Down Expand Up @@ -613,6 +615,16 @@ export declare const sequenceArray: <A>(arr: readonly Task<A>[]) => Task<readonl

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <A>(arr: ReadonlyNonEmptyArray<Task<A>>) => Task<ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## sequenceSeqArray

**Signature**
Expand All @@ -623,6 +635,18 @@ export declare const sequenceSeqArray: <A>(arr: readonly Task<A>[]) => Task<read

Added in v2.9.0

## sequenceSeqNonEmptyArray

**Signature**

```ts
export declare const sequenceSeqNonEmptyArray: <A>(
arr: ReadonlyNonEmptyArray<Task<A>>
) => Task<ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## traverseArray

**Signature**
Expand Down
26 changes: 26 additions & 0 deletions docs/modules/TaskEither.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ Added in v2.0.0
- [bindW](#bindw)
- [bracket](#bracket)
- [sequenceArray](#sequencearray)
- [sequenceNonEmptyArray](#sequencenonemptyarray)
- [sequenceSeqArray](#sequenceseqarray)
- [sequenceSeqNonEmptyArray](#sequenceseqnonemptyarray)
- [taskify](#taskify)
- [traverseArray](#traversearray)
- [traverseArrayWithIndex](#traversearraywithindex)
Expand Down Expand Up @@ -1473,6 +1475,18 @@ export declare const sequenceArray: <A, E>(arr: readonly TaskEither<E, A>[]) =>

Added in v2.9.0

## sequenceNonEmptyArray

**Signature**

```ts
export declare const sequenceNonEmptyArray: <A, E>(
arr: ReadonlyNonEmptyArray<TaskEither<E, A>>
) => TaskEither<E, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## sequenceSeqArray

**Signature**
Expand All @@ -1483,6 +1497,18 @@ export declare const sequenceSeqArray: <A, E>(arr: readonly TaskEither<E, A>[])

Added in v2.9.0

## sequenceSeqNonEmptyArray

**Signature**

```ts
export declare const sequenceSeqNonEmptyArray: <A, E>(
arr: ReadonlyNonEmptyArray<TaskEither<E, A>>
) => TaskEither<E, ReadonlyNonEmptyArray<A>>
```

Added in v2.12.0

## taskify

Convert a node style callback function to one returning a `TaskEither`
Expand Down
Loading