Arc Forumnew | comments | leaders | submitlogin
2 points by nex3 6132 days ago | link | parent

Ruby does it the other way:

  > "hello"[-3..-1]
  "llo"
However, given that we can do something like

  > (subseq "hello" -4)
  "ello"
if we want to take the last n characters, doing zero-based reverse indexing might make more sense.