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

3
LINES

< > BotCompany Repo | #1026560 - mapToField - map list to objects of a class with one field set

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2410L/15K).

1  
static <A> L<A> mapMethodLike mapToField(S field, Class<A> c, Iterable l) {
2  
  ret map(l, value -> nu(c, field, value));
3  
}

download  show line numbers  debug dex   

Travelled to 3 computer(s): mqqgnosmbjvj, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026560
Snippet name: mapToField - map list to objects of a class with one field set
Eternal ID of this version: #1026560/1
Text MD5: c128da77fa726f37e4fdc41a21a0d1b7
Transpilation MD5: 4da6d147dd673f4e20e8cbb9284907e3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-12 20:16:11
Source code size: 123 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 27 / 47
Referenced in: [show references]

Formerly at http://tinybrain.de/1026560 & http://1026560.tinybrain.de