...

/

Challenge 2: Writer Monad

Challenge 2: Writer Monad

Test your knowledge by solving a problem requiring the Writer monad.

Problem statement

In a Writer monad environment, sequential chains are log-oriented. In addition to the computed values, the Writer monad also generates useful side data.

For this challenge, some string operations are given below in the table. Your task is to log all operations in sequential chains with a Writer monad and generate side data. The encoded representations of the operations are given below in sequential order:

Order Operation Encoded representation
...