next up previous contents index
Next: append! Up: ListType Previous: ListType   Contents   Index

$+$


Usage

l $+$ n


Signature

$+$: (%, MachineInteger) $\to$ %


Parameter Type Description
l % a list
n MachineInteger an index


Returns

$l$+$n$ returns the sublist of $l$ starting at the ${(n+1)}^{{\rm st}}$ element of $l$, i.e.$l + 0$ returns $l$, $l + 1$ returns the subslist starting at the second element of $l$, etc.... No copy of $l$ is made.


Example

If $l$ is the list of MachineInteger $[1,2,3,4,5]$, then $l + 2$ is the list $[3,4,5]$.



Manuel Bronstein 2004-06-28