static <A> L<A> mapWrap(Iterable l, Class<A> wrapper) { ret map(wrapper, l); } static <A> L<A> mapWrap(Class<A> wrapper, Iterable l) { new L x; for (O o : unnull(l)) x.add(nuObject(wrapper, o)); ret x; }
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: | 645 / 660 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |