@classmethod<EOL><INDENT>def _concat_same_type(cls, to_concat):<DEDENT>
closed = {interval.closed for interval in to_concat}<EOL>if len(closed) != <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>closed = closed.pop()<EOL>left = np.concatenate([interval.left for interval in to_concat])<EOL>right = np.concatenate([interval.right for interval in to_concat])<EOL>return cls._simple_new(left, right, closed=closed, copy=False)<EOL>
Concatenate multiple IntervalArray

Parameters
----------
to_concat : sequence of IntervalArray

Returns
-------
IntervalArray