From: Per Bothner <per@bothner.com>
To: Duncan Mak <duncanmak@gmail.com>,
kawa mailing list <kawa@sourceware.org>
Subject: Re: Using APPLY with functions with #!key arguments
Date: Thu, 28 Dec 2017 02:49:00 -0000 [thread overview]
Message-ID: <4ca9626b-1352-f192-ec10-5f77f6aa1017@bothner.com> (raw)
In-Reply-To: <CABgWrqq2YCMQEmQSzwoyDWsDM05GwVotBic8aaFrChG-RWFyRg@mail.gmail.com>
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/
next prev parent reply other threads:[~2017-12-28 2:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-28 1:29 Duncan Mak
2017-12-28 2:49 ` Per Bothner [this message]
2017-12-28 3:57 ` Duncan Mak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ca9626b-1352-f192-ec10-5f77f6aa1017@bothner.com \
--to=per@bothner.com \
--cc=duncanmak@gmail.com \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).