Erlang Add
-module(add).
-export([add/2]).
add(Param1, Param2) ->
Param1 + Param2.
This just adds the two input numbers with the language’s normal arithmetic and returns the sum.
-module(add).
-export([add/2]).
add(Param1, Param2) ->
Param1 + Param2.
This just adds the two input numbers with the language’s normal arithmetic and returns the sum.