SetUnion.__contains__

SetUnion.__contains__(self, other)[source]

Return other in self.

Returns
containsbool

True if other is a member of any subset, False otherwise.

Examples

>>> reals, complexnrs = odl.RealNumbers(), odl.ComplexNumbers()
>>> union = odl.SetUnion(reals, complexnrs)
>>> 2 + 1j in union
True
>>> [1, 2] in union
False