Hello, I am very new to elixir language. I read Elixir in Action book and some code not work.
I have this file
circle.ex inside this
defmodule Cirlce do @moduledoc "Implements basic circle functions" @pi 3.14159 @doc "Computes the area of a circle" def area(r), do: r * r * @pi @doc "Computes the circumference of a circle" def circumference(r), do: 2 * r * @pi end
and then I run
elixirc circle.ex and enter to iex shell within same location of that file. Then I type
h Circle but it show
Could not load module Circle, got: nofile even though I can use that module.
My machine is windows and I use wsl
Erlang/OTP 25 [erts-126.96.36.199] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns] Interactive Elixir (1.14.5) - press Ctrl+C to exit (type h() ENTER for help)