Effect for logging values alongside computations
Compared to traditional Writer monad which accumulates values by default this effect can be interpreted in different ways:
- log values to the console or to a file as soon as they are produced
- accumulate values in a list
- Companion:
- object
- Source:
- WriterEffect.scala
Value members
Inherited methods
run a writer effect and return the list of written values
run a writer effect and return the list of written values
This uses a ListBuffer internally to append values
- Inherited from:
- WriterInterpretation
- Source:
- WriterEffect.scala
More general fold of runWriter where we can use a fold to accumulate values in a mutable buffer
More general fold of runWriter where we can use a fold to accumulate values in a mutable buffer
- Inherited from:
- WriterInterpretation
- Source:
- WriterEffect.scala
Run a side-effecting fold
Run a side-effecting fold
- Inherited from:
- WriterInterpretation
- Source:
- WriterEffect.scala