(s: S, f: (s: S) => readonly [A, Option.Option<S>])
| 4526 | |
| 4527 | /** @internal */ |
| 4528 | export const paginate = <S, A>(s: S, f: (s: S) => readonly [A, Option.Option<S>]): Stream.Stream<A> => |
| 4529 | paginateChunk(s, (s) => { |
| 4530 | const page = f(s) |
| 4531 | return [Chunk.of(page[0]), page[1]] as const |
| 4532 | }) |
| 4533 | |
| 4534 | /** @internal */ |
| 4535 | export const paginateChunk = <S, A>( |
nothing calls this directly
no test coverage detected