Libraryless. Click here for Pure Java version (2478L/16K).
static <A, B> L<A> keysForValuePredicate(Map<A, B> map, IF1<B, Bool> pred) { new L<A> l; if (map != null) for (A key, B value : map) if (pred.get(value)) l.add(key); ret l; }
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: | 498 / 612 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |