-
- Return a single sample subset of a set.
-
-Binary Operations
------------------
-
- .. py:method:: intersection(self)
-
- Return the intersection of two sets as a new set.
-
- .. py:method:: union(self)
-
- Return the union of two sets as a new set.
-
- .. py:method:: __and__(self, other)
-
- Return the union of two sets as a new set.
-
- .. py:method:: __or__(self, other)
-
- Return the intersection of two sets as a new set.
-
- .. py:method:: __add__(self, other)
-
- Return the sum of two sets.
+
+ Return a single sample subset of a domain.
+
+ The following methods implement binary operations on two domains.
+
+ .. py:method:: intersection(self, other)
+ self | other
+
+ Return a new domain with the elements that are common between *self* and *other*.
+
+ .. py:method:: union(self, other)
+ self & other
+
+ Return a new domain with all the elements from *self* and *other*.