Consumes an input sync iterable and optionally applies a mapping function to each element.
Returns an array containing the results of the mapping function.
Returns
A function that accepts an input sync iterable and returns an array containing the results.
Consumes an input sync iterable and optionally applies a mapping function to each element. Returns an array containing the results of the mapping function.
Returns
A function that accepts an input sync iterable and returns an array containing the results.
Example
Remarks
Available as
consume
when imported frompeter-piper/sync
.