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