From: Duncan Mak <duncanmak@gmail.com>
To: kawa mailing list <kawa@sourceware.org>
Subject: Using APPLY with functions with #!key arguments
Date: Thu, 28 Dec 2017 01:29:00 -0000 [thread overview]
Message-ID: <CABgWrqq2YCMQEmQSzwoyDWsDM05GwVotBic8aaFrChG-RWFyRg@mail.gmail.com> (raw)
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))
#|kawa:2|# (foo 1 y: 2)
(1 2)
#|kawa:3|# (apply foo (list 1))
(1 #f)
#|kawa:4|# (apply foo (list 1 2))
gnu.mapping.WrongArguments
#|kawa:5|# (apply foo (list 1 y: 2))
gnu.mapping.WrongArguments
In Kawa 2.4, this worked:
duncan@furigana:~/Downloads/kawa-2.4/bin$ ./kawa
#|kawa:1|# (define (foo x #!key y) (list x y))
#|kawa:2|# (apply foo (list 1 y: 2))
(1 2)
#|kawa:3|# (apply foo (list 1 2))
(1 #f)
Happy holidays!
--
Duncan.
next reply other threads:[~2017-12-28 1:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-28 1:29 Duncan Mak [this message]
2017-12-28 2:49 ` Per Bothner
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=CABgWrqq2YCMQEmQSzwoyDWsDM05GwVotBic8aaFrChG-RWFyRg@mail.gmail.com \
--to=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).