Using APPLY with functions with #!key arguments

Per Bothner per@bothner.com
Thu Dec 28 02:49:00 GMT 2017


On 12/27/2017 05:28 PM, Duncan Mak wrote:
> I think this used to work in older Kawa releases, but how do I use
> APPLY to invoke a function like this in Kawa 3.0?
> 
> #|kawa:1|# (define (foo x #!key y) (list x y))

You can do this:

(apply foo (arglist 1 y: 2))

which is the same as:

(foo @:(arglist 1 y: 2))

This chapter in the manual should be helpful:
https://www.gnu.org/software/kawa/Application-and-Arguments-Lists.html

-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Kawa mailing list