Libraryless. Click here for Pure Java version (4596L/26K).
1 | static <A, B> Map<A, B> filterMapByValuePredicate(Map<A, B> map, IF1<B, Bool> pred) {
|
2 | ret filterMap(map, (key, value) -> pred.get(value)); |
3 | } |
4 | |
5 | static <A, B> Map<A, B> filterMapByValuePredicate(IF1<B, Bool> pred, Map<A, B> map) {
|
6 | ret filterMapByValuePredicate(map, pred); |
7 | } |
Began life as a copy of #1024994
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1025000 |
| Snippet name: | filterMapByValuePredicate |
| Eternal ID of this version: | #1025000/5 |
| Text MD5: | eb42dca370f64898cdf9fed06a6f8d9a |
| Transpilation MD5: | 8fd0757b9c486b5a00e262e229f3c9a7 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-28 22:58:28 |
| Source code size: | 281 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 493 / 638 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |