From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: values->list elements Date: Tue, 13 Jun 2006 22:14:40 +0100 Message-ID: <87hd2osqpr.fsf@ossau.uklinux.net> References: <448E12B1.8070709@fastmail.fm> <448EF3EF.7010006@freemail.hu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150233319 8577 80.91.229.2 (13 Jun 2006 21:15:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Jun 2006 21:15:19 +0000 (UTC) Cc: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jun 13 23:15:17 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FqGE6-0008NN-D5 for guile-user@m.gmane.org; Tue, 13 Jun 2006 23:15:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqGE5-0003mo-PT for guile-user@m.gmane.org; Tue, 13 Jun 2006 17:15:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FqGE0-0003l0-Js for guile-user@gnu.org; Tue, 13 Jun 2006 17:15:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FqGDy-0003h1-LI for guile-user@gnu.org; Tue, 13 Jun 2006 17:14:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqGDy-0003gf-E7 for guile-user@gnu.org; Tue, 13 Jun 2006 17:14:58 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FqGMz-0003Az-W3 for guile-user@gnu.org; Tue, 13 Jun 2006 17:24:18 -0400 Original-Received: from laruns (host81-129-157-146.range81-129.btcentralplus.com [81.129.157.146]) by mail3.uklinux.net (Postfix) with ESMTP id 457C4409FF0; Tue, 13 Jun 2006 21:14:57 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id 89A0D6FDDB; Tue, 13 Jun 2006 22:14:40 +0100 (BST) Original-To: szgyg In-Reply-To: <448EF3EF.7010006@freemail.hu> (szgyg@freemail.hu's message of "Tue, 13 Jun 2006 19:20:47 +0200") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5359 Archived-At: szgyg writes: > (define-macro (values->list vs) > `(call-with-values (lambda () ,vs) list)) > > (apply + (values->list (values 1 2 3))) Yes, but why does this need to be a macro? (define (values->list vs) (call-with-values (lambda () vs) list)) > or > > (define-macro (make-cockeyed-function f) > `(lambda (vs) (apply ,f (values->list vs)))) Same here, I think. Regards, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user