1 | static L<Pair<S>> definitions_dropInvalidatedFromPairs(Collection<Pair<S>> l) { |
2 | new HashSet<S> invalidated; |
3 | new LinkedHashMap<S, Pair<S>> data; // global ID -> entry |
4 | |
5 | for (Pair<S> p : l) { |
6 | S text = dropGlobalID(p.b); |
7 | S invalidates = regexpFirstGroup("^\\[invalidate (" + regexp_globalID() + "): .*\\]$", text); |
8 | if (invalidates != null) |
9 | invalidated.add(invalidates); |
10 | else |
11 | data.put(orNewGlobalID(getAppendedGlobalID(p.b)), p); |
12 | } |
13 | removeAll(data, invalidated); |
14 | ret valuesList(data); |
15 | } |
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: | 366 / 394 |
Version history: | 3 change(s) |
Referenced in: | [show references] |