please include function emit. static L getEmits_tee(Runnable r) { new L l; temp tempSetThreadLocal(emit_tl, l); temp tempSetMCOpt(emit_print := true); callF(r); ret l; } static L mapLike getEmits(O f, O... args) { ret getEmits(r { callF(f, args) }); }