Liking cljdoc? Tell your friends :D

prpr.cats.writer


listenclj/s

(listen mv)
(listen ctx mv)
source

MonadWriterclj/s≠protocol

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.

-listenclj/s

(-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.

-passclj/s

(-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.

-tellclj/s

(-tell m v)

Add the given value to the log.

Add the given value to the log.
sourceraw docstring

passclj/s

(pass mv)
(pass ctx mv)
source

tellclj/s

(tell v)
(tell ctx v)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close