https://blog.stackademic.com/haskell-the-art-of-functional-purity-and-mathematical-elegance-f75a87439212