This piece of code returns immediately:
user=> (dorun (pmap + [1 2] [3 4]))
nil
However, when I run the same piece of code in main method using lein:
(ns practice.core)
(defn -main [& args]
(dorun (pmap + [1 2] [3 4])))
why does it never return?
Interestingly, if I replace pmap
by map
, it returns normally.