Return a comparison object for a variable for being equal to any member of a collection.
Parameters : | values : sequence
|
---|---|
Returns : |
|
Examples
>>> c = cf.set([3, 5])
>>> c
<CF Comparison: set [3, 5]>
>>> c == 4
False
>>> c == 5
True
>>> print c == numpy.array([2, 3, 4, 5])
[False True False True]