Macaulay2
»
Documentation
Packages
»
Macaulay2Doc
::
Set #? Thing
next
|
previous
|
forward
|
backward
| up |
index
|
toc
Set #? Thing -- test set membership
Synopsis
Operator:
#?
Usage:
x#?e
Inputs:
x
e
Outputs:
a
Boolean value
, whether e is in the set x
Description
This is identical to
member(e,x)
.
i1 : x = set{1,2,3} o1 = set {1, 2, 3} o1 : Set
i2 : x#?2 o2 = true
i3 : member(2,x) o3 = true
See also
Set
-- the class of all sets
Ways to use this method:
Set #? Thing
-- test set membership