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.
xs
reverse([]) // [] reverse([1, 2, 3]) // [3, 2, 1]
Core Module Index | Contents