Elixir Basics Flashcards
1
Q
Elixir
What is the lambda syntax?
A
fn x -> x*x end
2
Q
Elixir
What is the syntax for multi line functions?
A
def name(args) do
args
end
3
Q
Elixir
What is the syntax for single line functions?
A
def name(args), do: args
4
Q
Elixir
What keyword adds a guard to a function?
A
when