Libraryless. Click here for Pure Java version (2478L/16K).
1 | static <A, B> L<A> keysForValuePredicate(Map<A, B> map, IF1<B, Bool> pred) { |
2 | new L<A> l; |
3 | if (map != null) for (A key, B value : map) |
4 | if (pred.get(value)) |
5 | l.add(key); |
6 | ret l; |
7 | } |
Began life as a copy of #1024993
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024998 |
Snippet name: | keysForValuePredicate - TODO: merge with keysWithValueThat |
Eternal ID of this version: | #1024998/3 |
Text MD5: | cb7d71ad78c1b99542dea9c937c56f26 |
Transpilation MD5: | a69c3065d7ce7893f1d8ee721785b280 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-05 23:01:27 |
Source code size: | 196 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 296 / 364 |
Version history: | 2 change(s) |
Referenced in: | [show references] |