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

11
LINES

< > BotCompany Repo | #1020555 // Prog_If

JavaX fragment (include)

sclass Prog_If implements Runnable {
  F0<Bool> condition;
  Runnable trueBranch, falseBranch;
  
  public void run {
    if (callF(condition))
      callF(trueBranch);
    else
      callF(falseBranch);
  }
}

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