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

6
LINES

< > BotCompany Repo | #1028358 // listMultiIndexCI - create case-insensitive index for string list (as MultiMap<S, Int>)

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

Libraryless. Click here for Pure Java version (2804L/17K).

static MultiMap<S, Int> listMultiIndexCI(LS l) {
  MultiMap<S, Int> map = ciMultiMap();
  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: #1028358
Snippet name: listMultiIndexCI - create case-insensitive index for string list (as MultiMap<S, Int>)
Eternal ID of this version: #1028358/1
Text MD5: 8f7e54fc8fb76813cac5a3f70b56d434
Transpilation MD5: ca0bdd55b82022f6d0d0baedd521eed9
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:01:56
Source code size: 147 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 165 / 253
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)