I have an mail object that returns its headers as an Enumerator of Header objects, which have two methods, getName and getValue. I need to convert that to a nice Clojure map so I wrote this short function:(defn extract-headers [message]  (reduce (fn [hs h] (conj hs {(.getName h) (.getValue h)}))          {}          (enumeration-seq (.getAllHeaders message))))Anything to change or improve here?
From enumerator to map
clojure
You can use into, for example: (defn extract-headers [message]  (let [headers (enumeration-seq (.getAllHeaders message))]       (into {} (map #(vector (.getName %1) (.getValue %1)) headers))))first, with map you build sequence of 2-element vectors, that later is converted into map