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

7
LINES

< > BotCompany Repo | #1013905 // nIntersectionListSet

JavaX fragment (include)

static <A> int nIntersectionListSet(Collection<A> l, Set<A> set) {
  if (set == null) ret 0;
  int n = 0;
  for (A a : unnull(l))
    if (set.contains(a)) ++n;
  ret n;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013905
Snippet name: nIntersectionListSet
Eternal ID of this version: #1013905/2
Text MD5: 23e757bc51e53fcd8c12fa753212274b
Author: stefan
Category: javax / collections
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-14 19:55:38
Source code size: 176 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 308
Version history: 1 change(s)
Referenced in: [show references]