2 ms·
The following may help some fellow Lisp-heads understand some aspects of monads: http://www.kylheku.com/cgit/lisp-snippets/tree/monads.lisp http://www.kylheku.
by kazinator 12y ago
The following may help some fellow Lisp-heads understand some aspects of monads:
http://www.kylheku.com/cgit/lisp-snippets/tree/monads.lisp http://www.kylheku.com/cgit/lisp-snippets/tree/monads.lisp
Monads are developed starting with CLOS, then wrapping macros around them for doing monadic comprehensions. Finally, a monad-defining macro is introduced which generates the class and methods from a succinct syntax, and is used to write several monads, including a state transformer monad.