next up previous contents index
suivant: Remove an element in monter: Lists and vectors précédent: Extract a sub-list :   Table des matières   Index


Get the first element of a list : head

head takes as argument a list.
head returns the first element of this list.
Input :
head([0,1,2,3])
Output :
0
a:=head([0,1,2,3]) does the same thing than a:=[0,1,2,3][0]



giac documentation written by Renée De Graeve and Bernard Parisse