static L<RuleWithParams> nlLogic_highestScore(L<RuleWithParams> battleSpace, final Map<S, Int> ruleScores) { int highest = Integer.MIN_VALUE; for (RuleWithParams r : battleSpace) highest = max(highest, toInt(mapGet(ruleScores, r.rule.globalID))); final int _highest = highest; ret [RuleWithParams r : battleSpace | toInt(mapGet(ruleScores, r.rule.globalID)) == _highest]; }
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: | #1017868 |
Snippet name: | nlLogic_highestScore |
Eternal ID of this version: | #1017868/3 |
Text MD5: | c2f42e5aaa62cd010afa2cdf7b5a66df |
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-18 21:06:23 |
Source code size: | 391 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 292 / 324 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |