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)

static <A> L<A> nonNulls(Iterable<A> l) {
  ret withoutNulls(l);
}

static <A> L<A> nonNulls(A[] l) {
  ret withoutNulls(l);
}

static <A, B> Map<A, B> nonNulls(Map<A, B> map) {
  ret withoutNulls(map);
}

static <A, B> L<B> nonNulls(Iterable<A> l, IF1<A, B> f) {
  ret mapNonNulls(l, f);
}

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: 382 / 450
Version history: 5 change(s)
Referenced in: [show references]