Stream.drop_every/2
defmodule Stream do
def drop_every(stream, nth)
end
Creates a stream that drops every nth
element from the enumerable.
The first element is always dropped, unless nth
is 0.
nth
must be a non-negative integer.
defmodule Stream do
def drop_every(stream, nth)
end
Creates a stream that drops every nth
element from the enumerable.
The first element is always dropped, unless nth
is 0.
nth
must be a non-negative integer.