1 | static <A> L<A> mapNuObject(Iterable l, Class<A> c) { ret mapNuObject(c, l); } |
2 | |
3 | static <A> L<A> nuLike mapNuObject(Class<A> c, Iterable l) { |
4 | L x = emptyList(l); |
5 | if (l != null) for (O o : l) |
6 | x.add(nuObject(c, o)); |
7 | ret x; |
8 | } |
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: | 255 / 279 |
Version history: | 1 change(s) |
Referenced in: | [show references] |