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

An iterable which takes the first how_many elements.

Summary

Functions

Creates an iterable which takes the first how_many elements.

Types

@type t() :: %Iter.Iterable.HeadTaker{
  how_many: pos_integer(),
  iterable: Iter.Iterable.t()
}

Functions

@spec new(Iter.Iterable.t(), pos_integer()) :: t()

Creates an iterable which takes the first how_many elements.