Thanks for the report, docstring updated. David
On Tue, May 27, 2014 at 5:16 PM, Dom Kiva-Meyer <li...@domkm.com> wrote: > The clojure.core.match/match docstring states that it takes "...a vector > of occurrences, vars. Clause question-answer syntax is like `cond`. > Questions must be wrapped in a vector..." > https://github.com/clojure/core.match/blob/5429e20f5db8c398d745f15f7a85f65976f45397/src/main/clojure/clojure/core/match.clj#L1966-1976 > > However, it seems to work without wrapping the occurrences and questions > in vectors. > > (match [{:a 1 :b 2}] [{:a 1 :b x}] x);;=> 2(match {:a 1 :b 2} {:a > 1 :b x} x);;=> 2 > > Is the docstring outdated or are there circumstances that necessitate > wrapping the occurrence/s and question/s in vectors? > > > > -- > 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/d/optout. > -- 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/d/optout.