On May 4, 8:05 am, Drew Raines <[email protected]> wrote:

> user> (let [test-str "foo=1;bar=2;baz=3"]
>         (reduce conj {}
>            (map #(apply hash-map (seq (.split % "=")))
>                (.split test-str ";"))))

Whoops, that (seq) is a debugging artifact.  You can remove that:

(let [test-str "foo=1;bar=2;baz=3"]
  (reduce conj {}
          (map #(apply hash-map (.split % "="))
               (.split test-str ";"))))

-Drew

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to