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

9
LINES

< > BotCompany Repo | #1022494 // indexByCalculatedField_treeMap

JavaX fragment (include)

static TreeMap mapLike indexByCalculatedField_treeMap(O f, Iterable c) {
  new TreeMap map;
  if (c != null) for (O a : c) {
    O val = callF(f, a);
    if (val != null)
      map.put(val, a);
  }
  ret map;
}

Author comment

Began life as a copy of #1012274

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: #1022494
Snippet name: indexByCalculatedField_treeMap
Eternal ID of this version: #1022494/1
Text MD5: fa69bb5680ea9ef01e690af32a6c5afe
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-19 10:49:29
Source code size: 218 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 170 / 199
Referenced in: [show references]