There has been a lot of hype around functional programming over the past several years. Pure functional programming requires all constructs to be immutable and functions to always return the same outputs, without causing any side effects, given the same inputs. At its best, this approach makes code safe (i.e…