4.0.0 • Published 7 years ago
starry.reverse v4.0.0
Member of the starry suite—modular functions for iterable objects.
Status
Applies to the whole suite.
Usage
function reverse<T>(
iterable: Iterable<T>
): Iterable<T>
Iterates through the elements of an iterable in reverse order.
Unlike Array.prototype.reverse
, this does not mutate the input argument.
Parameters:
- iterable:
Iterable<T>
Returns: Iterable<T>