Function is a set of instructions, which are grouped together. These grouped instructions together perform certain task. In erlang, all the functions will return a value when they are called.
Below is an example of a function that adds two numbers
add(X, Y)-> X + Y.
This function performs an...