HI All,

I am receiving a sequence from a particular function so I want to get that 
sequence and converted to a vector o I can return a vector instead.

(defn get-events-hlpr []
"Retrieves events from MongoDB."
(init)
(def items (mc/find-maps "events")) ;; get the sequence
(loop [vtr []
   data items]
(if (zero? (count data))
vtr
(recur
(conj vtr (dissoc (first data) :_id))(rest data)))))

Is the right way?

-- 
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

Reply via email to