Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1025000 - filterMapByValuePredicate

JavaX fragment (include)

static <A, B> Map<A, B> filterMapByValuePredicate(Map<A, B> map, IF1<B, Bool> pred) {
  ret filterMap(map, func(A key, B value) -> bool { pred.get(value) });
}

static <A, B> Map<A, B> filterMapByValuePredicate(IF1<B, Bool> pred, Map<A, B> map) {
  ret filterMapByValuePredicate(map, pred);
}

Author comment

Began life as a copy of #1024994

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1025000
Snippet name: filterMapByValuePredicate
Eternal ID of this version: #1025000/4
Text MD5: 69ea5a8a84bc25f14ef0fc5bdfd5f883
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-16 19:18:11
Source code size: 294 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 53 / 87
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1025000 & http://1025000.tinybrain.de