# first -- first element of a list

## Synopsis

• Usage:
first L
• Inputs:
• Outputs:
• f, , the first element of L

## Description

 i1 : first {a,b,c,d,e} o1 = a o1 : Symbol i2 : first gens(QQ[x,y,z]) o2 = x o2 : QQ[x..z]

## See also

• last -- last 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 first is .