Reusing code in elixir scripts (.exs)

Curious to learn strategies to reuse code in elixir scripts. I would like to use elixir for scripting things (inspired by underjord), but I feel blocked in being able to write reusable code that I can import into these scripts.

I’m trying to do something like this:

a.exs

Mix.install([
  {:hello, path: "./b"}
])

defmodule ATest do
  def a_test() do
    Hello.world()
  end
end

ATest.a_test()

b.exs

defmodule Hello do
  use Mix.Project


  def world() do
    "hello_world"
  end
end