Slide 6
Slide 6 text
Javier Gonzalez-Sanchez | CSE240 | Spring 2018 | 6
jgs
Function Making
§ (defun do-hello-world ( ) "Hello, World!")
DO-HELLO-WORLD
§ (do-hello-world)
"Hello, World!"
• (defun add-four (x) (+ x 4))
ADD-FOUR
• (add-four 7)
11
• (defun hypotenuse (length width)
(sqrt (+ (* length length)(* width width))))
HYPOTENUSE
• (hypotenuse 7 9)
11.4017