Acc
Accumulator effect: emit/emitAll/collect for incremental list building.
collect
Read the current accumulated items.
collect : Computation [a]
emit
Append a single item to the accumulator.
emit : a -> Computation null
emitAll
Append a list of items to the accumulator.
emitAll : [a] -> Computation null
handler
Standard accumulator handler. State is a list of accumulated items.
Initial state: []
handle { handlers = acc.handler; state = []; } comp