Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » lists and sequences » last
next | previous | forward | backward | up | index | toc

last -- last element of a list

Description

i1 : last {a,b,c,d,e}

o1 = e

o1 : Symbol
i2 : last gens(QQ[x,y,z])

o2 = z

o2 : QQ[x..z]

See also

For the programmer

The object last is a function closure.


The source of this document is in Macaulay2Doc/functions/last-doc.m2:28:0.