Add Helper Functions
Learn how to add IEx helper functions.
Learning how to add imports and aliases is a good start, but remember that .iex.exs
is just a regular Elixir file, so we can define modules and functions as well. Consider the example we were just discussing, which was making a change to a record in the database. Normally, this process requires a few steps, but we can create a helper function that will ...