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

12
LINES

< > BotCompany Repo | #1017202 // parsing_checkMatchPairUsingMechList

JavaX fragment (include)

1  
// p = pair("<category>", "word")
2  
sbool parsing_checkMatchPairUsingMechList(Pair<S> p) {
3  
  if (!isAngleBracketed(p.a)) false;
4  
  Set<S> lists = ai_mechListNamesForAngleBracketCategory(p.a);
5  
  //print(+listName);
6  
  for (S listName : lists) {
7  
    Set<S> entries = mechSetCI(listName);
8  
    //print("Found " + n2(entries, "entry", "entries") + " for " + listName);
9  
    if (contains(entries, p.b)) true;
10  
  }
11  
  false;
12  
}

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: #1017202
Snippet name: parsing_checkMatchPairUsingMechList
Eternal ID of this version: #1017202/7
Text MD5: 371147fc5b7619788a2641f51289d909
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 15:28:49
Source code size: 425 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 253 / 302
Version history: 6 change(s)
Referenced in: [show references]