Baking cookies - Calling functions
PreviewExercise 1.1 – baking a cake
Defining functions with defn
Exercise 1.2 – several `add-` functions
Conditional branching with cond
Exercise 1.4 – rewrite bake-cake
Two-branch conditionals with if and do
Exercise 1.7 – add-scooped and add-squeezed
Some convenience functions – bowl-for and add
Looping a fixed number of times – dotimes
Exercise 1.8 – add- functions
Exercise 1.9 – rewrite bake-cake
Accepting varying numbers of arguments – variadic functions
Exercise 1.10 – rewrite add to be variadic
Exercise 1.11 – rewrite bake-cake
Exercise 1.12 – rewrite bake-cookies