Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1018742 // intsToIntRanges

JavaX fragment (include)

static L<IntRange> intsToIntRanges(L<Int> l) {
  new L<IntRange> out;
  for (int i = 0; i+1 < l(l); i += 2)
    out.add(intRangeFromTo(l.get(i), l.get(i+1)));
  ret out;
}

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: 287 / 343
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)