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

6
LINES

< > BotCompany Repo | #1022842 // listIndexCI - create case-insensitive index for string list (as Map<S, Int>)

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

Libraryless. Click here for Pure Java version (2530L/16K).

static Map<S, Int> listIndexCI(LS l) {
  Map<S, Int> map = ciMap();
  for i over l:
    map.put(l.get(i), i);
  ret map;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022842
Snippet name: listIndexCI - create case-insensitive index for string list (as Map<S, Int>)
Eternal ID of this version: #1022842/3
Text MD5: ef57840605e3bb9d2e7fca500f148dd9
Transpilation MD5: f0c3093043e9957d9e92cd3c09fb3d3a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-13 13:00:10
Source code size: 127 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 256 / 353
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1028173 - listIndex
#1028358 - listMultiIndexCI - create case-insensitive index for string list (as MultiMap<S, Int>)