Clojure provides only destructuring, not pattern matching. (It's my
impression that Rich is not a fan of mixing destructuring with control
flow implied by pattern matching.)
If you want pattern matching, matchure seems like just what you need.
For your particular example, take a look at matchure's defn-match.
https://github.com/dcolthorp/matchure
// Ben
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
With best wishes, Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott
Thanks, I'd forgotten about core.match.
// ben