[racket] Cube two numbers
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?
For instance
>(cube-two 3 4)
(27 64)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120914/80688ffa/attachment-0001.html>