Three ways to compile Elixir
1: Use the c
function in iex
iex> c('lib/funkymath.ex')
[FunkyMath]
2: When opening iex
pass the module as a command line argument
$ iex lib/funkymath.ex
3: Use the mix
command line utility.
$ mix compile
This last option creates some artifacts that you can then use.
Tweet