Macaulay2 » Documentation
Packages » Macaulay2Doc :: select(ZZ,BasicList,Function)
next | previous | forward | backward | up | index | toc

select(ZZ,BasicList,Function) -- select a limited number of elements from a list

Synopsis

Description

The order of the elements in the result will be the same as in the original list v.
i1 : select(4,0..10,even)

o1 = (0, 2, 4, 6)

o1 : Sequence

See also

Ways to use this method: