Trying to understand this lambda expression in scheme -
can please expression:
((lambda (a b) (* ***(b a)*** a)) 5 (lambda (c) (+ c (* 2 c))))
now understand expression = 75 , understand first lambda takes arguments , b = 5 , b = (lambda (c) (+ c (* 2 c))) = 15 part of expression don't understand part have put in bold , italics. in basic terms how expression read?
this snippet:
(b a)
expresses fact b
function, , it's being applied a
parameter. in particular, value of a
5
, , value of b
function:
(lambda (c) (+ c (* 2 c)))
so, replacing obtain:
(* (b a) a) (* ((lambda (c) (+ c (* 2 c))) 5) 5) (* (+ 5 (* 2 5)) 5) 75
Comments
Post a Comment