Clojure Forms
Clojure code can have one of two structure:
- Literal representation of data structures
- Operations
Operations have the following structure:
(operator operand1 operand2 ... operandn)
Operands are separated by whitespace.
The operator is the function – it tells the program what to do. The operands tells the program what the operator is acting on.
Example: (+ 1 2 3)
The operator “+” tells the program to add the operands 1, 2, and 3. This will return a value of 6.
see also
references
- Higginbotham, Daniel. Clojure for the Brave and True Learn the Ultimate Language and Become a Better Programmer. Daniel Higginbotham, 2015, [https://www.braveclojure.com/clojure-for-the-brave-and-true/].