Erlang is a functional programming language and is used for real-time communication. This simple package is used to distinguish even and odd numbers
math_functions.erl
-module(math_functions).
-export([even/1, odd/1]).
even(X) when X >= 0 -> (X band 1) == 0.
odd(X) when X > 0 -> not even(X).
Run the "erl" commands in your bash line to start the Erlang engine
Erlang/OTP 24 [erts-12.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
1> c (math_functions).
{ok,math_functions}
2> math_functions:even(12).
true
3> math_functions:odd(12).
false