Why not just (filter (complement :dh-uuid) seq-of-maps)? Or (remove :dh-uuid seq-of-maps) even?
On Sat, May 25, 2013 at 7:41 AM, sdegutis <sbdegu...@gmail.com> wrote: > (def some-list > [{:a2p-id "1", :dh-uuid "abc-def-ghi-klm"} > {:a2p-id "2", :dh-uuid "def-ghi-klm-opq"} > {:a2p-id "3", :dh-uuid nil}]) > > If you want to filter out only nil: (filter (comp (complement nil?) > :dh-uuid) some-list) > If you want to filter out nil or false: (filter (comp identity :dh-uuid) > some-list) > > -Steven > > On Saturday, May 25, 2013 6:21:22 AM UTC-5, Mond Ray wrote: >> >> I am missing something obvious... I get a list of maps back from a >> function and I want to find the elements with nil >> >> (({:a2p-id "1", :dh-uuid "abc-def-ghi-klm"} {:a2p-id "2", :dh-uuid >> "def-ghi-klm-opq"} {:a2p-id "3", :dh-uuid nil}) ({:a2p-id "1", :dh-uuid >> "abc-def-ghi-klm"} {:a2p-id "2", :dh-uuid "def-ghi-klm-opq"} {:a2p-id "3", >> :dh-uuid nil})) >> >> I try the select function but it has no effect ... same list >> >> (set/select #(not (:dh-uuid %)) (map find-records query-parts)) >> >> also tried the previously working example... same list >> >> (filter #(not (:dh-uuid %)) (map find-records query-parts)) >> >> I am assuming that I am not indexing into each of the maps but I cannot >> remember or find out how to do this ... all examples only show one map >> >> Thanks >> >> Ray >> > -- > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.