Chapter 1 Flashcards
1
Q
REPL…?
A
Read, print, evaluate, loop.
2
Q
Comment at the end of the line?
A
One semicolon.
3
Q
Comment all alone?
A
Two semicolons.
4
Q
Function to count how long a string is
A
count
5
Q
Function to convert and concatenate strings
A
str
6
Q
Clojure’s null
A
nil
7
Q
Function to get the quotient of a division
A
quot
(quot 8 3) ; returns 2
8
Q
Arithmetic operators
A
+ - * /
9
Q
Naming convention in Clojure
A
Kebab case. Ex: this-is-an-example
10
Q
Spaces in Clojure’s indentation
A
2
11
Q
Create a new clojure app
A
lein new app app-name
12
Q
Run a clojure app
A
lein run
13
Q
You need to define your functions _________________.
A
Before you use them.