droit(l,n) ou right(l,n) renvoie les n derniers éléments
d’une liste l.
On tape :
droit([0,1,2,3,4,5,6,7,8],4)
Ou on tape :
right([0,1,2,3,4,5,6,7,8],4)
On obtient :
[5,6,7,8]
gauche(l,n) ou left(l,n) renvoie les n premiers éléments
d’une liste l.
On tape :
gauche([0,1,2,3,4,5,6,7,8],3)
Ou on tape :
left([0,1,2,3,4,5,6,7,8],3)
On obtient :
[0,1,2]