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

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: