Elixir Add
defmodule Add do
def add(param1, param2), do: param1 + param2
end
This just adds the two input numbers with the language’s normal arithmetic and returns the sum.
defmodule Add do
def add(param1, param2), do: param1 + param2
end
This just adds the two input numbers with the language’s normal arithmetic and returns the sum.