Search⌘ K

Challenge 1: REPL with IO Monad

Explore how to build a simple REPL in PHP using the IO monad to read user input and output uppercase text. Understand how to apply monadic functions like mcompose and bind with built-in PHP functions while working in a functional programming style.

Problem statement

Write a simple REPL using the IO monad that reads user input and outputs its uppercase version.

Expected behavior of the REPL

Sample input 1

 ...