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

8
LINES

< > BotCompany Repo | #1017315 // ai_renderMatchesAndAssumptions

JavaX fragment (include)

static S ai_renderMatchesAndAssumptions(ParseResult1 p) {
  new Map<S, Int> map;
  for (PairS m : p.matches)
    map.put(ai_renderMatch(ll(m)), indexOf(p.pat, m.a));
  for (PairS m : p.assumptions)
    map.put(ai_renderMatchWithQuestionMarks(ll(m)), indexOf(p.pat, m.a));
  ret join(" & ", keysSortedByValues(map));
}

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: 302 / 340
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)