Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1030926 // ifThenElse

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (28L/1K).

1  
static <A> A ifThenElse(bool b, A trueValue, A falseValue) {
2  
  ret b ? trueValue : falseValue;
3  
}

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: 176 / 255
Referenced in: [show references]