Libraryless. Click here for Pure Java version (2737L/16K).
1 | static <A> Map<A> setToSelfMap(Set<A> set) { |
2 | Map<A> map = similarEmptyMap(set); |
3 | fOr (A a : set) |
4 | map.put(a, a); |
5 | ret map; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030967 |
Snippet name: | setToSelfMap (keys = values) |
Eternal ID of this version: | #1030967/1 |
Text MD5: | 7573f5d8a3fe01a275e76237ea1b0b11 |
Transpilation MD5: | d23bb1929821bd4f482e7e090b837228 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-16 16:20:36 |
Source code size: | 136 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 147 / 221 |
Referenced in: | [show references] |