1 | static <A> void cppCopy(Collection<A> a, List<A> b) { |
2 | ListIterator<A> it = b.listIterator(); |
3 | for (A x : a) { |
4 | if (!it.hasNext()) fail("unexpected end of collection"); |
5 | it.next(); |
6 | it.set(x); |
7 | } |
8 | } |
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: | #1002099 |
Snippet name: | cppCopy |
Eternal ID of this version: | #1002099/1 |
Text MD5: | 1c34edc7219918c4def31d8d988140e3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-12-18 17:11:55 |
Source code size: | 216 bytes / 8 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 620 / 856 |
Referenced in: | [show references] |