Previous Up Next

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

Previous Up Next