Libraryless. Click here for Pure Java version (2584L/16K).
1 | static <A, B, C> Map<B, C> lambdaMapLike safeMapToMap(IF1<A, Pair<B, C>> f, Iterable<A> l) { |
2 | ret mapToMap(f, l); |
3 | } |
4 | |
5 | static <A, B, C> Map<B, C> safeMapToMap(Iterable<A> l, IF1<A, Pair<B, C>> f) { |
6 | ret mapToMap(f, l); |
7 | } |
8 | |
9 | static <A, B, C, D> Map<C, D> safeMapToMap(IF2<A, B, Pair<C, D>> f, Map<A, B> m) { |
10 | ret mapToMap(f, m); |
11 | } |
Began life as a copy of #1024294
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030227 |
Snippet name: | safeMapToMap - safe version to mapToMap |
Eternal ID of this version: | #1030227/1 |
Text MD5: | 0235d48d909316bebcb04e97335c6af5 |
Transpilation MD5: | 7255b41be3e6ea9ca66e555373e3e6f4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-17 21:54:47 |
Source code size: | 338 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 195 / 256 |
Referenced in: | [show references] |