manipulating-lists/quickref.tex
author anand
Fri, 12 Nov 2010 01:00:49 +0530
changeset 493 62b93bfac3cd
parent 423 0f0f4993cffe
permissions -rw-r--r--
internal review not done for `getting started with symbolics`

Slicing \& Striding a list:\\
{\ex \lstinline|    A[start:stop:step]|} \lstinline|stop| excluded

Sorting a list:\\
{\ex \lstinline|    sorted(A)|} -- returns new list
{\ex \lstinline|    A.sort()|} -- in-place sort

Reversing a list:\\
{\ex \lstinline|    A[::-1]|} -- returns new list
{\ex \lstinline|    A.reverse()|} -- in-place reverse