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

6
LINES

< > BotCompany Repo | #1024756 // pairsToCIMap - make ciMap from collection of pairs

JavaX fragment (include)

static <B> Map<S, B> pairsToCIMap(Collection<? extends Pair<S, B>> l) {
  Map<S, B> map = ciMap();
  if (l != null) for (Pair<S, B> p : l)
    map.put(p.a, p.b);
  ret map;
}

Author comment

Began life as a copy of #1009583

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024756
Snippet name: pairsToCIMap - make ciMap from collection of pairs
Eternal ID of this version: #1024756/1
Text MD5: 8cd6db2b2db4a44a031918d45d02098e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-24 17:06:39
Source code size: 179 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 225 / 266
Referenced in: [show references]