On Sep 14, 2012, at 4:26 PM, Ashley Fowler wrote:

> I have to make this code called cube-two where it takes two numbers and cubes 
> the both of them .
> 
> This is what I have so far:
> 
> (define cube-two(lambda(X Y)(list'(* X X X)(* Y Y Y))
> 
> but the problem is, is that it only executes Y like the example below...
> 
> > (cube-two 3 4)
> ((* x x x) 64)
> 
> How would I make it so it will execute both numbers?

Short answer: don't use quote. 

Quote is an advanced "shorthand" tool; come back to it after you're more 
familiar with lists.

John Clements

Attachment: smime.p7s
Description: S/MIME cryptographic signature

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to