next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: reverse

reverse -- reverse a list or sequence

Synopsis

Description

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

See also

Ways to use reverse :