From: Hans Aberg <haberg-1@telia.com>
To: dskr@mac.com
Cc: guile-user@gnu.org
Subject: Re: Backquote simplification
Date: Thu, 9 Dec 2010 20:44:12 +0100 [thread overview]
Message-ID: <EB561E9A-D8F6-4B90-B28B-21A66F3F0775@telia.com> (raw)
In-Reply-To: <CCCBC725-4AE9-4585-B18D-7DF6650D5880@mac.com>
[Your reply does not seem to be on the list, so I cc it.]
Thanks. I might try an iterated cons, that is a function f such such
that
(f x1 ... xk y) --> (cons x1 ... (cons xk y) ...))
Then
(lambda (x1 ... xk . y) (f x1 ... xk y))
should just return at least k arguments as a list.
I'm not sure right now how to write it, so thankful for help.
On 9 Dec 2010, at 18:44, dskr@mac.com wrote:
> Hi,
>
> You need not use quoting at all in these cases.
>
> ( 1 2 . ( 3 4 ) ) is exactly equivalent to ( 1 2 3 4 ) and ( 1 .
> ( 2 . ( 3 . ( 4 ) ) ) )
>
> (b ( cons x y ))
> or
> (apply b x y)
>
> I cannot quite tell fom your example.
>
> Cheers,
> Dan
next prev parent reply other threads:[~2010-12-09 19:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-09 11:00 Backquote simplification Hans Aberg
[not found] ` <CCCBC725-4AE9-4585-B18D-7DF6650D5880@mac.com>
2010-12-09 19:44 ` Hans Aberg [this message]
2010-12-10 23:12 ` Neil Jerram
2010-12-11 0:03 ` Hans Aberg
2010-12-11 0:25 ` Neil Jerram
2010-12-11 8:33 ` Hans Aberg
2010-12-11 10:01 ` Neil Jerram
2010-12-11 10:09 ` Hans Aberg
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EB561E9A-D8F6-4B90-B28B-21A66F3F0775@telia.com \
--to=haberg-1@telia.com \
--cc=dskr@mac.com \
--cc=guile-user@gnu.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).