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

13
LINES

< > BotCompany Repo | #1016246 // dm_universalSearchData

JavaX fragment (include)

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

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: 247 / 295
Version history: 3 change(s)
Referenced in: [show references]