←back to thread

A list is a monad

(alexyorke.github.io)
153 points polygot | 1 comments | | HN request time: 0.253s | source
1. kazinator ◴[] No.44450318[source]
https://www.kylheku.com/cgit/lisp-snippets/tree/monads.lisp

[Content Warning: Lisp]

We define a small OOP framework for monads, plus macros which then can succinctly define different kinds of monads, including generating a comprehension macro for each one.