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

7
LINES

< > BotCompany Repo | #1014561 // mmGetEither

JavaX fragment (include)

1  
static <A, B> L<B> mmGetEither(MultiMap<A, B> mm, A... keys) {
2  
  for (A key : keys) {
3  
    L<B> l = mm.get(key);
4  
    if (nempty(l)) ret l;
5  
  }
6  
  ret emptyList();
7  
}

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: #1014561
Snippet name: mmGetEither
Eternal ID of this version: #1014561/1
Text MD5: e0c389d266e57933fb28cedc7614ec2a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-24 00:52:45
Source code size: 168 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 394 / 424
Referenced in: [show references]