The Pipe Operator |> takes the result of an expression on the left and feeds it as the first parameter to a function on the right.
expression |> function
Use the Pipe Operator to chain expressions together and to visually document the flow of a series of functions.
Consider the following:...
There are two kinds of boolean operators in Elixir:
boolean operators (they expect either true or false as their first argument)
x or y # true if x is true, otherwise y
x and y # false if x is false, otherwise y
not x # false if x is true, otherwise true
All of booleans...
Equality:
value equality x == y (1 == 1.0 # true)
value inequality x == y (1 != 1.0 # false)
strict equality x === y (1 === 1.0 # false)
strict inequality x === y (1 !== 1.0 # true)
Comparison:
x > y
x >= y
x < y
x <= y
If types are compatible, comparison uses natural o...