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

8
LINES

< > BotCompany Repo | #1024028 // dm_resetField_union - set-merge lists

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

Libraryless. Click here for Pure Java version (2964L/19K).

static Collection mapMethodLike dm_resetField_union(S field, O mod) {
  mod = dm_getModule(mod);
  if (mod == null) null;
  Collection value = cast dm_originalFieldValue(field, mod);
  Collection l = cast dm_getOpt(mod, field);
  setAddAll(l, value);
  ret l;
}

Author comment

Began life as a copy of #1023947

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024028
Snippet name: dm_resetField_union - set-merge lists
Eternal ID of this version: #1024028/4
Text MD5: 9e27c492e6a476d91d826e0b1200b3bc
Transpilation MD5: 61bc2e1ae7694a1850f41ce49c42bb81
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-17 21:29:53
Source code size: 268 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 292
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)