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


< > BotCompany Repo | #1028173 - listIndex

JavaX fragment (include)

static <A> Map<A, Int> listIndex(L<A> l) {
  new Map<A, Int> map;
  for i over l:
    map.put(l.get(i), i);
  ret map;

Author comment

Began life as a copy of #1022842

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028173
Snippet name: listIndex
Eternal ID of this version: #1028173/2
Text MD5: d8659e8aed97e114947dfefe08cd1010
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-24 02:59:03
Source code size: 125 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 73 / 95
Version history: 1 change(s)
Referenced in: [show references]