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

8
LINES

< > BotCompany Repo | #1018016 // ai_matchMulti - match multiple values

JavaX fragment (include)

static bool ai_matchMulti(LS vars, LS values, SS matches) {
  int n = l(vars);
  if (n != l(values)) false;
  new SS newMatches;
  for i to n:
    if (!strictPutIC(newMatches, vars.get(i), values.get(i))) false;
  ret addMapToMapWithoutOverwritingIC(matches, newMatches);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018016
Snippet name: ai_matchMulti - match multiple values
Eternal ID of this version: #1018016/2
Text MD5: ca5053cf8c5019fe60d606c2a5c97a41
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-26 13:39:34
Source code size: 280 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 285 / 315
Version history: 1 change(s)
Referenced in: [show references]