This is my attempt at converting a solution to a pascal's triangle problem that I'd written in an imperitive manner into a functional one. I kind of hope that anyone reading this is also trying to figure out the meanings behind functional programming, I'm trying to describe all the steps that I go through.
It is a mini way of me trying to discover what being 'declarative' actually means.
I know the kind of definition e.g.:
- "say what you want" not "how to do it"
- picture vs recipie
sqrt(2)
vs looping fromx = 1
finding the mean ofx
and2/x
- SQL, Haskell vs C++, Java