rangesFromPositions

fun rangesFromPositions(positions: List<Int>): List<Range<Int>>?