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

6
LINES

< > BotCompany Repo | #1031510 // removeFromTwoCollections

JavaX fragment (include)

static <A> bool removeFromTwoCollections(Cl<A> c1, Cl<A> c2, A a) {
  bool change;
  if (c1 != null && c1.remove(a)) set change;
  if (c2 != null && c2.remove(a)) set change;
  ret change;
}

Author comment

Began life as a copy of #1031509

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031510
Snippet name: removeFromTwoCollections
Eternal ID of this version: #1031510/1
Text MD5: f66786e09b69f3837d65e5998474a9f6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-17 05:03:26
Source code size: 195 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 170 / 196
Referenced in: [show references]