defmodule Example do@moduledoc """This is an example Elixir module to demonstratethe ExEditor in action."""def hello(name) do"Hello, #{name}!"enddef add(a, b) when is_number(a) and is_number(b) doa + benddefp private_function do:okendend
defmodule Example do
@moduledoc """
This is an example Elixir module to demonstrate
the ExEditor in action.
"""
def hello(name) do
"Hello, #{name}!"
end
def add(a, b) when is_number(a) and is_number(b) do
a + b
end
defp private_function do
:ok
end
end