funcool

A channel for discussing and asking questions about Funcool libraries https://github.com/funcool/
sparkofreason 2016-06-05T03:29:50.000004Z

How would you do this example from algo.monads using cats? https://github.com/clojure/algo.monads/blob/master/src/examples/clojure/examples/monads.clj#L145

sparkofreason 2016-06-05T03:30:49.000006Z

I can see how to make it work using :let and explicit get/put-state, was wondering if there was an implementation with similar abstraction as the one in algo.monads.

sparkofreason 2016-06-05T03:50:00.000007Z

In particular referring to the use of reduce.