October 2016
Intermediate to advanced
618 pages
10h 44m
English
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 Hello world:
Let's start with a minimum function definition. Here is a minimal syntax of defn:
(defn funtion-name [arg1 arg2 ...] ...
Read now
Unlock full access