Stream.map_every/3
defmodule Stream do
def map_every(stream, nth, fun)
end
Creates a stream that will apply the given function on every nth
element from the enumerable.
The first element is always passed to the given function.
nth
must be a non-negative integer.