Elixir — Command Reference
Elixir's most used commands — each with an explanation, working example, and real-world usage. A functional, fault-tolerant, scalable language on the Erlang VM.
7 categories · 15 commands
🖥️
Output
Printing to the console and string interpolation.
IO.puts() / IO.inspect()String interpolation #{}📦
Variables & Types
Binding and type conversion.
= (binding)String.to_integer()🔢
Numbers & Math
Operators and mathematical functions.
Math operators:math.sqrt() / abs()✍️
String
Concatenation, length, casing, and searching.
Concatenation ( <> )String.length() / String.upcase()String.contains? / String.replace / String.split📚
List & Enum
Lists and the Enum module.
List ( [ ] )Enum (each / map / sum)🔀
Condition
if and cond.
if / elsecond🧩
Function
Anonymous (fn) and module (def) functions.
Anonymous function (fn)def (module function)