Indiana still does. They use it in a second-order fashion to get
students going and latter they tell them that lambda is really a
stand-alone value. The belief is that this helps the transition.
Shriram convinced me that it was silly and he needed several
years. I switched and was so happy, I
On Fri, Sep 14, 2012 at 6:26 PM, Ashley Fowler
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
Slight tangent:
Can you please point out which curriculum you are using to learn from,
as it seems weird. It's almost as if you're making things hard for
yourself. Could it be that the curriculum's to blame? I've never
seen an intro programming class start off with using lambda when one
hasn't
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 l
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
5 matches
Mail list logo