Returns a generator that yields at most the first n elements from the input iterable.
n
The type of elements in the iterable
Maximum number of elements to take
A generator function that yields the first n elements
When n is not a safe integer
G.pipe( [1, 2, 3, 4, 5], G.take(3), G.array) // [1, 2, 3] Copy
G.pipe( [1, 2, 3, 4, 5], G.take(3), G.array) // [1, 2, 3]
Returns a generator that yields at most the first
nelements from the input iterable.