The question is in the title. Below I copy the transducer-part of the source of map
:
([f]
(fn [rf]
(fn
([] (rf))
([result] (rf result))
([result input]
(rf result (f input)))
([result input & inputs] ;why?
(rf result (apply f input inputs))))))
Here is a link to the source of clojure.core
which contains the definition of map
.