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)

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

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: 320 / 331
Version history: 2 change(s)
Referenced in: [show references]