Type each of the following into Scheme, and note the results. See if you can predict the results before letting Scheme do the computation
(lambda (x) (+ x 3)) ((lambda (x) (+ x 3)) 7)
You can think of lambda as meaning "the function of...," e.g., "the function of x that returns (+ x 3)."
(define (make-adder num) (lambda (x) (+ x num))) ((make-adder 3) 7) (define plus3 (make-adder 3)) (plus3 7) (define (square x) (* x x)) (square 5) (define sq (lambda (x) (* x x))) (sq 5) (define (try f) (f 3 5)) (try +) (try word)