Today I Learned

hashrocket A Hashrocket project

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.

See More #elixir TILs
Looking for help? At Hashrocket, we 💜 Elixir! From our many Elixir client projects, to sponsoring the Chicago Elixir Meetup, to the source code for this application, we are invested in this community. Contact us today to talk about your Elixir project.