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

6
LINES

< > BotCompany Repo | #1015839 // listToMapsWithSingleKey

JavaX fragment (include)

1  
static <A, B> L<Map<A, B>> listToMapsWithSingleKey(A key, Collection<B> l) {
2  
  new L<Map<A, B>> out;
3  
  for (B b : unnull(l))
4  
    out.add(litorderedmap(key, b));
5  
  ret out;
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015839
Snippet name: listToMapsWithSingleKey
Eternal ID of this version: #1015839/1
Text MD5: 80668050963bea09888bf0d41416a3f0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-28 17:00:59
Source code size: 178 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 487 / 491
Referenced in: [show references]