Subj : Re: resolving a list of numbers to a range To : comp.programming From : Scott Moore Date : Thu Aug 18 2005 02:59 pm placid wrote: > Hi all, > > I was just if anyone knows a way to resolve a list of integers say > {1,2,3,4,5} into a range that is 1-5? > Humm. I note that your question has caused most people here to assume that the list had no gaps, because your example had no gaps. If your list can have gaps, then the answer is completely different, i.e., (1, 2, 3, 5, 6, 7) becomes 1-3, 5-7. .