(spans: Iterable[Tuple[int, int]])
return sum([end - start for start, end in _merge_spans(spans)])
Get the total lengths of possibly overlapping spans.
Get the total lengths of possibly overlapping spans.
Get the total lengths of possibly overlapping spans .
def _get_spans_total_length(spans: Iterable[Tuple[int, int]]) -> int:
  """Get the total lengths of possibly overlapping spans."""
  return sum([end - start for start, end in _merge_spans(spans)])
def _get_spans_total_length ( spans : Iterable [ Tuple [ int , int ] ] ) -> int : return sum ( [ end - start for start , end in _merge_spans ( spans ) ] )