|
|
|
|
|
by mrkeen
658 days ago
|
|
Here's a good enough definition: "The same input yields the same output". > "functional programming is a programming paradigm where programs are constructed by applying and composing functions" This is only seems like a useless truism if you take 'function' to mean 'method' or 'procedure'. If you nail down 'function' to sameinput->sameoutput then it starts to make more sense. |
|
So let's say you have this in your code:
You have composed three procedures here in order. This is illegal. You must ONLY construct the programs via composing functions there can be no other way.