Enter the vast world of programming languages by following the tutorials provided here to learn about functional programming in Haskell.
To understand functions in Haskell, it is necessary to understand recurrence relations. Recurence relations are functions that are defined in terms of themselves. To understand this, we will do multiple examples.
S(0) = 0
S(N) = N + S(N-1)
0! = 1
N! = N * (N-1)!
F(0) = 0
F(1) = 1
F(N) = F(N-1) + F(N-2)
xn+1 = rxn(1 - xn)
Hopefully now you are more comfortable with recursion and recurrence relations.