I recall discussion of something similar a while ago, but I cannot
find it...

I would like to consolidate the output of some arrays containing
sequences of (string) numbers like,

 3, 4, 5, 8, 10, 11, 15, 17

to an output like,

 3-5, 8, 10-11, 15, 17

Can someone point me in the right direction?

Thanks,
-- 
Bil