reverse

reverse given collection


Parameters

reverse collection :string :literal :block :range

Attributes

exactmake sure the reverse range contains the same elements

Returns

  • :string
  • :block
  • or  :nothing

Examples

copy
print reverse [1 2 3 4] ; 4 3 2 1 print reverse "Hello World" ; dlroW olleH

copy
str: "my string" reverse 'str print str ; gnirts ym

Related