Into Flashcards

1
Q

IEX

A

Elixirs interactive Shell

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

3 new command line executables

A

IEX - opens up interactive elixir
IEX.bat on windows PowerShell

Elixir -
Elixirs -

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

Integer

A

1,

0x1F

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

Float

A

1.0

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

Boolean

A

True
False

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

Atom

A

:atom

A constant whose value is its own name

:Apple —> :Apple

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

String

A

“Elixir”

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

List

A

[1, 2, 3]

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

Tuple

A

{1, 2, 3}

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

/

A

Division
Always returns float

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

Div(10,2)

A

—> 5
Not a float

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

rem(10,3)

A

—> 1

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

Round(3.58)

A

—> 4

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

Trunc(3.58)

A

—> 3

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

Is_integer(1)
Is_integer(2.0)

A

—> true
—> false

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

Arity
Trunc/1

A

The arity of a function describes the number of arguments it takes.

Refers to the Trunc function with an arity of 1

17
Q

Kernel

A

Defines general use functions
Is automatically imported into a namespace

18
Q

Nil || true
True || 1
Nil && 13

A

True
True
Nil

19
Q

Nil

A

Represents the absence of a value

20
Q

Is_atom(false)
Is_boolean(:false)

A

—> true
—> true

21
Q

<>

A

Concatenate two strings

22
Q

“Hello #{“world”}”

A

Hello world

23
Q

IO.puts()

A

Prints a string

—> :ok

24
Q

String.length()
String.upcase()

A