Libraryless. Click here for Pure Java version (2519L/16K).
1 | static int[] intPairsToIntArray(L<IntPair> l) {
|
2 | int n = l(l); |
3 | int[] array = new[n*2]; |
4 | for i to n: {
|
5 | IntPair p = l.get(i); |
6 | array[i*2] = p.a; |
7 | array[i*2+1] = p.b; |
8 | } |
9 | ret array; |
10 | } |
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: | 911 / 1114 |
| Referenced in: | [show references] |