Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1005762 // interceptPrintInThisThread

JavaX fragment (include)

// f can return false to suppress regular printing
// call print_raw within f to actually print something
// f preferrably is F1<S, Bool>
static O interceptPrintInThisThread(O f) {
  O old = print_byThread()!;
  print_byThread().set(f);
  ret old;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005762
Snippet name: interceptPrintInThisThread
Eternal ID of this version: #1005762/8
Text MD5: a1633c54a8a2498a3459af96aed4b2d8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-13 16:20:15
Source code size: 256 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 630 / 639
Version history: 7 change(s)
Referenced in: [show references]