static O timedIf(bool b, O f) { ret b ? timed(f) : callF(f); } static <A> A timedIf(bool b, F0<A> f) { ret b ? timed(f) : callF(f); }
Began life as a copy of #1019487
download show line numbers debug dex old transpilations
Travelled to 10 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019749 |
Snippet name: | timedIf - show timing if a boolean is true |
Eternal ID of this version: | #1019749/1 |
Text MD5: | d34b3539c0031aa984cba400ae6e0446 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-24 17:25:50 |
Source code size: | 144 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 299 / 348 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |