1 | static <A> Map<A, Int> listIndex(L<A> l) { |
2 | new Map<A, Int> map; |
3 | for i over l: |
4 | map.put(l.get(i), i); |
5 | ret map; |
6 | } |
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: | 226 / 258 |
Version history: | 1 change(s) |
Referenced in: | [show references] |