2 Jui
2009
2 Jui
'09
17:12
2009/6/2 David Rush <kumoyuki@gmail.com>:
2009/6/2 lowly coder <lowlycoder@huoyanjinjing.com>:
Now, ideally I want to write:
(destructure-bind (cons (p3 x1 y1 z1) (p3 x2 y2 z2)) (make-point3 (+ x1 x2) (+ y1 y2) (+ z1 z2)))
I should add that if you really want generic pattern matching, that such packages do exist for Scheme, although I am not sure that there are any written in R[45]RS compatible dialects - they may all be implementation specific. Troll c.l.s on google or just ask about structural pattern matching... david -- GPG Public key at http://cyber-rush.org/drr/gpg-public-key.txt