I am wanting to retrieve ranges of the sequential numbers in a list of numbers. For example..


1
2
3
4
5
6 "1-6"
8
9
10 "8-10"
14
15
16 "14-16"


What is the best way to do this? Anyone have a quick solution?