# last -- last element of a list

## Synopsis

• Usage:
last L
• Inputs:
• L, a list or sequence
• Outputs:
• l, the last element of L

## 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]

• first -- first element of a list
• take -- Take some elements from a list or sequence.
• select -- select from a list, hash table, or string
• position -- the first element of a list satisfying a condition
• lists and sequences -- a detailed overview of lists and sequences in Macaulay2

## For the programmer

The object last is .