Arc Forum
new
|
comments
|
leaders
|
submit
login
2 points
by
mst
6140 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
6139 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)
-----