Pagination helper. Returns transducer which extracts only items for given page number (and page length, default 10).
remarks
When {@link (comp:1) | composing} with other transducers, it's most efficient if page is used as early as possible / prior to any heavy processing steps.
Pagination helper. Returns transducer which extracts only items for given page number (and page length, default 10).
When {@link (comp:1) | composing} with other transducers, it's most efficient if
page
is used as early as possible / prior to any heavy processing steps.[...page(0, 5, range(12))] // [ 0, 1, 2, 3, 4 ] [...page(1, 5, range(12))] // [ 5, 6, 7, 8, 9 ] [...page(2, 5, range(12))] // [ 10, 11 ] [...page(3, 5, range(12))] // []