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

8
LINES

< > BotCompany Repo | #1017902 // trueFalseMapFromTwoLists

JavaX fragment (include)

static <A> Map<A, Bool> trueFalseMapFromTwoLists(Collection<A> trueList, Collection<A> falseList) {
  new Map<A, Bool> map;
  for (A a : unnull(trueList))
    map.put(a, true);
  for (A a : unnull(falseList))
    map.put(a, false);
  ret map;
}

Author comment

Began life as a copy of #1015752

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017902
Snippet name: trueFalseMapFromTwoLists
Eternal ID of this version: #1017902/1
Text MD5: 698614bb01ef97629cbf897d751b4689
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-20 11:04:57
Source code size: 251 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 290 / 320
Referenced in: [show references]