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

8
LINES

< > BotCompany Repo | #1022155 // ccopyFields2_gen - for concepts

JavaX fragment (include)

sO ccopyFields2_gen(O x, O y, Iterable<S> fields) {
  if (x == null || y == null) ret y;
  for (S field : unnull(fields)) {
    O o = getOpt(x, field);
    call(y, '_setField, field, o);
  }
  ret y;
}

Author comment

Began life as a copy of #1022154

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: #1022155
Snippet name: ccopyFields2_gen - for concepts
Eternal ID of this version: #1022155/5
Text MD5: 980a082aaa8ea1f7b6663c0f01b4c4df
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-09 23:50:06
Source code size: 208 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 268 / 296
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)