core.match - variable length match patterns

52 views
Skip to first unread message

David McNeil

unread,
May 18, 2012, 8:48:01 AM5/18/12
to clo...@googlegroups.com
From what I can see core.match does not support matching a variable length series of values. For example, in a vector, match a series of 0-to-N values of "1" followed by a value of "2". I am interested to know whether/how match patterns like this would fit into core.match.

Thank you.
-David McNeil

David Nolen

unread,
May 18, 2012, 10:59:40 AM5/18/12
to clo...@googlegroups.com
It sounds like you're describing searching for a pattern?


-David McNeil

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

David McNeil

unread,
May 18, 2012, 11:03:24 AM5/18/12
to clo...@googlegroups.com
On Friday, May 18, 2012 9:59:40 AM UTC-5, David Nolen wrote:
It sounds like you're describing searching for a pattern?

Yes, I think that sounds right. I am not sure how that fits into the core.match picture.

Thanks.
-David McNeil

David Nolen

unread,
May 18, 2012, 11:06:23 AM5/18/12
to clo...@googlegroups.com
Probably out of scope. But this is easy to do w/ core.logic.

--
Reply all
Reply to author
Forward
0 new messages