next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: take(BasicList,ZZ)

take(BasicList,ZZ) -- take some elements from a list

Synopsis

Description

i1 : take({a,b,c,d,e,f},3)

o1 = {a, b, c}

o1 : List
i2 : take({a,b,c,d,e,f},-2)

o2 = {e, f}

o2 : List