Is there a data structure matching operator for Gambit? Something that I could feed a pattern like (list 'a c d) to and would match lists like (a (foo) onion), binding c to (foo) ad d to onion?
I found a link to one such http://synthcode.com/scheme/match.scm in an old gambit mailing list message, but that site seems to be gone now.
-- hendrik
Afficher les réponses par date
Fortunately that URL was crawled by the Web Archive... http://web.archive.org/web/20120501000000*/http://synthcode.com/scheme/match... On Oct 9, 2014 6:53 PM, "Hendrik Boom" hendrik@topoi.pooq.com wrote:
Is there a data structure matching operator for Gambit? Something that I could feed a pattern like (list 'a c d) to and would match lists like (a (foo) onion), binding c to (foo) ad d to onion?
I found a link to one such http://synthcode.com/scheme/match.scm in an old gambit mailing list message, but that site seems to be gone now.
-- hendrik
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Termite has a match module with it too, https://code.google.com/p/termite/source/browse/#svn%2Ftrunk .
2014-10-10 3:38 GMT+02:00 Hendrik Boom hendrik@topoi.pooq.com:
Is there a data structure matching operator for Gambit? Something that I could feed a pattern like (list 'a c d) to and would match lists like (a (foo) onion), binding c to (foo) ad d to onion?
I found a link to one such http://synthcode.com/scheme/match.scm in an old gambit mailing list message, but that site seems to be gone now.
-- hendrik
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list