[plt-scheme] Match - naming the result of pat ...

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Mon Feb 6 18:26:57 EST 2006

I have a feeling this have been asked before,
and that the answer had something to do with
(and ...), but ...

Consider:

 > (match '(1 2 3 a 4 5)
     [((? number?) ... . more)
      more])
(a 4 5)

How do I get to the part matched by (? number?) ... ?

-- 
Jens Axel Søgaard




Posted on the users mailing list.