1 | static int[] intRangeStarts(L<IntRange> l) { |
2 | int n = l(l); |
3 | int[] a = new int[n]; |
4 | for i to n: a[i] = l.get(i).start; |
5 | ret a; |
6 | } |
Began life as a copy of #1010186
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: | #1010187 |
Snippet name: | intRangeStarts |
Eternal ID of this version: | #1010187/1 |
Text MD5: | b656074e096e914c8a56724f8ad383ae |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-06 00:33:27 |
Source code size: | 137 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 509 / 523 |
Referenced in: | [show references] |