Stream.drop
You're seeing just the function
drop
, go back to Stream module for more information.
Specs
drop(Enumerable.t(), integer()) :: Enumerable.t()
Lazily drops the next n
elements from the enumerable.
If a negative n
is given, it will drop the last n
elements from
the collection. Note that the mechanism by which this is implemented
will delay the emission of any element until n
additional elements have
been emitted by the enum.
Examples
iex> stream = Stream.drop(1..10, 5)
iex> Enum.to_list(stream)
[6, 7, 8, 9, 10]
iex> stream = Stream.drop(1..10, -5)
iex> Enum.to_list(stream)
[1, 2, 3, 4, 5]