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

15
LINES

< > BotCompany Repo | #1013991 // nonNulls - synonym of withoutNulls & mapNonNulls

JavaX fragment (include)

1  
static <A> L<A> nonNulls(Iterable<A> l) {
2  
  ret withoutNulls(l);
3  
}
4  
5  
static <A> L<A> nonNulls(A[] l) {
6  
  ret withoutNulls(l);
7  
}
8  
9  
static <A, B> Map<A, B> nonNulls(Map<A, B> map) {
10  
  ret withoutNulls(map);
11  
}
12  
13  
static <A, B> L<B> nonNulls(Iterable<A> l, IF1<A, B> f) {
14  
  ret mapNonNulls(l, f);
15  
}

Author comment

Began life as a copy of #1012497

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013991
Snippet name: nonNulls - synonym of withoutNulls & mapNonNulls
Eternal ID of this version: #1013991/6
Text MD5: a83d85aef464a4b9cf93eb096b84f404
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-12 01:28:04
Source code size: 304 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 462 / 538
Version history: 5 change(s)
Referenced in: [show references]