[Haskell-cafe] Accumulating and threading output of functions

Stefan Monnier monnier at iro.umontreal.ca
Sat Jun 4 16:52:58 UTC 2016


> f:: a -> b -> (b, c)
> i.e. it returns a modified b and an additional c.

Sounds like a monad (think of "b" as the state that's threaded).


        Stefan



More information about the Haskell-Cafe mailing list