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

9
LINES

< > BotCompany Repo | #1031731 // fixConceptIDs

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (15920L/104K).

svoid fixConceptIDs(Concepts cc default db_mainConcepts()) {
  if (cc == null) ret;
  for (long id, Concept c : cc.concepts) {
    if (id == 0) continue with print("0 concept key: " + c);
    if (c.id == id) continue;
    print("Fixing concept ID: " + c.id + " => " + id + ": " + c);
    c.id = id;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031731
Snippet name: fixConceptIDs
Eternal ID of this version: #1031731/2
Text MD5: 89d5da57f68a23d91ecffb37529bebde
Transpilation MD5: 7944937f517abd507375f0303869d01c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 01:08:06
Source code size: 312 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 254
Version history: 1 change(s)
Referenced in: [show references]