Libraryless. Click here for Pure Java version (2711L/18K/61K).
1 | !752 |
2 | |
3 | p { |
4 | Map map = cast rpc("Statements DB", "getIDsAndNames"); |
5 | MultiMap mm = reverseMapAsMultiMap(map); |
6 | mm = keysWithMultipleValuesOnly(mm); |
7 | print("Duplicates:"); |
8 | psl(mm.asMap()); |
9 | print("Delete?"); |
10 | if (isYes(readLine())) { |
11 | L<Long> toDelete = map("first", values(mm.asMap())); |
12 | print("Deleting: " + struct(toDelete)); |
13 | rpc("Statements DB", "deleteConcepts", toDelete); |
14 | print("Done?!"); |
15 | } |
16 | } |
17 | |
18 | please include function first. |
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: | #1004752 |
Snippet name: | Clean Up Statements DB |
Eternal ID of this version: | #1004752/1 |
Text MD5: | 62f6c355bb465cc298e3a73e5c79d88f |
Transpilation MD5: | b6595b75ab4f2013cdb4c513a59b2374 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-28 22:44:36 |
Source code size: | 469 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 526 / 595 |
Referenced in: | [show references] |