aripiprazole / ekko

📘 | Writing Haskell in Kotlin article's project
https://whik.devgabi.me
The Unlicense
7 stars 0 forks source link

create do-notation syntax #13

Open aripiprazole opened 2 years ago

aripiprazole commented 2 years ago

Create do-notation syntax. Do notation is a notation to make easier to use the Monad.>>= function. This should be converted in a separate step known as desugar.

iterating : List String -> Unit
iterating list = do
  x <- list
  unsafePrint x