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

10
LINES

< > BotCompany Repo | #1031649 // intRangesToIntArray_startAndLength

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2970L/18K).

static int[] intRangesToIntArray_startAndLength(Cl<IntRange> l) {
  int n = l(l);
  int[] array = new[n*2];
  int i = 0;
  fOr (IntRange r : l) {
    array[i++] = r.start;
    array[i++] = r.length();
  }
  ret array;
}

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: 191 / 256
Version history: 1 change(s)
Referenced in: [show references]