Return an object for testing whether a variable equals any element of a collection.
Parameters : | values : scalar or sequence
|
---|---|
Returns : |
|
Examples
>>> c = cf.set([3, 5])
>>> c
<CF Comparison: set [3, 5]>
>>> 4 == c
False
>>> 5 == c
True
>>> c = cf.set(4)
>>> c
<CF Comparison: set (4,)>
>>> 4 == c
True