example

Mondas for Software Engineers

5 minute read Published: 2024-03-16

The Problem:

  1. To find square of a number and add one.
  2. Add logs to the see how the result is formed.
  3. Should be able to add more functions easily like multiplyThree.
  4. 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.