public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Duncan Mak <duncanmak@gmail.com>
To: Per Bothner <per@bothner.com>
Cc: kawa mailing list <kawa@sourceware.org>
Subject: Re: Using APPLY with functions with #!key arguments
Date: Thu, 28 Dec 2017 03:57:00 -0000	[thread overview]
Message-ID: <CABgWrqosLewW7+HxtgVEWe0qyQGp_-MOZsgirqhYXO4nY2zcrQ@mail.gmail.com> (raw)
In-Reply-To: <4ca9626b-1352-f192-ec10-5f77f6aa1017@bothner.com>

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.

      reply	other threads:[~2017-12-28  3:57 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
2017-12-28  3:57   ` Duncan Mak [this message]

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=CABgWrqosLewW7+HxtgVEWe0qyQGp_-MOZsgirqhYXO4nY2zcrQ@mail.gmail.com \
    --to=duncanmak@gmail.com \
    --cc=kawa@sourceware.org \
    --cc=per@bothner.com \
    /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).