Mondas for Software Engineers
5 minute read Published: 2024-03-16The Problem:
- To find square of a number and add one.
- Add logs to the see how the result is formed.
- Should be able to add more functions easily like multiplyThree.
- Functions defined should be composable in any order (we can multiplyThree before addOne or vice versa).
We will solve this problem using a monad design pattern in a step by step thought process.