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

6
LINES

< > BotCompany Repo | #1015752 // mapWithSingleValue

JavaX fragment (include)

static <A, B> Map<A, B> mapWithSingleValue(Iterable<A> l, B b) {
  new HashMap<A, B> map;
  if (l != null) for (A a : l)
    map.put(a, b);
  ret map;
}

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: #1015752
Snippet name: mapWithSingleValue
Eternal ID of this version: #1015752/2
Text MD5: 9b71746f3c1d684df8cb4ed722031f35
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-10 20:07:32
Source code size: 157 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 465 / 492
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1017902 - trueFalseMapFromTwoLists