Hi, Alex!
Are the new matchable extensions documented in the wiki? if not,
could you update it?
cheers,
felix
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users
On Sat, Jan 29, 2011 at 11:23:54AM +0900, Alex Shinn wrote:
So by deliberately limiting match we force people
to write faster code. At the same time, it's more
verbose code - if you really want a match as powerful
as prolog you could implement it and deal with the
fact that it can be very
On Sun, Jan 30, 2011 at 12:09 PM, Alan Post alanp...@sunflowerriver.org wrote:
Alex, will you explain what I'd doing wrong here using
tree searching patterns?
(pretty-print (map
(match-lambda
(('foo *** '(bar 1)) #t)
(_ #f))
'((foo (bar 1))
(foo (a (bar 1)))
(foo (a (b
On Sun, Jan 30, 2011 at 12:28:00PM +0900, Alex Shinn wrote:
On Sun, Jan 30, 2011 at 12:09 PM, Alan Post alanp...@sunflowerriver.org
wrote:
Alex, will you explain what I'd doing wrong here using
tree searching patterns?
(pretty-print (map
(match-lambda
(('foo *** '(bar 1)) #t)
On Sun, Jan 30, 2011 at 1:33 PM, Alan Post alanp...@sunflowerriver.org wrote:
Wonderful! This is working for the test cases I sent, but it
doesn't seem to work when I have a list where the first element
is also a list:
(pretty-print (map
(match-lambda
(('foo (_ *** '(bar 1))) #t)
On Sun, Jan 30, 2011 at 1:40 PM, Alex Shinn alexsh...@gmail.com wrote:
Because it searches for patterns where the head of the tree
at each step along the path matches _, and the leaf matches
'(bar 1). The head is not searched as a potential leaf.
Sorry, whether the head is checked as a leaf
On Fri, Jan 28, 2011 at 2:21 PM, Alan Post alanp...@sunflowerriver.org wrote:
I'm trying to use the matchable egg to detect #!key parameters in
functions I've constructed. I have functions that accept multiple
#!key parameters, and I'm not sure how to make the matchable egg
match |(func ...
I'm trying to use the matchable egg to detect #!key parameters in
functions I've constructed. I have functions that accept multiple
#!key parameters, and I'm not sure how to make the matchable egg
match |(func ... mykey: myvalue ...)|. That is, how to get the
matchable egg to match two