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

13
LINES

< > BotCompany Repo | #1028980 - msmGetAllAsSet

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2810L/17K).

static <A, B> Set<B> msmGetAllAsSet(MultiSetMap<A, B> mm, A... keys) {
  new Set<B> l;
  for (A key : keys)
    l.addAll(mm.get(key));
  ret l;
}

static <A, B> Set<B> msmGetAllAsSet(MultiSetMap<A, B> mm, Iterable<A> keys) {
  new Set<B> l;
  fOr (A key : keys)
    l.addAll(mm.get(key));
  ret l;
}

Author comment

Began life as a copy of #1028974

download  show line numbers  debug dex   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028980
Snippet name: msmGetAllAsSet
Eternal ID of this version: #1028980/1
Text MD5: 9b51a78effa09a920de9970f28ef87ff
Transpilation MD5: 5ea9e006c8ed0425515b1c6ad13e7d8b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-15 02:17:57
Source code size: 311 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 5 / 17
Referenced in: [show references]

Formerly at http://tinybrain.de/1028980 & http://1028980.tinybrain.de