Function Composition
You can compose functions in Scheme by embedding the list structures of function calls
E.g.,
(+ (+ 1 2) 3)
6
(* (+ 2 3) (+ 1 3))
15
(cons �a (cons �b ()))
(a b)
(append '(a b) (append '(c d) '(e f)))
(a b c d e f)
Previous slide
Next slide
Back to first slide
View graphic version