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)

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

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: 232 / 273
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)