Skip to content

buffer

Module Export

[value] |> [value]

Buffers an iterator into a static list that can be enumerated multiple times without changing.

Use buffer to load a stream into memory so that it can be consumed multiple times, or trade memory for speed when dealing with complex iterator transforms.

Examples

import 'iterators'
from myStream buffer