1 | static <A> A boolSwitch(Bool b, A onTrue, A onFalse, A onNull) { |
2 | ret isTrue(b) ? onTrue : isFalse(b) ? onFalse : onNull; |
3 | } |
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: | #1013863 |
Snippet name: | boolSwitch - switch between true, false and null |
Eternal ID of this version: | #1013863/2 |
Text MD5: | da6d5464ac10af0c137dc1e044a92802 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-03-06 23:14:22 |
Source code size: | 126 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 382 / 417 |
Version history: | 1 change(s) |
Referenced in: | [show references] |