Uses 11335K of libraries. Click here for Pure Java version (7799L/51K).
static MultiSetMap<Int, S> lcPairsToFiles(LineCompCompressor lc) { new MultiSetMap<Int, S> pairsToFile; for (S file, L<Int> l : lc.finalEncodings) for (int i : l) if (i >= lc.nLiterals()) lcPairsToFiles_step(lc, pairsToFile, i, file); ret pairsToFile; } svoid lcPairsToFiles_step(LineCompCompressor lc, MultiSetMap<Int, S> pairsToFile, int i, S file) { if (i < lc.nLiterals()) ret; if (!pairsToFile.add(i, file)) ret; IntPair p = lc.getPair(i); lcPairsToFiles_step(lc, pairsToFile, p.a, file); lcPairsToFiles_step(lc, pairsToFile, p.b, file); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1028769 |
| Snippet name: | lcPairsToFiles |
| Eternal ID of this version: | #1028769/3 |
| Text MD5: | c08fcff276901702aada1c7e243c8939 |
| Transpilation MD5: | 519acc7aecf554d7eddbef7e316ff956 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-08 00:53:46 |
| Source code size: | 596 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 381 / 515 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |