seqToIntervals: Gets all contigous intervals of a vector of indices
Description
Gets all contigous intervals of a vector of indices.Usage
## S3 method for class 'default}(idx, ...)':
seqToIntervalsundefined
- idx{A
vector of integer indices.}
  - ...{Not used.}
[object Object]
print(seqToIntervals(1:10))  # [1 10]
  print(seqToIntervals(c(1:10, 15:18, 20)))  # [1 10; 15 18; 20 20]
attribute