2 ms·
> You and lispm seem to agree that lambdas can be used to delay evaluation, e.g. `(lambda () (+ 1 2))` Right, and this is not different from any other function
by lispm 8y ago
> You and lispm seem to agree that lambdas can be used to delay evaluation, e.g. `(lambda () (+ 1 2))`
Right, and this is not different from any other function:
(define (foo) (+ 1 2))
(define bar (list foo (lambda () (+ 1 2)))) ; putting two functions in a list for later evaluation
((first bar))
((second bar))
> They are also used to abstract/parameterise, e.g. `(lambda (x) (* x x))`.
yep.