1 | static int[] intRangeEnds(L<IntRange> l) { |
2 | int n = l(l); |
3 | int[] a = new int[n]; |
4 | for i to n: a[i] = l.get(i).end; |
5 | ret a; |
6 | } |
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: | #1010186 |
Snippet name: | intRangeEnds |
Eternal ID of this version: | #1010186/1 |
Text MD5: | 86e8e1fc56797b4de07b000e17331839 |
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:32:43 |
Source code size: | 133 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 601 / 630 |
Referenced in: | [show references] |