1 | sclass Prog_If_Multi implements Runnable {
|
2 | LPair<F0<Bool>, Runnable> conditions = new L; |
3 | Runnable defaultBranch; |
4 | |
5 | public void run {
|
6 | for (Pair<F0<Bool>, Runnable> p : conditions) |
7 | if (callF(p.a)) |
8 | ret with callF(p.b); |
9 | callF(defaultBranch); |
10 | } |
11 | |
12 | void add(F0<Bool> condition, Runnable branch) {
|
13 | addPair(conditions, condition, branch); |
14 | } |
15 | } |
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: | 517 / 1039 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |