Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
seqs are not mutable
(require '[clojure.string :as str])
(def data "Bob,Dobbs,,25.00
Rocket J.,Squirrel,,0.00
(def lines (str/split data #"\n"))
(def registrants (map #(zipmap [:first :last :email :payment]
(str/split % #",")) lines))
(doseq [r registrants] (println r))
(doseq [r registrants] (println r))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment