Re: [Scheme-reports] Pattern matching and list comprehensions Panicz Maciej Godek (17 Mar 2014 21:39 UTC)

Re: [Scheme-reports] Pattern matching and list comprehensions Panicz Maciej Godek 17 Mar 2014 21:35 UTC

2014-03-17 21:44 GMT+01:00 Denis Trapeznikoff <denin@mail.ru>:
> Greetings, list. I don't know whether this is the right list or not, but I
> could not find a better place.
> Scheme language lacks such features as pattern matching (if we don't speak
> of syntax definitions) or list comprehensions. As far as I could see
> occasionally such notions arise in talks, and implementations happen, but
> they are not in SRFI list or something.

There are at least two popular and very powerful pattern matchers
available for Scheme -- one by Alex Shinn, and another by Kent Dybvig.
The former can be found at http://synthcode.com/ (with documentation
available e.g. from
https://www.gnu.org/software/guile/manual/html_node/Pattern-Matching.html
or elsewhere), while the second is documented here (and has an
interesting "catamorphism" feature):
http://www.cs.indiana.edu/chezscheme/match/
A similar pattern matcher is also shipped with Racket.

The eager list comprehensions were standardized in the SRFI-42
document which can be found here:
http://srfi.schemers.org/srfi-42/srfi-42.html

Best regards,
M.

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports