FiniteSet.__contains__

FiniteSet.__contains__(self, other)[source]

Return other in self.

Returns
containsbool

True if other is an element in elements, False otherwise.

Examples

>>> set = odl.FiniteSet(1, 'string')
>>> 1 in set
True
>>> 2 in set
False
>>> 'string' in set
True