Stop show with sound -- Keyboard shortcut: 'x'  Next slide in show -- Keyboard shortcut: 'n'  2 minutes, 38 secondsHigher-order Functions - slide 10 : 34

Examples of mapping
Expresion

Value

(map 
  string?
  (list 1 'en "en" 2 'to "to"))
(#f #f #t #f #f #t)
(map 
   (lambda (x) (* 2 x))
   (list 10 20 30 40))
(20 40 60 80)
(ul
  (map 
   (compose li 
    (compose b 
     (lambda (x)
      (font-color red x))))
   (list "a" "b" "c")
  )
)
  • a
  • b
  • c
Same as above
<ul>
  <li>
   <b><font color = "#ff0000">a</font></b>
  </li>
  <li>
   <b><font color = "#ff0000">b</font></b>
  </li>
   <li>
    <b><font color = "#ff0000">c</font></b>
  </li>
</ul>