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

6
LINES

< > BotCompany Repo | #1021279 // countNotContainedIn

JavaX fragment (include)

1  
static <A> int countNotContainedIn(Iterable<A> l, final Set<A> set) {
2  
  int n = 0;
3  
  if (l != null) for (A a : l)
4  
    if (!contains(set, a)) ++n;
5  
  ret n;
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1021279
Snippet name: countNotContainedIn
Eternal ID of this version: #1021279/1
Text MD5: 6543e8719eb8eed0f4cc7ebe8a41ed1f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-06 15:19:37
Source code size: 161 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 275 / 306
Referenced in: [show references]