sclass Prog_If_Multi implements Runnable { LPair<F0<Bool>, Runnable> conditions = new L; Runnable defaultBranch; public void run { for (Pair<F0<Bool>, Runnable> p : conditions) if (callF(p.a)) ret with callF(p.b); callF(defaultBranch); } void add(F0<Bool> condition, Runnable branch) { addPair(conditions, condition, branch); } }
Began life as a copy of #1020555
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: | #1020556 |
Snippet name: | Prog_If_Multi |
Eternal ID of this version: | #1020556/2 |
Text MD5: | 4512536154a3a0fe656a7b6577710fac |
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:25:09 |
Source code size: | 387 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 285 / 797 |
Version history: | 1 change(s) |
Referenced in: | [show references] |