take(L, i)
take(L, {j,k})
take(x, i)
|
|
|
|
The pair $\{j,k\}$ must be given with both entries non-negative, and $j\le k$. Otherwise an empty list is returned.
|
|
If x is any object belonging to a class with the iterator method installed, then a list containing the first $i$ (or the $(j+1)$th through $(k+1)$th) objects returned when next is called on the output of iterator x
is returned. If fewer than $i$ (or $k+1$) objects are returned before the StopIteration symbol is encountered, then the list will have shorter than expected length.
|
|
|
The object take is a compiled function.