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

6
LINES

< > BotCompany Repo | #1015839 // listToMapsWithSingleKey

JavaX fragment (include)

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

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: 373 / 381
Referenced in: [show references]