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

16
LINES

< > BotCompany Repo | #1014531 // Find missing keys in lists

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

Download Jar. Libraryless. Click here for Pure Java version (8902L/62K).

1  
!7
2  
3  
p-tt {
4  
  for (S listName, keysListName : mechMap_unquote("List => Mandatory keys list")) {
5  
    print("Checking: " + listName + " / " + keysListName);
6  
    L<S> mandatory = mL(keysListName);
7  
    print("Mandatory: " + l(mandatory));
8  
    SS entries = mechMapCI(listName);
9  
    print("Have: " + l(entries));
10  
    L<S> missing = asList(setMinusSet(asCISet(mandatory), keys(entries)));
11  
    if (empty(missing)) continue;
12  
    printAsciiHeading("Missing keys in: " + listName);
13  
    pnl(missing);
14  
    appendToMechList(barCombine(listName, "Missing keys"), missing);
15  
  }
16  
}

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: #1014531
Snippet name: Find missing keys in lists
Eternal ID of this version: #1014531/9
Text MD5: 328fd3f20d3005f212a2f311d0b1793c
Transpilation MD5: 81f0fd2dd33a894a69c7d35d270b9259
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-23 19:04:41
Source code size: 577 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 631 / 1204
Version history: 8 change(s)
Referenced in: [show references]