static Map<S, MultiSet<S>> ai_gazelle_indexStatementsByRule_multiSet(MultiSet<S> statements) { new Map<S, MultiSet<S>> map; new Matches m; for (S s : keys(statements)) if "Rule *: ..." { S ruleID = $1; getOrCreateMultiSet(map, ruleID).add(m.rest(), statements.get(s)); } ret map; }
Began life as a copy of #1021444
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: | #1021972 |
Snippet name: | ai_gazelle_indexStatementsByRule_multiSet |
Eternal ID of this version: | #1021972/3 |
Text MD5: | 7e1ec790e635aec98793f113264dbb77 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-04 14:18:44 |
Source code size: | 318 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 281 / 313 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |