parameters: (lines, start, end)
return_statement: return ''.join(rows), end
docstring: Join content from a range of lines between start and end
docstring_summary: Join content from a range of lines between start and end
docstring_tokens: Join content from a range of lines between start and end
function: def combine_range(lines, start, end):
      'Join content from a range of lines between start and end'
      (srow, scol), (erow, ecol) = start, end
      if srow == erow:
          return lines[srow-1][scol:ecol], end
      rows = [lines[srow-1][scol:]] + lines[srow: erow-1] + [lines[erow-1][:ecol]]
      return ''.join(rows), end
function_tokens: def combine_range ( lines , start , end ) : ( srow , scol ) , ( erow , ecol ) = start , end if srow == erow : return lines [ srow - 1 ] [ scol : ecol ] , end rows = [ lines [ srow - 1 ] [ scol : ] ] + lines [ srow : erow - 1 ] + [ lines [ erow - 1 ] [ : ecol ] ] return '' . join ( rows ) , end