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

8
LINES

< > BotCompany Repo | #1021834 // keysWithMultiValues

JavaX fragment (include)

static <A, B extends Collection> L<A> keysWithMultiValues(Map<A, B> map) {
  new L<A> l;
  if (map != null) for (A key, B value : map) {
    if (l(value) > 1)
      l.add(key);
  }
  ret l;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021834
Snippet name: keysWithMultiValues
Eternal ID of this version: #1021834/2
Text MD5: b7e87e5d50317334a212b3d7622d9ebe
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-02 21:21:14
Source code size: 198 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 308 / 333
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)