| I'm new to Arc (first day exploring) and so far I like it in many ways more than Racket (though Racket is better on docs, but maybe I'm wrong) So, I was thinking if you don't mind having a little syntax, why not to have one for list ranges? In many languages you have this syntax for arrays: a[7]
a[7:12]
Arc has: (a 4)
But what about: (a 7:12)
Or maybe even: ('(1 2 3) 1:) ;standing for (cdr '(1 2 3))
(('(a (b c d) f) 1) 1:2) ;for (cdadr '(a (b c d) f))
('(a (b c d) f) 1,1:2) ;same
Maybe I'm missing something in Arc that does that already, I didn't explore it yet. What do you think? |