who uses elixir code example
Example 1: elixir function arity
inspect :erlang.fun_info(fn -> :ok end)[:arity]
inspect :erlang.fun_info(fn a,b-> a+b end)[:arity]
inspect fn a,b-> a+b end |> is_function
inspect fn a,b-> a+b end |> is_function(1)
Example 2: elixir version 1.1
kiex list known
Getting the available releases from https://github.com/elixir-lang/elixir/releases
Known Elixir releases:
1.2.1
1.2.0
1.2.0-rc.1
1.2.0-rc.0
1.1.1
1.1.0
1.1.0-rc.0
0.9.3
0.9.2
0.9.1
0.9.0
0.8.3
0.8.2
0.8.1
0.8.0
0.7.2
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-rc2
1.0.0-rc1
0.15.1
0.15.0
0.14.3
0.14.2
0.14.1
0.14.0