Libraryless. Click here for Pure Java version (2433L/15K).
1 | please include function emit. |
2 | |
3 | static L getEmits_tee(Runnable r) { |
4 | new L l; |
5 | temp tempSetThreadLocal(emit_tl, l); |
6 | temp tempSetMCOpt(emit_print := true); |
7 | callF(r); |
8 | ret l; |
9 | } |
10 | |
11 | static L mapLike getEmits(O f, O... args) { |
12 | ret getEmits(r { callF(f, args) }); |
13 | } |
Began life as a copy of #1016143
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026492 |
Snippet name: | getEmits_tee - also prints emits as usual |
Eternal ID of this version: | #1026492/1 |
Text MD5: | 97be844e74341e73059d85c11f281428 |
Transpilation MD5: | 49c2b15101a3b295cfcde47c41477faf |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-06 18:15:04 |
Source code size: | 277 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 164 / 249 |
Referenced in: | [show references] |