(
iterable: Iterable<A>,
options?: {
readonly chunkSize?: number | undefined
}
)
| 945 | * @since 2.0.0 |
| 946 | */ |
| 947 | export const fromIterable = <A>( |
| 948 | iterable: Iterable<A>, |
| 949 | options?: { |
| 950 | readonly chunkSize?: number | undefined |
| 951 | } |
| 952 | ): Stream<A> => |
| 953 | Array.isArray(iterable) && options?.chunkSize === undefined |
| 954 | ? fromArray(iterable) |
| 955 | : fromChannel(Channel.fromIterableArray(iterable, options?.chunkSize)) |
| 956 | |
| 957 | /** |
| 958 | * Creates a stream from an effect producing an iterable of values. |
no test coverage detected