svoid print_tee(Appendable buf, S prefix default "", O o) ctex { S s = combinePrintParameters(prefix, o); buf?.append(s + "\n"); // we prefer this over 2 calls, it's possibly atomic print(s); } svoid print_tee(StringBuilder buf) { print_tee(buf, ""); }