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

17
LINES

< > BotCompany Repo | #1005068 - deleteConcepts

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

Libraryless. Click here for Pure Java version (14796L/95K).

1  
svoid deleteConcepts(Cl conceptsOrIDs) {
2  
  db_mainConcepts().deleteConcepts(asList(conceptsOrIDs));
3  
}
4  
5  
static <A extends Concept> L<A> nuLike deleteConcepts(Concepts cc default db_mainConcepts(), Class<A> c, O... params) {
6  
  L<A> l = asList(findConceptsWhere(cc, c, params));
7  
  deleteConcepts(l);
8  
  ret l;
9  
}
10  
11  
static <A extends Concept> void deleteConcepts(Concepts cc default db_mainConcepts(), Class<A> c, IPred<A> pred) {
12  
  deleteConcepts(filter(list(cc, c), pred));
13  
}
14  
15  
static L<Concept> deleteConcepts(Concepts cc) {
16  
  ret deleteConcepts(cc, Concept);
17  
}

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/9
Text MD5: 02ef18367129b30ccffd5368e8cb6fb4
Transpilation MD5: e986ff9ae332e737285775467c9d56c8
Author: stefan
Category: javax / conceptsa
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-19 16:41:01
Source code size: 574 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 446 / 521
Version history: 8 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1005068 & http://1005068.tinybrain.de