Libraryless. Click here for Pure Java version (28L/1K).
static <A> A ifThenElse(bool b, A trueValue, A falseValue) { ret b ? trueValue : falseValue; }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030926 |
Snippet name: | ifThenElse |
Eternal ID of this version: | #1030926/1 |
Text MD5: | cce438221b49fe25e267b19b3067edba |
Transpilation MD5: | 425772ed2a2b9c262a8465bb563ba70d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-10 22:47:42 |
Source code size: | 98 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 175 / 254 |
Referenced in: | [show references] |