Enum.take_every/2
defmodule Enum do
def take_every(enumerable, nth)
end
Returns a list of every nth
element in the enumerable
, starting with the first element.
The first element is always included, unless nth
is 0.
The second argument specifying every nth
element must be a non-negative integer.