cats.labs.writer
The Writer Monad.
MonadWriter
protocol
A specific case of Monad abstraction that allows emulate write operations in pure functional way.
A great example is writing a log message.
members
-pass
(-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.
writer
(writer f)
The Writer type constructor.
The purpose of Writer type is wrap a simple function that fullfill the writer signature.
It exists just for avoid extend the clojure function type because is very generic type.