// pairs of (result, module id) static L<Pair<O, S>> dm_universalSearch(S query) { new L<Pair<O, S>> out; for (O m : dm_listModules()) pcall { L result = cast callOpt(m, 'uSearch, query); if (nempty(result)) { S id = dm_moduleID(m); for (O s : takeFirst(3, result)) out.add(pair(s, id)); } } ret out; }
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: | #1016244 |
Snippet name: | dm_universalSearch |
Eternal ID of this version: | #1016244/6 |
Text MD5: | 451516d7ad69db1a66d63b548a5e27d2 |
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:00:20 |
Source code size: | 354 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 385 / 426 |
Version history: | 5 change(s) |
Referenced in: | [show references] |