Baking cookies - Calling functions
Baking cookies - Calling functions
B01 Introduction to Clojure
Day 1: Syntax and REPL
Day 1: Syntax and REPL
Day 2: Data Structures and Editor
Day 2: Data Structures and Editor
Day3: Data-Driven Programming
Day3: Data-Driven Programming
In this lesson, we learn to call functions at the REPL. We can bake cookies!
(grab :cup)
(scoop :flour)
(dump :dry)
(scoop :corn-starch)
(dump :dry)
(scoop :sugar)
(dump :wet)
(scoop :coconut-oil)
(dump :wet)
(release)
(mix-bowl :dry)
(mix-bowl :wet)
(pour-bowl :wet :dry)
(mix-bowl :dry)
(pour-bowl :dry :pan)
(bake-pan 30)We also call:
(status)
(start-over)