Haskell and other functional programming languages are built around the premise of not maintaining state. I\'m still new to how functional programming works and concepts in
Dynamic programming in haskell can be expressed elegantly thanks to laziness, see the first example on this page