1 | static L<Web> ai_getWebs(S id) { |
2 | if (!possibleGlobalID(id)) null; |
3 | ret ai_getWebs(asGlobalID(id)); |
4 | } |
5 | |
6 | static L<Web> ai_getWebs(GlobalID id) { |
7 | if (id == null) ret emptyList(); |
8 | Web primary = ai_getWeb(id); // also queries virtual indices |
9 | if (primary == null) ret emptyList(); |
10 | L<Web> l = ll(primary); |
11 | |
12 | // add duplicate webs (shouldn't have any anyway) |
13 | l.addAll(dropFirst(allWebsByID().get(id))); |
14 | ret l; |
15 | } |
Began life as a copy of #1011760
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: | #1012276 |
Snippet name: | ai_getWebs (by ID) |
Eternal ID of this version: | #1012276/3 |
Text MD5: | 726a334f0b53482a2d98374abd16b7db |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-28 12:47:58 |
Source code size: | 434 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 498 / 519 |
Version history: | 2 change(s) |
Referenced in: | [show references] |