static new ThreadLocal<StringBuilder> printToBuf_buf; static void printToBuf(O o) { StringBuilder buf = printToBuf_buf!; if (buf == null) printToBuf_buf.set(buf = new StringBuilder); printToBuf(buf, o); } static void printToBuf(StringBuilder buf, O o) { buf.append(str(o)).append("\n"); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014659 |
Snippet name: | printToBuf - print to a thread-local buffer |
Eternal ID of this version: | #1014659/4 |
Text MD5: | f57c5672c7574f9d07db2108ff6b387f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-20 16:29:06 |
Source code size: | 308 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 494 / 525 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014660 - bufLines - get lines from thread-local buffer (and clear buffer) |