1 | static L<S> definitions_dropInvalidated(Collection<S> l) { |
2 | new HashSet<S> invalidated; |
3 | new LinkedHashMap<S> data; // global ID -> entry |
4 | |
5 | for (S s : l) { |
6 | S text = dropGlobalID(s); |
7 | S invalidates = regexpFirstGroup("^\\[invalidate (" + regexp_globalID() + "): .*\\]$", text); |
8 | if (invalidates != null) |
9 | invalidated.add(invalidates); |
10 | else |
11 | data.put(orNewGlobalID(getAppendedGlobalID(s)), s); |
12 | } |
13 | removeAll(data, invalidated); |
14 | ret valuesList(data); |
15 | } |
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: | #1017013 |
Snippet name: | definitions_dropInvalidated |
Eternal ID of this version: | #1017013/3 |
Text MD5: | c4064e5d3564930cda9b201892b8879a |
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:35 |
Source code size: | 497 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 375 / 411 |
Version history: | 2 change(s) |
Referenced in: | [show references] |