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

24
LINES

< > BotCompany Repo | #1005398 // Delete concepts from a program within an ID range

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

Libraryless. Click here for Pure Java version (5015L/33K/110K).

!752

concepts.

sS progID = "#1005389";
static long minID = 37, maxID = 1000;
sbool doIt = true;

p {
  loadConceptsFrom(progID);
  int n = 0;
  for (Concept c : allConcepts()) {
    print(c.id + " " + dynamicClassName(c) + " " + className(c));
    if (c.id >= minID && c.id <= maxID) {
      c.delete();
      ++n;
    }
  }
  //print(structure(concepts));
  if (n != 0 && doIt) {
    print(n(n, "concepts") + " deleted, saving back to " + progID);
    saveConceptsBack();
  }
}

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: #1005398
Snippet name: Delete concepts from a program within an ID range
Eternal ID of this version: #1005398/1
Text MD5: a8bf44cd9299ab99fb33acbda730ca3d
Transpilation MD5: 65979110d3c516ef822a6745facac49e
Author: stefan
Category: javax / concepts
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-14 01:39:20
Source code size: 503 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 492 / 550
Referenced in: [show references]