self-test: expressions, values & names
parens mean application
((* 4 5))
(*4 5)
compound expressions
(+ (if (< 3 2) * 4) 7)
((if (< 3 2) + *) 4 5)
special & regular forms
(if (< 4 5) (+ 1 2) (5 5))
(define (f a b) a)
(f (+ 1 2) (5 5))
(if if)
naming
(define * 5)
(+ * 7)
(define 2 3)
Previous slide
Next slide
Back to first slide
View graphic version