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

7
LINES

< > BotCompany Repo | #1021394 // ai_matchRulesWithMultipleConditions_precise

JavaX fragment (include)

static LS ai_matchRulesWithMultipleConditions_precise(LPair<LS, S> rules, Set<S> facts) {
  new LS out;
  for (Pair<LS, S> rule : unnull(rules))
    if (containsAll(facts, rule.a))
      out.add(rule.b);
  ret out;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021394
Snippet name: ai_matchRulesWithMultipleConditions_precise
Eternal ID of this version: #1021394/1
Text MD5: 492b6aeedcbbaf6ddb4fe964f345f739
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 17:46:50
Source code size: 222 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 247 / 281
Referenced in: [show references]