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

13
LINES

< > BotCompany Repo | #1016246 // dm_universalSearchData

JavaX fragment (include)

1  
// triples of (name, action, module ID)
2  
static L<Triple<S, O, S>> dm_universalSearchData() {
3  
  new L<Triple<S, O, S>> out;
4  
  for (O m : dm_listModules()) pcall {
5  
    L<Pair<S, O>> result = (L) quickImport(callOpt(m, 'uSearchData));
6  
    if (nempty(result)) {
7  
      S id = dm_moduleID(m);
8  
      for (Pair<S, O> p : takeFirst(3, result))
9  
        out.add(t3(p.a, p.b, id));
10  
    }
11  
  }
12  
  ret out;
13  
}

Author comment

Began life as a copy of #1016244

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016246
Snippet name: dm_universalSearchData
Eternal ID of this version: #1016246/4
Text MD5: db01960ff4e2a0a7a2b7b310716142f5
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-11 20:22:19
Source code size: 404 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 316 / 370
Version history: 3 change(s)
Referenced in: [show references]