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

6
LINES

< > BotCompany Repo | #1030967 // setToSelfMap (keys = values)

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

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: 144 / 216
Referenced in: [show references]