-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd1cd73
commit f39b01f
Showing
8 changed files
with
108 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
title: AsyncGenerator.ts | ||
nav_order: 1 | ||
parent: Modules | ||
--- | ||
|
||
## AsyncGenerator overview | ||
|
||
The AsyncGenerator module provides tools for working with AsyncGenerator<T> type in a functional way. | ||
|
||
In functional jargon, this module provides a monadic interface over AsyncGenerator<T>. | ||
|
||
Added in v1.0.0 | ||
|
||
--- | ||
|
||
<h2 class="text-delta">Table of contents</h2> | ||
|
||
- [conversions](#conversions) | ||
- [fromAsyncIterable](#fromasynciterable) | ||
- [fromIterable](#fromiterable) | ||
- [fromLazyArg](#fromlazyarg) | ||
- [fromTask](#fromtask) | ||
|
||
--- | ||
|
||
# conversions | ||
|
||
## fromAsyncIterable | ||
|
||
**Signature** | ||
|
||
```ts | ||
export declare function fromAsyncIterable<A>(fa: AsyncIterable<A>): AsyncGenerator<A> | ||
``` | ||
|
||
Added in v1.0.0 | ||
|
||
## fromIterable | ||
|
||
**Signature** | ||
|
||
```ts | ||
export declare function fromIterable<A>(fa: Iterable<A>): LazyArg<AsyncGenerator<A>> | ||
``` | ||
|
||
Added in v1.0.0 | ||
|
||
## fromLazyArg | ||
|
||
**Signature** | ||
|
||
```ts | ||
export declare function fromLazyArg<A, R, N>(f: () => A): AsyncGenerator<A, R, N> | ||
``` | ||
|
||
Added in v1.0.0 | ||
|
||
## fromTask | ||
|
||
**Signature** | ||
|
||
```ts | ||
export declare function fromTask<A>(f: Task<A>): AsyncGenerator<A> | ||
``` | ||
|
||
Added in v1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: AsyncIterableEither.ts | ||
nav_order: 2 | ||
nav_order: 3 | ||
parent: Modules | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: AsyncIterableOption.ts | ||
nav_order: 3 | ||
nav_order: 4 | ||
parent: Modules | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: AsyncIterableReduce.ts | ||
nav_order: 4 | ||
nav_order: 5 | ||
parent: Modules | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Generator.ts | ||
nav_order: 6 | ||
parent: Modules | ||
--- | ||
|
||
## Generator overview | ||
|
||
The Generator module provides tools for working with Generator<T> type in a functional way. | ||
|
||
In functional jargon, this module provides a monadic interface over Generator<T>. | ||
|
||
Added in v1.0.0 | ||
|
||
--- | ||
|
||
<h2 class="text-delta">Table of contents</h2> | ||
|
||
- [conversions](#conversions) | ||
- [fromIterable](#fromiterable) | ||
|
||
--- | ||
|
||
# conversions | ||
|
||
## fromIterable | ||
|
||
**Signature** | ||
|
||
```ts | ||
export declare function fromIterable<A>(fa: Iterable<A>): Generator<A> | ||
``` | ||
|
||
Added in v1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Iterable.ts | ||
nav_order: 6 | ||
nav_order: 8 | ||
parent: Modules | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: index.ts | ||
nav_order: 5 | ||
nav_order: 7 | ||
parent: Modules | ||
--- | ||
|
||
|