My recent Clojure vs C++ experience

Sweet!
you just made the code work 3x faster. Thanks very much. Down to 100 ms now.

I did remember that map can take two values, but I mis-remembered and was thinking that it worked like the bindings in the for statement, somehow. Thanks for reminding me. But I had totally forgotten about when.