Stream

map_every/3

map_every(enumerable, nth, fun)

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.