reverse


reverse(xs)
      

Return a new list containing the elements of the list xs in reverse order. Raise an error if xs is not a valid list.

Examples:


reverse([])
// []
reverse([1, 2, 3])
// [3, 2, 1]
      

Also see:

list


Core Module Index | Contents