Atom

collection.reverse()

Reverses the iteration order.

Signature

collection.reverse(iterable)

Parameters

Any iterable.

Returns

New array.

Behavior

Keeps references to its elements.

Errors

Noniterable input or invalid view.

Example

Atom
use collection
assert(collection.reverse(1..4)[0] == 3)