Today I Learned

hashrocket A Hashrocket project

Recompile in iex session

After editing a module, we can recompile the file containing that module inside of an iex session using the r command.

#stuff.exs
defmodule Bar do
 # code and stuff
end

defmodule Foo do
  # code and stuff
end
iex> r Foo
# {:reloaded, Foo, [Bar, Foo] }
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.