Skip to main content


reverse — reverse a string or a stringlist


reverse { arg }


If the first argument to reverse is a string, the string will be reversed, so that abc becomes cba. If it is a stringlist, then the order of the elements in the string list will be reversed.

$string = reverse "hello";
ec_log "hello backwards is ${string}";
Was this page helpful?