Chapter 1 Flashcards

1
Q

REPL…?

A

Read, print, evaluate, loop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Comment at the end of the line?

A

One semicolon.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Comment all alone?

A

Two semicolons.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Function to count how long a string is

A

count

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Function to convert and concatenate strings

A

str

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Clojure’s null

A

nil

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Function to get the quotient of a division

A

quot

(quot 8 3) ; returns 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Arithmetic operators

A

+ - * /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Naming convention in Clojure

A

Kebab case. Ex: this-is-an-example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Spaces in Clojure’s indentation

A

2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Create a new clojure app

A

lein new app app-name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Run a clojure app

A

lein run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You need to define your functions _________________.

A

Before you use them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly