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

10
LINES

< > BotCompany Repo | #1009797 // mapWrap - wrap all objects in list in a class of your choice

JavaX fragment (include)

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;
}

Author comment

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: 394 / 401
Referenced in: [show references]