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

10
LINES

< > BotCompany Repo | #1029842 // csyncAdd - add & synchronize on collection in a concept

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

Libraryless. Click here for Pure Java version (13207L/90K).

1  
static <A> bool csyncAdd(Concept concept, Cl<A> c, A b) {
2  
  if (!syncAdd(c, b)) false;
3  
  ret true with cchange(concept);
4  
}
5  
6  
static <A> void csyncAdd(Concept concept, L<A> l, int idx, A b) {
7  
  if (l == null) ret;
8  
  syncAdd(l, idx, b);
9  
  cchange(concept);
10  
}

Author comment

Began life as a copy of #1016979

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1029842
Snippet name: csyncAdd - add & synchronize on collection in a concept
Eternal ID of this version: #1029842/4
Text MD5: 2cb06c72889badba19b8bcd2eba9b3d6
Transpilation MD5: a786f281c386acffd9c557b117065a5d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-22 12:48:14
Source code size: 264 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 190 / 260
Version history: 3 change(s)
Referenced in: [show references]