Libraryless. Click here for Pure Java version (2519L/16K).
static int[] intPairsToIntArray(L<IntPair> l) { int n = l(l); int[] array = new[n*2]; for i to n: { IntPair p = l.get(i); array[i*2] = p.a; array[i*2+1] = p.b; } ret array; }
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: | #1028794 |
| Snippet name: | intPairsToIntArray |
| Eternal ID of this version: | #1028794/1 |
| Text MD5: | 028db6ff68ac5be5e67b01c6ea7b5c3e |
| Transpilation MD5: | f4dc11b657e767b23a4900a4bfd63a44 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-08 23:27:57 |
| Source code size: | 205 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 956 / 1159 |
| Referenced in: | [show references] |