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

19
LINES

< > BotCompany Repo | #1024051 // ai_powerWordsExpand

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Compilation Failed (2641L/17K).

static Collection<S> ai_powerWordsExpand(ParsedPowerWords ppw, Collection<S> words) {
  if (ppw == null) null;
  Set<S> seen = cloneCISet(words);
  new LS out;
  LPair<LS> equations = ai_parsedPowerWordEquations(ppw);
  while licensed {
    bool change = false;
    fOr (Pair<LS> eq : equations) {
      if (containsAll(seen, eq.a))
        for (S s : eq.b)
          if (seen.add(s)) {
            out.add(s);
            set change;
          }
    }
    if (!change) break;
  }
  ret out;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024051
Snippet name: ai_powerWordsExpand
Eternal ID of this version: #1024051/10
Text MD5: 92bc4b06bdcd211bd0ce2a6cb939962a
Transpilation MD5: 07da5bae010898ee860a25af46e3c876
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-18 16:49:19
Source code size: 511 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 282 / 399
Version history: 9 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)