Skip to content

Commit

Permalink
docs: remaining flatMap functions
Browse files Browse the repository at this point in the history
flatMapReaderIO, flatMapIOEIther, flatMapEither, flatMapOption, flatMapReaderTaskEither, flatMapState
  • Loading branch information
sukovanej committed May 23, 2023
1 parent 8d11e09 commit 8fd7ca8
Show file tree
Hide file tree
Showing 3 changed files with 373 additions and 198 deletions.
162 changes: 102 additions & 60 deletions docs/modules/ReaderTaskEither.ts.md
Expand Up @@ -117,10 +117,14 @@ Added in v2.0.0
- [chainFirstTaskEitherKW](#chainfirsttaskeitherkw)
- [chainFirstTaskK](#chainfirsttaskk)
- [chainFirstW](#chainfirstw)
- [chainIOEitherK](#chainioeitherk)
- [chainIOEitherKW](#chainioeitherkw)
- [chainIOK](#chainiok)
- [chainNullableK](#chainnullablek)
- [chainOptionK](#chainoptionk)
- [chainOptionKW](#chainoptionkw)
- [chainReaderEitherK](#chainreadereitherk)
- [chainReaderEitherKW](#chainreadereitherkw)
- [chainReaderIOK](#chainreaderiok)
- [chainReaderIOKW](#chainreaderiokw)
- [chainReaderK](#chainreaderk)
Expand Down Expand Up @@ -164,16 +168,14 @@ Added in v2.0.0
- [matchEW](#matchew)
- [matchW](#matchw)
- [sequencing](#sequencing)
- [chainIOEitherK](#chainioeitherk)
- [chainIOEitherKW](#chainioeitherkw)
- [chainReaderEitherK](#chainreadereitherk)
- [chainReaderEitherKW](#chainreadereitherkw)
- [flatMap](#flatmap)
- [flatMapEither](#flatmapeither)
- [flatMapIO](#flatmapio)
- [flatMapIOEither](#flatmapioeither)
- [flatMapNullable](#flatmapnullable)
- [flatMapOption](#flatmapoption)
- [flatMapReader](#flatmapreader)
- [flatMapReaderEither](#flatmapreadereither)
- [flatMapReaderIO](#flatmapreaderio)
- [flatMapReaderTask](#flatmapreadertask)
- [flatMapTask](#flatmaptask)
Expand Down Expand Up @@ -1619,6 +1621,38 @@ export declare const chainFirstW: <R2, E2, A, B>(

Added in v2.8.0

## chainIOEitherK

Alias of `flatMapIOEither`.

**Signature**

```ts
export declare const chainIOEitherK: <E, A, B>(
f: (a: A) => IOEither<E, B>
) => <R>(ma: ReaderTaskEither<R, E, A>) => ReaderTaskEither<R, E, B>
```

Added in v2.4.0

## chainIOEitherKW

Alias of `flatMapIOEither`.

Less strict version of [`chainIOEitherK`](#chainioeitherk).

The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged.

**Signature**

```ts
export declare const chainIOEitherKW: <E2, A, B>(
f: (a: A) => IOEither<E2, B>
) => <R, E1>(ma: ReaderTaskEither<R, E1, A>) => ReaderTaskEither<R, E2 | E1, B>
```

Added in v2.6.1

## chainIOK

Alias of `flatMapIO`.
Expand Down Expand Up @@ -1677,6 +1711,38 @@ export declare const chainOptionKW: <E2>(

Added in v2.13.2

## chainReaderEitherK

Alias of `flatMapReaderEither`.

**Signature**

```ts
export declare const chainReaderEitherK: <R, E, A, B>(
f: (a: A) => ReaderEither<R, E, B>
) => (ma: ReaderTaskEither<R, E, A>) => ReaderTaskEither<R, E, B>
```

Added in v2.11.0

## chainReaderEitherKW

Alias of `flatMapReaderEither`.

Less strict version of [`chainReaderEitherK`](#chainreadereitherk).

The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged.

**Signature**

```ts
export declare const chainReaderEitherKW: <R2, E2, A, B>(
f: (a: A) => ReaderEither<R2, E2, B>
) => <R1, E1>(ma: ReaderTaskEither<R1, E1, A>) => ReaderTaskEither<R1 & R2, E2 | E1, B>
```

Added in v2.11.0

## chainReaderIOK

Alias of `flatMapReaderIO`.
Expand Down Expand Up @@ -2219,62 +2285,6 @@ Added in v2.10.0

# sequencing

## chainIOEitherK

**Signature**

```ts
export declare const chainIOEitherK: <E, A, B>(
f: (a: A) => IOEither<E, B>
) => <R>(ma: ReaderTaskEither<R, E, A>) => ReaderTaskEither<R, E, B>
```

Added in v2.4.0

## chainIOEitherKW

Less strict version of [`chainIOEitherK`](#chainioeitherk).

The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged.

**Signature**

```ts
export declare const chainIOEitherKW: <E2, A, B>(
f: (a: A) => IOEither<E2, B>
) => <R, E1>(ma: ReaderTaskEither<R, E1, A>) => ReaderTaskEither<R, E2 | E1, B>
```

Added in v2.6.1

## chainReaderEitherK

**Signature**

```ts
export declare const chainReaderEitherK: <R, E, A, B>(
f: (a: A) => ReaderEither<R, E, B>
) => (ma: ReaderTaskEither<R, E, A>) => ReaderTaskEither<R, E, B>
```

Added in v2.11.0

## chainReaderEitherKW

Less strict version of [`chainReaderEitherK`](#chainreadereitherk).

The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged.

**Signature**

```ts
export declare const chainReaderEitherKW: <R2, E2, A, B>(
f: (a: A) => ReaderEither<R2, E2, B>
) => <R1, E1>(ma: ReaderTaskEither<R1, E1, A>) => ReaderTaskEither<R1 & R2, E2 | E1, B>
```

Added in v2.11.0

## flatMap

**Signature**
Expand Down Expand Up @@ -2320,6 +2330,19 @@ export declare const flatMapIO: {

Added in v2.16.0

## flatMapIOEither

**Signature**

```ts
export declare const flatMapIOEither: {
<A, E2, B>(f: (a: A) => IOEither<E2, B>): <R, E1>(self: ReaderTaskEither<R, E1, A>) => ReaderTaskEither<R, E2 | E1, B>
<R, E1, A, E2, B>(self: ReaderTaskEither<R, E1, A>, f: (a: A) => IOEither<E2, B>): ReaderTaskEither<R, E1 | E2, B>
}
```

Added in v2.16.0

## flatMapNullable

**Signature**
Expand Down Expand Up @@ -2371,6 +2394,25 @@ export declare const flatMapReader: {

Added in v2.16.0

## flatMapReaderEither

**Signature**

```ts
export declare const flatMapReaderEither: {
<A, R2, E2, B>(f: (a: A) => ReaderEither<R2, E2, B>): <R1, E1>(
self: ReaderTaskEither<R1, E1, A>
) => ReaderTaskEither<R1 & R2, E2 | E1, B>
<R1, E1, A, R2, E2, B>(self: ReaderTaskEither<R1, E1, A>, f: (a: A) => ReaderEither<R2, E2, B>): ReaderTaskEither<
R1 & R2,
E1 | E2,
B
>
}
```

Added in v2.16.0

## flatMapReaderIO

**Signature**
Expand Down

0 comments on commit 8fd7ca8

Please sign in to comment.