1 minute, 32 seconds | Higher-order Functions - slide 24 : 34 |
Expression | Value |
(map li (list "one" "two" "three")) | ("<li>one</li>" "<li>two</li>" "<li>three</li>") |
(define li-mapper (map li)) | map: expects at least 2 arguments, given 1 |
(define li-mapper ((curry2 map) li)) (li-mapper (list "one" "two" "three")) | ("<li>one</li>" "<li>two</li>" "<li>three</li>") |