guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Backquote simplification


From: Hans Aberg
Subject: Re: Backquote simplification
Date: Thu, 9 Dec 2010 20:44:12 +0100

[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, address@hidden 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]