@lang:reverse
Reverse the order of an array's elements.
Returns: array
Syntax
Section titled “Syntax”@lang:reverse(arr)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
arr | array | Source array |
See Also
Section titled “See Also”- @sort — sort by comparator
On-chain face (@reverse!)
Section titled “On-chain face (@reverse!)”Reverse a typed array without changing its elements or their types. Both single-word and multiword elements are supported.