View Source Iter.Iterable.EveryChunker (iterex v0.1.2)

An iterable that chunks into count size elements, where each new chunk starts step elements into the enumerable.

Summary

Functions

Creates an iterable that chunks into count size elements, where each new chunk starts step elements into the enumerable.

Types

@type t() :: %Iter.Iterable.EveryChunker{
  count: pos_integer(),
  iterable: Iter.Iterable.t(),
  leftover: Iter.Iterable.t() | :discard,
  step: pos_integer()
}

Functions

Link to this function

new(iterable, count, step, leftover)

View Source
@spec new(
  Iter.Iterable.t(),
  pos_integer(),
  pos_integer(),
  Iter.Iterable.t() | :discard
) :: t()

Creates an iterable that chunks into count size elements, where each new chunk starts step elements into the enumerable.