1 | static <A, B> L<A> keysForValue(Map<A, B> map, B value) { |
2 | new L<A> l; |
3 | for (A key : keys(map)) |
4 | if (eq(map.get(key), value)) |
5 | l.add(key); |
6 | ret l; |
7 | } |
Began life as a copy of #1002303
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003000 |
Snippet name: | keysForValue - find all keys for a value |
Eternal ID of this version: | #1003000/2 |
Text MD5: | 5b5980a3f29f54115b55fcd107602ca9 |
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:45:55 |
Source code size: | 165 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 682 / 645 |
Version history: | 1 change(s) |
Referenced in: | [show references] |