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

11
LINES

< > BotCompany Repo | #1020555 // Prog_If

JavaX fragment (include)

1  
sclass Prog_If implements Runnable {
2  
  F0<Bool> condition;
3  
  Runnable trueBranch, falseBranch;
4  
  
5  
  public void run {
6  
    if (callF(condition))
7  
      callF(trueBranch);
8  
    else
9  
      callF(falseBranch);
10  
  }
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020555
Snippet name: Prog_If
Eternal ID of this version: #1020555/1
Text MD5: 3d926589648e4a2f5408548ec87c87e1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-26 20:21:50
Source code size: 219 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 785
Referenced in: [show references]