Thanks for those equivalents, Sam! Informative.
That first `(map #...)` is particularly interesting. Looks like you're applying the item lookup operation across the list of indices. Neat.
Re:Ask HN: what's up with HN and Lisp?
by SamReidHughes on Thursday February 17, 2011 @06:39AM
(#2230595)
The first example could actually have been
(map a-list [3 1 4])
Here are the Clojure equivalents, omitting the act of assigning stuff to variables.
If you took the first example and assigned it to a variable other-list, it would typically be in a let expression, with a body.