Arc Forumnew | comments | leaders | submitlogin
7 points by pg 6126 days ago | link | parent

I just replaced arc1.tar with a new version in which (cut "foobar" 1 -1) -> "ooba". Since that was the only change I just overwrote the old file.


4 points by nex3 6126 days ago | link

I've pushed this change to the official branch of the Anarki.

-----

2 points by duaneb 6126 days ago | link

...so that means that (cut "foobar" 0 0) is "foobar"? How does that make sense?

I think that the -1 ending the string makes more sense when you take the zero into account.

-----

5 points by nex3 6126 days ago | link

(cut "foobar" 0 0) is "", just like (cut "foobar" 1 1) and (cut "foobar" 42 42). 0 isn't a negative number.

-----

5 points by andreyf 6126 days ago | link

As pointed out above, (cut "foobar" 0 0) is "", and (cut "foobar" 1) is "oobar".

-----