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

9
LINES

< > BotCompany Repo | #1026585 // dm_setAll - set multiple fields in module

JavaX fragment (include)

sO dm_setAll(O moduleOrID, O... values) {
  failIfOddCount(values);
  for (int i = 0; i+1 < l(values); i += 2) {
    S field = (S) values[i];
    O value = values[i+1];
    dm_set(moduleOrID, field, value);
  }
  ret moduleOrID;
}

Author comment

Began life as a copy of #1008841

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026585
Snippet name: dm_setAll - set multiple fields in module
Eternal ID of this version: #1026585/1
Text MD5: bbe41670c621f33026fe4219596fc84e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-14 19:34:10
Source code size: 238 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 286 / 310
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)