A specific case of Monad abstraction that allows emulate write operations in pure functional way.
A great example is writing a log message.
A specific case of Monad abstraction that allows emulate write operations in pure functional way. A great example is writing a log message.
(-listen m mv)
Given a writer, yield a (value, log) pair as a value.
Given a writer, yield a (value, log) pair as a value.
(-pass m mv)
Given a writer whose value is a pair with a function as its second element, yield a writer which has the first element of the pair as the value and the result of applying the aforementioned function to the log as the new log.
Given a writer whose value is a pair with a function as its second element, yield a writer which has the first element of the pair as the value and the result of applying the aforementioned function to the log as the new log.
(-tell m v)
Add the given value to the log.
Add the given value to the log.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close