1 | static int copyConceptFields(Concept a, Concept b) { |
2 | int changes = 0; |
3 | for (S field : conceptFields(a)) |
4 | changes += cset(b, field, cget(a, field)); |
5 | ret changes; |
6 | } |
7 | |
8 | static int copyConceptFields(Concept a, Concept b, S... fields) { |
9 | int changes = 0; |
10 | for (S field : fields) |
11 | changes += cset(b, field, cget(a, field)); |
12 | ret changes; |
13 | } |
Began life as a copy of #1005041
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005493 |
Snippet name: | copyConceptFields - returns number of fields changed |
Eternal ID of this version: | #1005493/4 |
Text MD5: | 136f4bf33b91148c2b329a0efa7995ed |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-24 13:07:24 |
Source code size: | 357 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 563 / 575 |
Version history: | 3 change(s) |
Referenced in: | [show references] |