next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
home
drop(BasicList,ZZ)
Synopsis
Usage:
w = drop(v,n)
Function:
drop
Inputs:
v
,
a
basic list
n
,
an
integer
Outputs:
a
basic list
, the list obtained by omitting the first
n
elements of the list
v
if
n
is positive, or the last
-n
elements if
n
is negative.
Description
i1 : drop({a,b,c,d,e},2) o1 = {c, d, e} o1 : List
i2 : drop({a,b,c,d,e},-2) o2 = {a, b, c} o2 : List