Higher-order Functions - slide 19 : 34 |
Expression | Value |
(zip cons '(1 2 3) '(a b c)) | ((1 . a) (2 . b) (3 . c)) |
(apply string-append (zip string-append '("Rip" "Rap" "Rup") '(", " ", and " ""))) | "Rip, Rap, and Rup" |
(string-merge '("Rip" "Rap" "Rup") '(", " ", and ")) | "Rip, Rap, and Rup" |