def collapse(self):
if self.cardinality:<EOL><INDENT>r = None<EOL>for si in self._si_set:<EOL><INDENT>r = r._union(si) if r is not None else si<EOL><DEDENT>return r<EOL><DEDENT>else:<EOL><INDENT>return StridedInterval.empty(self._bits)<EOL><DEDENT>
Collapse into a StridedInterval instance.

:return: A new StridedInterval instance.