Elixir Basics Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Elixir

What is the lambda syntax?

A

fn x -> x*x end

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

Elixir

What is the syntax for multi line functions?

A

def name(args) do
args
end

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

Elixir

What is the syntax for single line functions?

A

def name(args), do: args

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

Elixir

What keyword adds a guard to a function?

A

when

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