chunk-next returns the remainder of a chunked sequence after removing its first chunk, or nil when no chunk remains. It belongs to the chunk-* family, which supports chunked sequential processing and can improve performance for suitable data sources. section 10.12
Use chunk-next with these practical boundaries in mind:
- The input is a chunked sequence s, recognized by chunk-seq?. section 10.12
- The result is the sequence after its first chunk, or nil when no remainder exists. section 10.12
- Treat chunk-next and related chunk-* functions as low-level tools: they were publicized for experimentation while labeled implementation details. section 10.12
Listing 10.13. → Chunked sequences
(chunk-cons [chunk rest]) (chunk-first [s]) (chunk-rest [s]) (chunk-next [s]) (chunk-buffer [capacity]) (chunk-append [b x]) (chunk [b]) (chunked-seq? [s])
Browse the compact chunked-sequence API listing to compare chunk-next with chunk-cons, chunk-first, and chunk-rest. section 10.12
