Qian Xu wrote:
<snip>
IMO, it does not make any sense.
s[start..end]

  end - is neither the count of characters in the array slice,
           nor the end index of the slice.
        it is just the index after the real end character.

It might help to think of the indexes in a slice as numbering the boundaries between the array elements, rather than the elements themselves.

Stewart.

Reply via email to