(s: S, f: (s: S) => readonly [A, Option.Option<S>])
| 4488 | |
| 4489 | /** @internal */ |
| 4490 | export const paginate = <S, A>(s: S, f: (s: S) => readonly [A, Option.Option<S>]): Stream.Stream<A> => |
| 4491 | paginateChunk(s, (s) => { |
| 4492 | const page = f(s) |
| 4493 | return [Chunk.of(page[0]), page[1]] as const |
| 4494 | }) |
| 4495 | |
| 4496 | /** @internal */ |
| 4497 | export const paginateChunk = <S, A>( |
nothing calls this directly
no test coverage detected