[racket] Cube

From: Ashley Fowler (afowler2 at broncos.uncfsu.edu)
Date: Thu Sep 13 13:22:09 EDT 2012

I have to write a procedure (cube-two X Y) that takes two numeric arguments
and returns a list of their cubes.



So far I have...



(define cube(lambda(x)(* x x x)))...which takes ONE numeric arguments...example below...



(cube 3) ==> ( 27)



How could I make it to take two numeric arguments?



For instance...



(cube-two 1 4)  ==> (1  64)
(cube-two 2 5)  ==> (8  125)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120913/4b64ec97/attachment.html>

Posted on the users mailing list.