> Hi Baishampayan,
>
>> (defn get-events-hlpr []
>>   "Retrieves events from MongoDB."
>>   (vec (mc/find-maps "events")))
>
> Is that Emacs Lisp or Common Lisp?
>
> Bye,
> Tassilo
>
> Just nitpicking that you adapted the OP's error of adding the docstring
> after the parameter vector. ;-)

You are right, Tassilo, I just copied the original code to a scratch
buffer and edited it without looking at the doc-string.

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

Regards,
BG

-- 
Baishampayan Ghose
b.ghose at gmail.com

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