import_if_available/1 in iex
07 November 2024
IEx provides import_if_available/2
to import a module only if it exists.
So in my .iex.exs:
import_if_available(Ecto.Query)
and there's no error if Ecto.Query doesn't exist.
07 November 2024
IEx provides import_if_available/2
to import a module only if it exists.
So in my .iex.exs:
import_if_available(Ecto.Query)
and there's no error if Ecto.Query doesn't exist.