[racket] Cube two numbers

From: Grant Rettke (grettke at acm.org)
Date: Fri Sep 14 21:45:35 EDT 2012

On Fri, Sep 14, 2012 at 6:26 PM, Ashley Fowler
<afowler2 at broncos.uncfsu.edu> wrote:
> How would I make it so it will execute both numbers?
>>(cube-two 3 4)

Ashley play around with it in the REPL first just to see how it works eg:

> (* 3 3 3)
27
> ((λ (x) (* x x x)) 3)
27
> (list 27)
'(27)
> (list 27 59)
'(27 59)

Then write the function.


Posted on the users mailing list.