next up previous contents index
suivant: Reverse a list starting monter: Lists and vectors précédent: Remove the first element   Table des matières   Index


Reverse order in a list : revlist

revlist takes as argument a list (resp sequence).
revlist returns the list (resp sequence) in the reverse order.
Input :
revlist([0,1,2,3,4])
Output :
[4,3,2,1,0]
Input :
revlist([0,1,2,3,4],3)
Output :
3,[0,1,2,3,4]



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