1 | static Iterable<DialogIO> talkToAllOtherVMs() { |
2 | final L<ProgramScan.Program> list = quickBotScan("This is a JavaX VM."); |
3 | int myPort = myVMPort(); |
4 | for (int i = 0; i < l(list); i++) |
5 | if (list.get(i).port == myPort) { |
6 | list.remove(i); |
7 | break; |
8 | } |
9 | |
10 | return new Iterable<DialogIO>() { |
11 | public Iterator<DialogIO> iterator() { |
12 | return new Iterator<DialogIO>() { |
13 | int i; |
14 | |
15 | public boolean hasNext() { |
16 | return i < list.size(); |
17 | } |
18 | |
19 | public DialogIO next() { |
20 | return talkTo(list.get(i++).port); |
21 | } |
22 | |
23 | public void remove() { |
24 | } |
25 | }; |
26 | } |
27 | }; |
28 | } |
Began life as a copy of #1001399
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001740 |
Snippet name: | talkToAllOtherVMs |
Eternal ID of this version: | #1001740/1 |
Text MD5: | 2212603e13ba48a576c94b10eede25cb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-11-11 01:37:16 |
Source code size: | 685 bytes / 28 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 645 / 884 |
Referenced in: | [show references] |