View Source Iter.Iterable.Intersperser (iterex v0.1.2)
An iterable which places a separator value in between consecutive elements.
Summary
Functions
Create a new intersperser iterable out of an iterable and a separator
Types
@type t() :: %Iter.Iterable.Intersperser{ iterable: Iter.Iterable.t(), next: {:ok, Iter.Iterable.element()} | :none | :init, separator: any() }
Functions
@spec new(Iter.Iterable.t(), any()) :: Iter.Iterable.t()
Create a new intersperser iterable out of an iterable and a separator