static <A, B> O[] pairsToParams(Collection<Pair<A, B>> l) { O[] array = new O[l(l)*2]; Iterator<Pair<A, B>> it = iterator(l); for (int i = 0; i < l(array); i += 2) { Pair p = it.next(); array[i] = p.a; array[i+1] = p.b; } ret array; }
Began life as a copy of #1006543
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1017002 |
| Snippet name: | pairsToParams |
| Eternal ID of this version: | #1017002/2 |
| Text MD5: | 57af7bc4b3061d9893884e5fe304bf9b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-10 15:31:09 |
| Source code size: | 265 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 609 / 652 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |