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

7
LINES

< > BotCompany Repo | #1021737 // mapKeyAndValueMethod

JavaX fragment (include)

static Map mapKeyAndValueMethod(Iterable l, fS keyMethod, fS valueMethod) {
  if (l == null) null;
  new Map map;
  for (O o : l)
    map.put(callOpt(o, keyMethod), callOpt(o, valueMethod));
  ret map;
}

Author comment

Began life as a copy of #1006772

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021737
Snippet name: mapKeyAndValueMethod
Eternal ID of this version: #1021737/1
Text MD5: c1c0fc22b67b011707f81dd159d73b49
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-25 13:19:08
Source code size: 209 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 323
Referenced in: [show references]