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

18
LINES

< > BotCompany Repo | #1004300 // gSatAnd - "and" connection between statements, satisfy in log

JavaX fragment (include)

// null = no satisfaction
// otherwise return var map
static Iterable<SS> gSatAnd(L<S> statements) {
  assertTrue(l(statements) >= 1);
  
  if (l(statements) == 1)
    ret gSat(first(statements));
  
  new L<SS> l;
  for (SS map : gSat(first(statements)))
    for (SS map2 : gSatAnd(dropFirst(statements)))
      addIfNotEmpty(l, mergeMappings(map, map2));
  ret l;
}

static Iterable<SS> gSatAnd(S... statements) {
  ret gSatAnd(asList(statements));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004300
Snippet name: gSatAnd - "and" connection between statements, satisfy in log
Eternal ID of this version: #1004300/1
Text MD5: 5dd894dc3be0cfb1ba8bd769d9701e7d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-13 03:01:48
Source code size: 469 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 541 / 530
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)