Why do you use 'λ' instead of '\'? Is this normal in haskell projects?
Perhaps you meant one of these:
Left "the author has a shiny new keyboard with a λ key"
Right "they really really like to copy and paste"I don't think Haskell is really the best choice of language for demonstrating these FP concepts simply because Haskell's syntax is a little cryptic to those who haven't studied it. Lisp would have been a more readable choice since the syntax is trivial.
Also, you didn't touch on recursion, which is a key concept in FP. The idea of having a function call itself repeatedly in order to loop through a data structure, instead of iterating over the data structure by mutating a counter variable, is a huge paradigm shift for people who are new to FP.