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).

!7

p-tt {
  for (S listName, keysListName : mechMap_unquote("List => Mandatory keys list")) {
    print("Checking: " + listName + " / " + keysListName);
    L<S> mandatory = mL(keysListName);
    print("Mandatory: " + l(mandatory));
    SS entries = mechMapCI(listName);
    print("Have: " + l(entries));
    L<S> missing = asList(setMinusSet(asCISet(mandatory), keys(entries)));
    if (empty(missing)) continue;
    printAsciiHeading("Missing keys in: " + listName);
    pnl(missing);
    appendToMechList(barCombine(listName, "Missing keys"), missing);
  }
}

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: 484 / 932
Version history: 8 change(s)
Referenced in: [show references]