[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.

	eecs.oregonstate.edu/~erwig/papers/abstracts.html#JFP98
	eecs.oregonstate.edu/~erwig/diet


--
Martin




More information about the Haskell-Cafe mailing list