static L intArrayToIntRanges_startAndLength(int[] a) { int n = l(a)/2; L out = emptyList(n); fOr i to n: out.add(intRangeWithLength(array[i*2], array[i*2+1])); ret out; }