chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] understanding eval


From: Peter Bex
Subject: Re: [Chicken-users] understanding eval
Date: Fri, 22 Feb 2008 14:08:25 +0100
User-agent: Mutt/1.4.2.3i

On Fri, Feb 22, 2008 at 09:57:42PM +0900, Daishi Kato wrote:
> OK, so that was stupid.
> 
> How about this?
> 
> (define a 'values)
> (define b '((1 2 3) #(4 5 6))
> 
> I'd like to evaluate (values '(1 2 3) '#(4 5 6))
> using eval, a and b.

More of the same:
(eval (cons a (map (cut list 'quote <>) b)))

HTH,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: pgpzjE9qe49A5.pgp
Description: PGP signature


reply via email to

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