Elixir is a functional programming language that runs on Erlang VM
Elixir is a functional programming language that runs on Erlang VM
Elixir is a functional programming language that runs on Erlang VM
Pattern Matching
iex> x = 1
1
iex> 1 = x
1
iex> 2 = x
** (MatchError) no match of right hand side value: 1iex> "HELLO WORLD" = "hello world" |> String.upcase()Pipeline
Operators
iex> add = fn num when is_integer(num) -> num + 1 end
#Function<6.54118792/1 in :erl_eval.expr/5>
iex> add.(1)
2
iex> add.("1")
** (FunctionClauseError) no function clause matching in :erl_eval.....Guard
Clauses
Recursions
“To iterate is human, to recurse is divine.”
(L. Peter Deutsch)
Macros
“With great power comes great responsibility.”
(Uncle Ben)
Processes
"Let it crash"
Documentation
Talk about productivity
Mix
Project Management and build tool for Elixir.
ExUnit
Testing Framework for Elixir