OK, so it's Friday, it's been a long week, and I just can't seem to get into coding this seemingly simple function. Anyone care to help out?
Given: List of numbers, sorted lowest->highest, not necessarily sequential.
Needed: String of said numbers, compacting the sequential ones.
Example:
This list: '(1 3 4 5 8 10 11 14 15 16)
would return this string: "1,3-5,8,10,11,14-16"
Thanks