Alex said:
Google brings me more horrible news.
Java doesn't support array slices like python.
Neither does C. I don't know about C++, but I'd guess from its heritage
that it doesn't either. Nor did Fortran 77 and earlier, although
Fortran 90 and later have very powerful array manipulation features,
including slicing (that may or may not be "like [P]ython['s]"). Array
slicing is by no means a must-have feature in any language I've ever
known about or used.
Java is a different language than Python. Different languages have
different features. Sometimes that means that different languages imply
or benefit from different idioms for similar tasks. It is a serious
mistake to depend too heavily on "this is how it's done in language <X>"
when writing in language <Y>.
John Bollinger
(e-mail address removed)