elixir KERNEL 1 Flashcards
1
Q
1 === 1.0
A
=> false
*Note: returns true if items have same value and of the same type
2
Q
1 > 2
A
=> false
3
Q
3 >= 2
A
=> true
4
Q
is_atom(:hello)
A
=> true
5
Q
is_boolean(false)
A
=> true
6
Q
1 !== 2
A
=> true
7
Q
1 !== 1.0
A
=> true
8
Q
1 != 2
A
=> true
9
Q
1 != 1.0
A
=> false
10
Q
1 * 2
A
=> 2
11
Q
1 * 2.3
A
=> 2.3
12
Q
[1] ++ ‘a’
A
=> [1, 97]
13
Q
[1] ++ [2]
A
=> [1, 2]
14
Q
1 - 2
A
=> -1
15
Q
-2 + 1 - -1
A
=> 0
16
Q
[1, 2, 3] – [1, 2]
A
=> [3]
17
Q
1 / 2
A
=> 0.5
18
Q
-5 / 1
A
=> -5.0
19
Q
1 < 2
A
=> true
20
Q
1 <= 2
A
=> true
21
Q
“elixir” =~ ~r/l(i)/
A
=> true