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).

static <A> bool csyncAdd(Concept concept, Cl<A> c, A b) {
  if (!syncAdd(c, b)) false;
  ret true with cchange(concept);
}

static <A> void csyncAdd(Concept concept, L<A> l, int idx, A b) {
  if (l == null) ret;
  syncAdd(l, idx, b);
  cchange(concept);
}

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: 189 / 259
Version history: 3 change(s)
Referenced in: [show references]