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

select(ZZ,Set,Function) -- select a part of a set

Synopsis

Description

i1 : x = set(1..10)

o1 = set {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}

o1 : Set
i2 : select(x, odd)

o2 = set {9, 1, 3, 5, 7}

o2 : Set
i3 : select(2, x, odd)

o3 = set {1, 3}

o3 : Set

Ways to use this method: