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

7
LINES

< > BotCompany Repo | #1024991 // iotaKeys_str - list to map, keys = "1", "2", "3", ...

JavaX fragment (include)

1  
static <A> Map<S, A> iotaKeys_str(Cl<A> l) {
2  
  new LinkedHashMap<S, A> map;
3  
  int i = 0;
4  
  fOr (A a : l)
5  
    map.put(str(++i), a);
6  
  ret map;
7  
}

Author comment

Began life as a copy of #1024990

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024991
Snippet name: iotaKeys_str - list to map, keys = "1", "2", "3", ...
Eternal ID of this version: #1024991/1
Text MD5: 59b5b8c12a4526e5d134d89cf2bc3c92
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-31 23:28:33
Source code size: 149 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 233 / 274
Referenced in: [show references]