Hi list, just for the fun of sharing, I wanted to show that I translated the State Monad from Haskell into PicoLisp:
http://git.savannah.nongnu.org/cgit/picolisp-nb.git/tree/state-monad/state-monad.l?id=cb96377cf513b927e8a3c73a77ab5ed6c95a9be8 One would perhaps want to write some more syntactic sugar to make it as convenient to use as the Haskell version. I think for the most part picolispers would not find the state monad useful. However, I could conceive of myself using it in a game or simulation where a single "World" variable is constantly be referenced and modified, allowing me to pass it around in clean FP style without making it an explicit parameter. -- https://qlfiles.net -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe