1 | static S ai_renderMatchesAndAssumptions(ParseResult1 p) { |
2 | new Map<S, Int> map; |
3 | for (PairS m : p.matches) |
4 | map.put(ai_renderMatch(ll(m)), indexOf(p.pat, m.a)); |
5 | for (PairS m : p.assumptions) |
6 | map.put(ai_renderMatchWithQuestionMarks(ll(m)), indexOf(p.pat, m.a)); |
7 | ret join(" & ", keysSortedByValues(map)); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017315 |
Snippet name: | ai_renderMatchesAndAssumptions |
Eternal ID of this version: | #1017315/3 |
Text MD5: | 7089051bace32078afc0b0294156c974 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-16 16:51:11 |
Source code size: | 324 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 301 / 339 |
Version history: | 2 change(s) |
Referenced in: | [show references] |