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

10
LINES

< > BotCompany Repo | #1015109 // lookupAllAsCISet

JavaX fragment (include)

1  
static <A> Set<S> lookupAllAsCISet(Map<A, S> map, Collection<A> l) {
2  
  Set<S> out = ciSet();
3  
  if (l != null) for (A a : l)
4  
    addIfNotNull(out, map.get(a));
5  
  ret out; 
6  
}
7  
8  
static <A> Set<S> lookupAllAsCISet(Collection<A> l, Map<A, S> map) {
9  
  ret lookupAllAsCISet(map, l);
10  
}

Author comment

Began life as a copy of #1010182

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: #1015109
Snippet name: lookupAllAsCISet
Eternal ID of this version: #1015109/1
Text MD5: 1511e24b8d143a63332b114420f99ed4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-08 13:49:37
Source code size: 285 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 423
Referenced in: [show references]