next | previous | forward | backward | up | top | index | toc | home
Macaulay2 > The Macaulay2 language > lists and sequences > select(ZZ,BasicList,Function)

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