iex(2)> "/home/cess11" * 9 ** (ArithmeticError) bad argument in arithmetic expression: "/home/cess11" * 9 :erlang.*("/home/cess11", 9) iex:2: (file)
https://hexdocs.pm/elixir/Enum.html#types
defmodule Multiply do def m9(m1), do: m1 * 9 end # elsewhere... defmodule Caller do def doit() do Multiply.m9(2) Multiply.m9("hi") end end
@spec m9(integer()) :: integer()
https://hexdocs.pm/elixir/Enum.html#types