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

10
LINES

< > BotCompany Repo | #1021823 // indexByFieldNotNull - synonym of indexByField

JavaX fragment (include)

1  
// does not store null values
2  
static Map indexByFieldNotNull(Iterable c, S field) {
3  
  ret indexByField(c, field);
4  
}
5  
6  
7  
8  
static Map mapMethodLike indexByFieldNotNull(S field, Iterable c) {
9  
  ret indexByField(field, c);
10  
}

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: #1021823
Snippet name: indexByFieldNotNull - synonym of indexByField
Eternal ID of this version: #1021823/1
Text MD5: cdc50edf78a7bdaa5a287a01d2582ddf
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-28 16:04:40
Source code size: 221 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 193 / 228
Referenced in: [show references]