Libraryless. Click here for Pure Java version (2737L/16K).
static <A> Map<A> setToSelfMap(Set<A> set) { Map<A> map = similarEmptyMap(set); fOr (A a : set) map.put(a, a); ret map; }
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: | 146 / 218 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |