static Set<LS> ai_simplifyUsingWordSets(LS tok, Collection<SS> maps) { Set<S> words = codeTokensAsCISet(tok); new LinkedHashSet<LS> out; for unnull (SS map : maps) if (isSuperSet(words, keySet(map))) { new LS tok2; removeToken(tok); out.add(tok2); } ret out; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023232 |
| Snippet name: | ai_simplifyUsingWordSets [dev.] |
| Eternal ID of this version: | #1023232/1 |
| Text MD5: | d3ddc6599f4304a39373150d2bced824 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-05-18 22:15:45 |
| Source code size: | 304 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 460 / 497 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |