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

10
LINES

< > BotCompany Repo | #1025836 // agiBlue_rules_gazelleZip

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

Libraryless. Click here for Pure Java version (4406L/29K).

// returns pairs(rule, mapping)
static LPair<S, SS> agiBlue_rules_gazelleZip(S input) {
  new LPair<S, SS> out;
  for (S rule : agiBlue_allRules()) {
    PairS p = splitAtDoubleArrow_pair(rule), continue if null;
    SS map = gazelle_zip(p.a, input), continue if null;
    out.add(pair(rule, mapKeysAndValues tok_deRoundOrCurlyBracket(map)));
  }
  ret out;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025836
Snippet name: agiBlue_rules_gazelleZip
Eternal ID of this version: #1025836/1
Text MD5: 300fe257d2e16ff6eb4e02ba223e70a4
Transpilation MD5: 036d99b54e4e00100dfec2044461616f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-25 14:50:37
Source code size: 368 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 215 / 301
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025853 - agiBlue_ruleObjects
#1025854 - agiBlue_matchAllRulesOnInput