select-keys makes it easy to extract a portion of a map:
(select-keys {:id 1 :ts 2 :ignore 3} [:id :ts])
=> {:ts 2, :id 1}
--
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 f
Hi,
I'm just beginning with clojure.
;(let [conn (mg/connect)
; db (mg/get-db conn "throughput")
; coll "clojure_throughput_src"]
;;; with a query, as Clojure maps
; ( doseq [item (mc/find-maps db coll {})]
;(println
; (get_timeslot
;(get_dt
; ( get item :ts))