Previous Up Next

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


Previous Up Next