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

8
LINES

< > BotCompany Repo | #1017344 // reverseLookupInMapToSets

JavaX fragment (include)

1  
static <A, B> L<A> reverseLookupInMapToSets(Map<A, Set<B>> map, B b) {
2  
  new L<A> l;
3  
  for (A key, Set<B> value : map) {
4  
    if (contains(value, b))
5  
      l.add(key);
6  
  }
7  
  ret l;
8  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017344
Snippet name: reverseLookupInMapToSets
Eternal ID of this version: #1017344/2
Text MD5: b0a58ab7421e58e056358e158e4f9755
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-17 21:22:19
Source code size: 188 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 308 / 348
Version history: 1 change(s)
Referenced in: [show references]