Lecture overview -- Keyboard shortcut: 'u'  Previous page: Mapping -- Keyboard shortcut: 'p'  Next page: Examples of mapping -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Recursion and Higher-order Functions - slide 21 : 35

The mapping function

We show a simple implementation of map - called mymap

(define (mymap f lst)
  (if (null? lst)
      (cons (f (car lst))
            (mymap f (cdr lst)))))
Go to exercise
Iterative mapping function
Go to exercise
Table exercise: transposing, row elimination, and column elimination.