1 | static <A> L<A> mapWrap(Iterable l, Class<A> wrapper) { |
2 | ret map(wrapper, l); |
3 | } |
4 | |
5 | static <A> L<A> mapWrap(Class<A> wrapper, Iterable l) { |
6 | new L x; |
7 | for (O o : unnull(l)) |
8 | x.add(nuObject(wrapper, o)); |
9 | ret x; |
10 | } |
Began life as a copy of #1003239
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: | #1009797 |
Snippet name: | mapWrap - wrap all objects in list in a class of your choice |
Eternal ID of this version: | #1009797/1 |
Text MD5: | 178d47fbb68d42a255af77254454f533 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-17 18:00:50 |
Source code size: | 225 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 456 / 467 |
Referenced in: | [show references] |