Return an object for testing whether a variable equals any element of a collection.
Parameters : | values : scalar or tuple or list or set |
---|---|
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