1 | static <A> A printAndProgramLog(S s, A o) { |
2 | printAndProgramLog((endsWithLetterOrDigit(s) ? s + ": " : s) + o); |
3 | ret o; |
4 | } |
5 | |
6 | static <A> A printAndProgramLog(A a) { |
7 | S s = str(a); |
8 | print("[" + localDateWithMilliseconds() + "] " + s); |
9 | logQuotedWithDate(programLog(), s); |
10 | ret a; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1019467 |
Snippet name: | printAndProgramLog |
Eternal ID of this version: | #1019467/5 |
Text MD5: | 4b0b5196bbc09b1c8af29f40941f6d7f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-30 16:21:38 |
Source code size: | 293 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 400 / 448 |
Version history: | 4 change(s) |
Referenced in: | [show references] |