4 ms·
Wouldn't infinite streams more naturally form a comonad than a monad, though? They're coinductive types.
by eli_gottlieb 6y ago
Wouldn't infinite streams more naturally form a comonad than a monad, though? They're coinductive types.
- lmm 6y agoDepends how you're using them. Apparently Lucid finds this "diagonal" approach to streams - which is not the normal way of streams in most programming languages - to be useful, in which case the monad model is a good fit.