Arc Forumnew | comments | leaders | submitlogin
2 points by bOR_ 5914 days ago | link | parent

A possibility (although not immediately intuitive) is a - modifier in front of a list that reverses it :

  (-s i)  "i'th item of s from the end"

  (cut -s 0 x)  "the last x items of s"

  (cut -s j x)  "The items from position i to the end minus the last j items"
The only trouble being that you get your answer in reverse ;).