From: David Alan Black Date: 2002-07-07T19:23:01+09:00 Subject: Re: Collapsing array output Hi -- On Sun, 7 Jul 2002, Bil Kleb wrote: > 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? This was the subject of a little coding puzzle/challenge. At you'll find a bunch of solutions. (Anyone want to create a CodingChallenge0002? :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav