Using APPLY with functions with #!key arguments

Duncan Mak duncanmak@gmail.com
Thu Dec 28 03:57:00 GMT 2017


Thanks Per! That worked!

On Wed, Dec 27, 2017 at 9:48 PM, Per Bothner <per@bothner.com> wrote:
> 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/



-- 
Duncan.



More information about the Kawa mailing list