Arc Forumnew | comments | leaders | submitlogin
2 points by mst 5937 days ago | link | parent

It also strikes me that it'd be nice to be able to do N indices -

  > ("foobar" (list 1 3 -2))
  ("f" "o" "a")
(I probably meant characters there rather than one-char strings, but you get the point ...)


4 points by vsingh 5937 days ago | link

The negative index syntax doesn't work yet, but for the rest of your example:

    (map "foobar" (list 0 2 4))
    (#\f #\o #\a)

-----