Elixir Part I - Playbook
November 30, 2017
https://joearms.github.io/published/2013-05-31-a-week-with-elixir.html
Pattern Matching equal sign = is not an assignment, is a match operator
^ pin operator forces using existing values
Immutable iex(13)> l1 = [1,2,3] [1, 2, 3] iex(14)> l2 = [ l1 | 'a'] [[1, 2, 3], 97] iex(16)> l2 = [ 'a'| l1] ['a', 1, 2, 3] Basics Value Types
iex(23)> 0o3407 1799 iex(24)> 0b111100 60 iex(25)> 0x33ff 13311 iex(28)> :var@2 :var@2 iex(29)> 1..100 1..100 iex> Regex.
...
Read more