Thanks David, for the wonderful core.logic and core.match library. Sunil. On Mon, Oct 3, 2011 at 5:39 PM, David Nolen <dnolen.li...@gmail.com> wrote:
> It's a bug, thanks for the report, > http://dev.clojure.org/jira/browse/MATCH-23 > > David > > On Mon, Oct 3, 2011 at 6:27 AM, Sunil S Nandihalli < > sunil.nandiha...@gmail.com> wrote: > >> Hello everybody, >> I was playing with core.match library and I notice the following behavior >> >> let [x {:a 1 :b 2 :c 10 :d 30}] >> (match [x] >> [({:a _ :b _ :c _ :d _} :only [:a :b :c :d])] :a-1 >> [({:a _ :b 2} :only [:a :b])] :a0 >> [{:a 1 :c _}] :a1 >> [{:c 3 :d _ :e 4}] :a2 >> :else [])) >> >> returns >> :a1 >> I was hoping to get >> :a-1 >> >> Am I using it wrong? Have I misunderstood as to how match is supposed to >> work? It looks like match assumes either that there is always a unique match >> or it does not guarantee that it will the try matches in the order >> specified. Can somebody help? >> >> Thanks, >> Sunil. >> >> -- >> 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 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 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