meta-for int also as double { static <A> A minusZeroPlus(int i, A minus, A zero, A plus) { ret i > 0 ? plus : i == 0 ? zero : minus; } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015469 |
Snippet name: | minusZeroPlus |
Eternal ID of this version: | #1015469/5 |
Text MD5: | bce5ec38d5ac305f4a81487910a46268 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-03-13 19:30:49 |
Source code size: | 148 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 398 / 455 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |