1 minute, 54 seconds
Higher-order Functions
- slide 5 : 34
Generation of list selectors
It is attractive to
generate
generalizations of the list selector functions
car
,
cadr
, etc
(define (make-selector-function n)
(lambda (lst) (list-ref lst (- n 1)))
)
The existing LAML make-selector-function.
Example usages of the function make-selector-function.