Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1025854 // agiBlue_matchAllRulesOnInput

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4942L/32K).

static L<AGIBlue_MatchedRule> agiBlue_matchAllRulesOnInput(S input) {
  new L<AGIBlue_MatchedRule> out;
  for (AGIBlue_Rule rule : agiBlue_ruleObjects()) {
    SS map = gazelle_zip(rule.lhs, input), continue if null;
    out.add(AGIBlue_MatchedRule(rule,
      mapKeysAndValues tok_deRoundOrCurlyBracket(map)));
  }
  sortInPlaceByCalculatedField(out, mr -> l(mr.map));
  ret out;
}

Author comment

Began life as a copy of #1025836

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025854
Snippet name: agiBlue_matchAllRulesOnInput
Eternal ID of this version: #1025854/2
Text MD5: 78ac86be7ee8102798b11d1fd1a5c1e5
Transpilation MD5: 006da16987e640acb513f9c40573731f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-27 21:27:40
Source code size: 391 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 226
Version history: 1 change(s)
Referenced in: [show references]