From: praimon (praimon at gmail.com) Date: Sat May 10 18:52:57 EDT 2008 |
|
hello, in 3.99.0.24, using scheme/match: (map (lambda (x) (match x ((list x ... y z ..1 y) (append x z)))) '((1 2 3 4 3) (1 2 3 4 3 4) (1 2 3 4 3 3))) => ((1 2 4) (1 2 3 3) (1 2 3 3)) I understand the first two matches, but shouldn't the last result be (1 2 4 3)? This produces my expected answer: (match '(1 2 3 4 3 3) ((list x ... y z ..2 y) (append x z))) => (1 2 4 3) but in this context, aren't ..1 and ..2 equivalent? thanks, praimon
Posted on the users mailing list. |
|