1 | static bool ai_matchMulti(LS vars, LS values, SS matches) { |
2 | int n = l(vars); |
3 | if (n != l(values)) false; |
4 | new SS newMatches; |
5 | for i to n: |
6 | if (!strictPutIC(newMatches, vars.get(i), values.get(i))) false; |
7 | ret addMapToMapWithoutOverwritingIC(matches, newMatches); |
8 | } |
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: | 367 / 396 |
Version history: | 1 change(s) |
Referenced in: | [show references] |