ExEditor Demo

Backpex Admin

Editor

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
 

Raw Content (Preview)

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