In this recipe, we will review Clojure's function definitions:
You only need REPL, as described in the first recipe in this chapter, and no additional libraries. Start REPL so that you can test the sample code immediately in this recipe.
Here, we will learn how to define functions using Clojure. Let's start with a simple function which returns
Let's start with a minimum function definition. Here is a minimal syntax of
(defn funtion-name [arg1 arg2 ...] ...