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

13
LINES

< > BotCompany Repo | #1001995 // lookupIgnoreCase

JavaX fragment (include)

static <A> A lookupIgnoreCase(Map<S, A> map, S key) {
  for (S s : map.keySet())
    if (eqic(s, key))
      ret map.get(s);
  null;
}

static <A> L<A> lookupIgnoreCase(MultiMap<S, A> map, S key) {
  for (S s : map.keySet())
    if (eqic(s, key))
      ret map.get(s);
  ret litlist();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001995
Snippet name: lookupIgnoreCase
Eternal ID of this version: #1001995/1
Text MD5: dea36719547fc6df952b92815b3c9ab0
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-20 22:25:03
Source code size: 299 bytes / 13 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 555 / 855
Referenced in: [show references]