1 | static L collectNotNull(Iterable c, S field) { |
2 | new L l; |
3 | fOr (O a : c) |
4 | addIfNotNull(l, getOpt(a, field)); |
5 | ret l; |
6 | } |
7 | |
8 | static L mapMethodLike collectNotNull(S field, Iterable c) { |
9 | ret collectNotNull(c, field); |
10 | } |
Began life as a copy of #1002318
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dpqxeycirhfy, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010440 |
Snippet name: | collectNotNull |
Eternal ID of this version: | #1010440/5 |
Text MD5: | 1ab45c2ad6cf73feb02cc3f75ae80a0d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-11-18 22:26:22 |
Source code size: | 228 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 387 / 456 |
Version history: | 4 change(s) |
Referenced in: | [show references] |