Arc Forumnew | comments | leaders | submit | Qu4Z's commentslogin
3 points by Qu4Z 5098 days ago | link | parent | on: Negative indexes for strings

Thank you. That's pretty neat, and I'm sure it'll be useful.

However, I feel it is addressing a slightly different point from my post. I can easily write my own library function to do, eg

  (from-right '(1 2 3 4 5) 1)
I do feel the succinctness and power of the language would be enhanced by including the ability to instead call

  ('(1 2 3 4 5) -1)
Of course, other people may have a differing opinion.

Implementation is rather simple... you could essentially take all indexes mod the length of the collection. Although perhaps it just doesn't help that much outside of Project Euler :-)

-----

1 point by akkartik 5098 days ago | link

No our opinions are in accord.

-----


Excellent. I've recently started doing it too, as an exercise in learning arc. I must say I'm really enjoying the language so far.

My only gripe thus far: I do recall finding an interesting documentation page including threading functions, file IO, etc; this does not appear to be linked anywhere useful though. Was this an unofficial site? If it is official, perhaps it should be linked from arclanguage.com.

In any case, excellent language. Well done. Greatly enjoying. A+, would download again.

Edit: Found it at http://files.arcfn.com/doc/index.html and bookmarked it. It was a lot harder to find than I think it ought to be, but perhaps my google-fu is simply weak.

-----

1 point by evanrmurphy 5097 days ago | link

> It was a lot harder to find than I think it ought to be, but perhaps my google-fu is simply weak.

You're not alone. I lost that page many-a-time before I finally bookmarked it.

Re: your earlier thought, it is technically unofficial documentation. You may find Search Arc Forum [http://af.searchyc.com/] a useful tool for future Arc-related searches. (Although simply searching Google with "site:arclanguage.org <query>" works pretty well.)

I think you're new here... welcome to the forum! :)

-----

1 point by akkartik 5097 days ago | link

aw maintains a list of resources at the top of http://awwx.ws. That's probably the best place to catch up if you end up away from arc for a bit.

-----