https://www.tcl-lang.org/man/tcl8.6/TclCmd/transchan.htm
Attach a transform to a channel. The transform can be removed with chan pop.
For examples, see TclOO Channels, timestamp, tee.