Arc Forumnew | comments | leaders | submitlogin
1 point by carpal 5909 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 5909 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 5908 days ago | link

-0

-----