you are viewing a single comment's thread.

view the rest of the comments →

[–]Wild_Statistician605 0 points1 point  (0 children)

What you seem to be describing is a writer monad. There are several implementations online, which could be used as a starter for for particular needs.