On Jun 2, 7:55 am, Andrew Wagner <wagner.and...@gmail.com> wrote:
> > You can use destructuring in your predicate's arg list:
>
>  Not to hijack the thread but...is there some reason clojure doesn't just
> just call this pattern-matching? Is it different somehow?

Pattern matching matches not only structure but also values.

For example
 foo 5 = 0
 foo 7 = 1
 foo x = x * 2


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