Stream

take_every/2

take_every(enumerable, count)

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.