[Haskell-beginners] Question about Ord for lists and multi-dimensional lists

Kim-Ee Yeoh ky3 at atamo.com
Mon Mar 3 07:25:12 UTC 2014


On Mon, Mar 3, 2014 at 12:33 PM, Tyler Huffman <tyler.huffman at tylerh.org>wrote:

> Could anybody shed some light on what I'm seeing?


This is the standard lex order you see in dictionaries.

The word "a" is followed by "aardvark" which is in turn followed by "an".

Similarly [1] is followed by [1,2] which is in turn followed by [1,2,4].

(It's possible to override the order.)

-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140303/8c26e7d7/attachment.html>


More information about the Beginners mailing list