next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: select(ZZ,Function)

select(ZZ,Function) -- select integers

Synopsis

Description

i1 : select(20, odd)

o1 = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19}

o1 : List
i2 : select(20, even)

o2 = {0, 2, 4, 6, 8, 10, 12, 14, 16, 18}

o2 : List

See also

Ways to use this method: