1 | static L<IntRange> intsToIntRanges(L<Int> l) { |
2 | new L<IntRange> out; |
3 | for (int i = 0; i+1 < l(l); i += 2) |
4 | out.add(intRangeFromTo(l.get(i), l.get(i+1))); |
5 | ret out; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018742 |
Snippet name: | intsToIntRanges |
Eternal ID of this version: | #1018742/1 |
Text MD5: | 252178fffbd7fb3f92ff62b50f0bc639 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-12 15:13:16 |
Source code size: | 176 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 288 / 345 |
Referenced in: | [show references] |