After reading this article, you will be able to:
– Differentiate between pure and impure functions
– Provide code examples in which impure functions cause unpredicted code behavior.
From Functional Programming in Kotlin by Marco Vermeulen, Rúnar Bjarnason, and Paul Chiusano
This article covers how monads, monad combinators, and functors work and why you should be afraid of them.
In this video, Michał Płachta focuses on problems with mutable states, explains why pure functions can’t use them in majority of cases, and shows you how to fight mutability by working with immutable values, which are used extensively in functional programming.
Haskell expert Vitaly Bragilevsky demonstrates Haskell features that make programming at the level of types possible.