[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
‘match’ and “k or more” patterns
From: |
Ludovic Courtès |
Subject: |
‘match’ and “k or more” patterns |
Date: |
Sun, 05 Sep 2010 17:04:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hello Alex,
GNU Guile 1.9 now uses your implementation of ‘match’ as a nice
replacement for Wright’s implementation, so thank you!
I stumbled upon this incompatibility: Wright’s ‘match’ supports ‘..1’,
‘..2’, etc., which mean “1 or more”, “2 or more”, etc., and the
associated variable (when there’s one) is bound to the list that
matches:
(match '(a 1 2) (('a x ..1) x))
=> (1 2)
AFAICS these patterns aren’t implemented in your ‘match’.
Do you have plans to implement them?
Thanks!
Ludo’.
pgpOC16Nynemh.pgp
Description: PGP signature
- ‘match’ and “k or more” patterns,
Ludovic Courtès <=
- Re: ‘match’ and “k or more” patterns, Alex Shinn, 2010/09/06
- Re: ‘match’ and “k or more” patterns, Ludovic Courtès, 2010/09/06
- Re: ‘match’ and “k or more” patterns, Alex Shinn, 2010/09/07
- Re: ‘match’ and “k or more” patterns, Ludovic Courtès, 2010/09/08
- Re: ‘match’ and “k or more” patterns, Andy Wingo, 2010/09/08
- Re: ‘match’ and “k or more” patterns, Ludovic Courtès, 2010/09/19
- Message not available
- Re: ‘match’ and “k or more” patterns, Ludovic Courtès, 2010/09/27
- Re: ‘match’ and “k or more” patterns, Alex Shinn, 2010/09/27
- Message not available
- Re: ‘match’ and “k or more” patterns, Ludovic Courtès, 2010/09/28