Elixir

print Charlist as list of integer

[1, 2, 3] |> inspect(charlists: :as_lists) |> IO.puts()

control sequence introducer \e instead of \033[

function

anonymous function

f = fn arg0, arg1, … -> result end

need a dot to call

f.(a0, a1, …)

capture syntax

&fn1/n_args
&(&1…)
  • &1 for the first argument, &2 for the second, etc.