Skip to content

@lang:reverse

Reverse the order of an array's elements.

Returns: array

@lang:reverse(arr)
NameTypeDescription
arrarraySource array
  • @sort — sort by comparator

Reverse the word payload of the array return of a call on-chain through reverseWords. The result is a words payload (bytes), composable with the other array faces.

load lang
set $safe 0x44fA8E6f47987339850636F88629646662444217
assert @at!($safe::{getOwners()(address[])} -1) == @me
  • assert, @sort!, @map!