Arc Forumnew | comments | leaders | submitlogin
1 point by carpal 6127 days ago | link | parent

How else would you specify "the end of the string"? -1 seems natural for me. Anything else (0?) makes it kind of foggy.


5 points by nex3 6127 days ago | link

"End of string" is specified by not passing a fourth parameter:

  > (cut "abcde" 1)
  "bcde"
See http://arclanguage.org/item?id=2267.

-----

2 points by maxwell 6126 days ago | link

-0

-----