[Haskell-cafe] List of numbers to list of ranges

Martin Erwig erwig at eecs.oregonstate.edu
Fri Dec 24 01:41:45 CET 2010

All the previous solutions seem to assume that the list of numbers is already sorted. In cases where this assumption cannot be made, an alternative solution is to simply insert the numbers into a diet.



More information about the Haskell-Cafe mailing list