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

9
LINES

< > BotCompany Repo | #1029933 // applyFunctionToValue - similar to applyFunctionToMapValue

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2512L/16K).

1  
static <A, B> Map<A, B> lambdaMapLike applyFunctionToValue(IF1<A> f, A key, Map<A, B> map) {
2  
  ret applyFunctionToMapValue(key, f, map);
3  
}
4  
5  
static <A, B> Map<A, B> lambdaMapLike applyFunctionToValue(IF1<A> f, Map<A, B> map, A... keys) {
6  
  fOr (A key : keys)
7  
    applyFunctionToValue(f, key, map);
8  
  ret map;
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1029933
Snippet name: applyFunctionToValue - similar to applyFunctionToMapValue
Eternal ID of this version: #1029933/4
Text MD5: 8b532ac109c10b7b05e7587eb152aa94
Transpilation MD5: 1d00efa36a31331709972937c05fa8ea
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-12 14:12:15
Source code size: 319 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 272
Version history: 3 change(s)
Referenced in: [show references]