Libraryless. Click here for Pure Java version (2970L/18K).
1 | static int[] intRangesToIntArray_startAndLength(Cl<IntRange> l) {
|
2 | int n = l(l); |
3 | int[] array = new[n*2]; |
4 | int i = 0; |
5 | fOr (IntRange r : l) {
|
6 | array[i++] = r.start; |
7 | array[i++] = r.length(); |
8 | } |
9 | ret array; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031649 |
| Snippet name: | intRangesToIntArray_startAndLength |
| Eternal ID of this version: | #1031649/2 |
| Text MD5: | 9fcccaf65ba5bd3c3ee65289cb438295 |
| Transpilation MD5: | 87fb59c320aa592c16f49b148824ab7d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-25 03:13:12 |
| Source code size: | 228 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 420 / 525 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |