changeset 522 | d33698326409 |
parent 521 | 88a01948450d |
child 523 | 54bdda4aefa5 |
--- a/manipulating-lists/quickref.tex Wed Nov 17 23:24:57 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -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