static L<Pair<S>> definitions_dropInvalidatedFromPairs(Collection<Pair<S>> l) { new HashSet<S> invalidated; new LinkedHashMap<S, Pair<S>> data; // global ID -> entry for (Pair<S> p : l) { S text = dropGlobalID(p.b); S invalidates = regexpFirstGroup("^\\[invalidate (" + regexp_globalID() + "): .*\\]$", text); if (invalidates != null) invalidated.add(invalidates); else data.put(orNewGlobalID(getAppendedGlobalID(p.b)), p); } removeAll(data, invalidated); ret valuesList(data); }
Began life as a copy of #1017013
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: | #1017015 |
Snippet name: | definitions_dropInvalidatedFromPairs |
Eternal ID of this version: | #1017015/4 |
Text MD5: | f3f9e1815dc0d75f6502f9898874e612 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-10 17:02:27 |
Source code size: | 537 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 367 / 395 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |