chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] understanding eval


From: Daishi Kato
Subject: Re: [Chicken-users] understanding eval
Date: Fri, 22 Feb 2008 23:10:15 +0900
User-agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/21.4 Mule/5.0 (SAKAKI)

Ah, I see. Thanks a lot! --daishi

At Fri, 22 Feb 2008 14:08:25 +0100,
Peter Bex wrote:
> 
> 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




reply via email to

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