On Fri, Jun 15, 2012 at 7:30 AM, Baishampayan Ghose <b.gh...@gmail.com> wrote: > This is how it should be done, really - > > (defn get-events-hlpr > "Retrieves events from MongoDB." > [] > (vec (map #(dissoc :_id %) (mc/find-maps "events")))) ;; remove the :_id as > well
Or in Clojure 1.4.0 and later: (defn get-events-hlpr "Retrieves events from MongoDB." [] (mapv #(dissoc :_id %) (mc/find-maps "events"))) ;; remove the :_id as well mapv, filterv and reduce-kv are new in 1.4.0. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en