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

23
LINES

< > BotCompany Repo | #1014623 // Two List Attractor [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7727L/52K).

1  
!7
2  
3  
p-experiment {
4  
  L<S> l1 = mL("Things humans eat");
5  
  L<S> l2 = mL("Things humans don't eat");
6  
  L<S> things = tlft([[
7  
    Steel
8  
    Raw steel
9  
    Chocolate
10  
    Milk chocolate
11  
    Wooly stuff
12  
    Stainless steel
13  
  ]]);
14  
  
15  
  Triple<L<S>> t = attractToTwoLists1(things, l1, l2);
16  
  t = attractToTwoLists_merge(t, attractToTwoLists2(t.a, l1, l2));
17  
  nlPrint("Edible:");
18  
  pnlIndent(t.b);
19  
  nlPrint("Non-edible:");
20  
  pnlIndent(t.c);
21  
  nlPrint("Undecided:");
22  
  pnlIndent(t.a);
23  
}

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: #1014623
Snippet name: Two List Attractor [OK]
Eternal ID of this version: #1014623/8
Text MD5: c8b24906fc515cb7f45ab955465106e0
Transpilation MD5: be7ecd68194058e54bbde80c63fba8ae
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-27 01:17:04
Source code size: 498 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 372 / 2411
Version history: 7 change(s)
Referenced in: [show references]