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

8
LINES

< > BotCompany Repo | #1021324 // mapNuObject - map(), but calls a class's constructor instead of a function

JavaX fragment (include)

static <A> L<A> mapNuObject(Iterable l, Class<A> c) { ret mapNuObject(c, l); }

static <A> L<A> nuLike mapNuObject(Class<A> c, Iterable l) {
  L x = emptyList(l);
  if (l != null) for (O o : l)
    x.add(nuObject(c, o));
  ret x;
}

Author comment

Began life as a copy of #1003239

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021324
Snippet name: mapNuObject - map(), but calls a class's constructor instead of a function
Eternal ID of this version: #1021324/2
Text MD5: 3da134ed0bd0c8cee6a7295418cd79bb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-08 17:53:21
Source code size: 238 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 184 / 207
Version history: 1 change(s)
Referenced in: [show references]