From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60493 invoked by alias); 28 Dec 2017 03:57:39 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 60484 invoked by uid 89); 28 Dec 2017 03:57:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:U*kawa X-HELO: mail-io0-f179.google.com Received: from mail-io0-f179.google.com (HELO mail-io0-f179.google.com) (209.85.223.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Dec 2017 03:57:36 +0000 Received: by mail-io0-f179.google.com with SMTP id f6so813304ioh.8 for ; Wed, 27 Dec 2017 19:57:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KCda1mCkLTP/DMOtFUF5pbVe82+QOajXBP6X3GZQVRg=; b=Hmv7GNhz1kEuvHytvoozuFPyumrlppP1Tfa9DfAnKdSZKvyqxIJU31879gr0MD7LYH Cxyyoauxa60HjIQ9q4l3CkWjn87n5Irhn3ESwLasCLXRtd4C91ntI6quxep+EKazhH42 JLE+1MWPG8iHVylqoB53EUVVDGyimaiRnNmOJ53BJOqldVbR5Qu8CXl/4kX7N5WHaoh6 Ks5XWheS4hzqDLsjNu/ad0Ps7RaoiXYHt+/uLRjkad26G1IubePW2lbQLoHYQqLDX3/3 cWpCyR3GAlB/nPwFP5QuO+htB3BcjpK++H9GjnNMCwnSffaRdpqQk950dSjZgiialgmH k8Uw== X-Gm-Message-State: AKGB3mJEgpgZoovXqSSlDo/1SVp0esBBP+efRM1yVWONjB7vQBHghK9Q jQMgODdTMHnvyS5DF8eRwZDJ2mNdVFvQKF7vnYu6aQ== X-Google-Smtp-Source: ACJfBovYzW9haIVYWL5Aq2MDnwjE1mFvInCu4YPOE1C2jn16pMBaRCSH5LaxbSwAFSlVXtSBpuV4FjmoSWeyamfqiro= X-Received: by 10.107.204.1 with SMTP id c1mr17490800iog.167.1514433454736; Wed, 27 Dec 2017 19:57:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.83.129 with HTTP; Wed, 27 Dec 2017 19:56:54 -0800 (PST) In-Reply-To: <4ca9626b-1352-f192-ec10-5f77f6aa1017@bothner.com> References: <4ca9626b-1352-f192-ec10-5f77f6aa1017@bothner.com> From: Duncan Mak Date: Thu, 28 Dec 2017 03:57:00 -0000 Message-ID: Subject: Re: Using APPLY with functions with #!key arguments To: Per Bothner Cc: kawa mailing list Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-q4/txt/msg00048.txt.bz2 Thanks Per! That worked! On Wed, Dec 27, 2017 at 9:48 PM, Per Bothner 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.