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

8
LINES

< > BotCompany Repo | #1017344 // reverseLookupInMapToSets

JavaX fragment (include)

static <A, B> L<A> reverseLookupInMapToSets(Map<A, Set<B>> map, B b) {
  new L<A> l;
  for (A key, Set<B> value : map) {
    if (contains(value, b))
      l.add(key);
  }
  ret l;
}

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: 252 / 292
Version history: 1 change(s)
Referenced in: [show references]