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

19
LINES

< > BotCompany Repo | #1005068 // deleteConcepts

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

Libraryless. Click here for Pure Java version (20167L/122K).

svoid deleteConcepts(Cl conceptsOrIDs) {
  db_mainConcepts().deleteConcepts(asList(conceptsOrIDs));
}

static <A extends Concept> L<A> nuLike deleteConcepts(Concepts cc default db_mainConcepts(), Class<A> c, O... params) {
  L<A> l = asList(findConceptsWhere(cc, c, params));
  deleteConcepts(l);
  ret l;
}

static <A extends Concept> L<A> deleteConcepts(Concepts cc default db_mainConcepts(), Class<A> c, IPred<A> pred) {
  var l = filter(list(cc, c), pred);
  deleteConcepts(l);
  ret l;
}

static L<Concept> deleteConcepts(Concepts cc) {
  ret deleteConcepts(cc, Concept);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1005068
Snippet name: deleteConcepts
Eternal ID of this version: #1005068/10
Text MD5: 87f117a1ddfa6d6bf324158e947f214d
Transpilation MD5: 8ef36a5e4ec148f06b0ac46912a01484
Author: stefan
Category: javax / conceptsa
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-24 00:24:37
Source code size: 598 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 549 / 657
Version history: 9 change(s)
Referenced in: [show references]