Re: SRFI 232: An advanced currying form
Dr. Arne Babenhauserheide 08 Jan 2022 17:12 UTC
"Arthur A. Gleckler" <xxxxxx@speechcode.com> writes:
> Scheme lacks a flexible way to create and apply curried procedures. This SRFI describes lambda*, a variant of lambda that creates true curried procedures which also behave just like ordinary Scheme procedures. They can be
> applied to their arguments one-by-one, all at once, or anywhere in between, without any novel syntax. lambda* also supports nullary and variadic procedures, and procedures created with it have predictable behavior when
> applied to surplus arguments.
The examples look really good!
However lambda* is already defined in Guile as a lambda, that can take
keyword arguments.
((lambda* (a b #:optional c #:key d)
(list a b c d)) 1 2 #:d 'd)
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
http://draketo.de