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

7
LINES

< > BotCompany Repo | #1021486 // keysForValuesOtherThan - find all keys for all other values

JavaX fragment (include)

1  
static <A, B> L<A> keysForValuesOtherThan(Map<A, B> map, B value) {
2  
  new L<A> l;
3  
  for (A key : keys(map))
4  
    if (neq(map.get(key), value))
5  
      l.add(key);
6  
  ret l;
7  
}

Author comment

Began life as a copy of #1003000

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: #1021486
Snippet name: keysForValuesOtherThan - find all keys for all other values
Eternal ID of this version: #1021486/3
Text MD5: d3742ff2fabc1047b9772a878dd89eb5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-15 00:47:28
Source code size: 176 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 322 / 333
Version history: 2 change(s)
Referenced in: [show references]