View Source Iter.Iterable.ByChunker (iterex v0.1.2)
An iterable that chunks elements by subsequent return values of fun
.
Summary
Functions
Creates an iterable that chunks elements by subsequent return values of fun
.
Types
@type t() :: %Iter.Iterable.ByChunker{ buffer: [], chunker: (Iter.Iterable.element() -> any()), iterable: Iter.Iterable.t(), state: {:ok, any()} | :none }
Functions
@spec new(Iter.Iterable.t(), (Iter.Iterable.element() -> any())) :: t()
Creates an iterable that chunks elements by subsequent return values of fun
.