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

11
LINES

< > BotCompany Repo | #1014626 // attractToTwoLists2

JavaX fragment (include)

static Triple<L<S>> attractToTwoLists2(L<S> things, L<S> l1, L<S> l2) {
  new L<S> a; new L<S> b; new L<S> undecided;
  for (S s : unnull(things)) {
    L<S> pot = doubleBoolSwitch(
      cicAny(s, l1), a,
      cicAny(s, l2), b,
      undecided);
    pot.add(s);
  }
  ret triple(undecided, a, b);
}

Author comment

Began life as a copy of #1014622

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014626
Snippet name: attractToTwoLists2
Eternal ID of this version: #1014626/2
Text MD5: eea7f9dc11679a6a745171cc96b5f14b
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-27 01:07:09
Source code size: 310 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 319 / 326
Version history: 1 change(s)
Referenced in: [show references]