I'm trying to catch an exception that is thrown by a function passed to a map function but it isn't caught. I don't understand why.
Example:
(defn x [x]
(throw (Exception. "An exception")))
(try
(map x '(1 2 3))
(catch Exception e "caught exception"))