1 | sO dm_setAll(O moduleOrID, O... values) { |
2 | failIfOddCount(values); |
3 | for (int i = 0; i+1 < l(values); i += 2) { |
4 | S field = (S) values[i]; |
5 | O value = values[i+1]; |
6 | dm_set(moduleOrID, field, value); |
7 | } |
8 | ret moduleOrID; |
9 | } |
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: | 287 / 311 |
Referenced in: | [show references] |