[plt-scheme] plt-match: Matching with last element
Hi all,
Having some issues with plt-match which doesn't seem to be matching
the following:
(define test
(match-lambda
[(list 'hello pat ... (list 'bye name))
(display pat)
(newline)
(display name)]
[_ (error 'syntax "Some wierd problem.")]))
This is strange due to the fact that it is not matching the last list
when I do for example:
(test '(hello "Paulo" (bye "Paulo")))
It should also work with
(test '(hello "Paulo" "Joana" (bye "Paulo")))
but it seems there's some issue here.
Not very used to work with plt-match so any ideas on this issue would
be extremelly welcome.
Cheers,
--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group