def _get_fragments_coord(frags):
 if (not frags):
  return []
 init = [0]
 return reduce((lambda acc, frag: (acc + [(acc[(-1)] + len(frag))])), frags[:(-1)], init)

def _get_fragments_coord ( frags ) : if ( not frags ) : return [ ] init = [ 0 ] return reduce ( ( lambda acc , frag : ( acc + [ ( acc [ ( - 1 ) ] + len ( frag ) ) ] ) ) , frags [ : ( - 1 ) ] , init )
returns the letter coordinate of the given list of fragments .