The output list will be the same type as the input.
i1 : reverse {5, 7, 2, 8}
o1 = {8, 2, 7, 5}
o1 : List
|
i2 : reverse (5, 7, 2, 8) o2 = (8, 2, 7, 5) o2 : Sequence |
The object reverse is a compiled function.