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

15
LINES

< > BotCompany Repo | #1019882 // filterKeys - synonym of filterMapByFunctionOnKey

JavaX fragment (include)

1  
static <A, B> Map<A, B> filterKeys(Map<A, B> map, O f) {
2  
  ret filterMapByFunctionOnKey(map, f);
3  
}
4  
5  
static <A, B> Map<A, B> filterKeys(O f, Map<A, B> map) {
6  
  ret filterMapByFunctionOnKey(f, map);
7  
}
8  
9  
static <A, B> Map<A, B> lambdaMapLike filterKeys(IPred<A> f, Map<A, B> map) {
10  
  ret filterMapByFunctionOnKey((O) f, map);
11  
}
12  
13  
static <A, B> Map<A, B> filterKeys(Map<A, B> map, IPred<A> f) {
14  
  ret filterKeys(f, map);
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019882
Snippet name: filterKeys - synonym of filterMapByFunctionOnKey
Eternal ID of this version: #1019882/3
Text MD5: 997307ceb1201255cc51065a0394a035
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-16 10:19:16
Source code size: 430 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 337 / 387
Version history: 2 change(s)
Referenced in: [show references]