> (defn slice [coll & keys]
>  (remove nil? (map #(get coll %) keys)))

this doesn't handle nils, here is a better definition

(defn slice [coll & keys]
  (let [not-found (Object.)]
    (remove #(identical? % not-found) (map #(get coll % not-found) keys))))

--
jan

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