Previous Up Next

6.3.14  Reversing order in a list

The revlist command reverses the elements of a list or sequence.

Examples

revlist([0,1,2,3,4])
     
⎡
⎣
4,3,2,1,0⎤
⎦
          
revlist([0,1,2,3,4],3)
     
3,⎡
⎣
0,1,2,3,4⎤
⎦
          

Previous Up Next