static L group(Class theClass, L<S> fields, L data) { new L l; for (int i = 0; i < l(data); i += l(fields)) { O o = newObject(theClass); for (int j = 0; j < min(l(fields), l(data)-i); j++) { S field = fields.get(j); O item = data.get(i+j); setOpt(o, field, item); } l.add(o); } ret l; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1001871 |
| Snippet name: | group function - whatever this does :-D |
| Eternal ID of this version: | #1001871/2 |
| Text MD5: | 57501c9e55387480225f2f6e81b5145b |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-07-23 17:25:41 |
| Source code size: | 340 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 907 / 1165 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |