[Haskell-cafe] lexicographic order
Bulat Ziganshin
bulat.ziganshin at gmail.com
Sun Mar 30 18:20:26 EDT 2008
Hello Bulat,
Monday, March 31, 2008, 1:16:35 AM, you wrote:
> if you can compare chars and 'a' < 'b', then *lists* of chars compared
> in lexicographic order will be
> "aaa" < "aab"
> "aab" < "aba"
> "baa" < "abb"
as it was mentioned by Niklas Broberg, the last sentence should be reversed:
"abb" < "baa"
sorry for +1 confusion :)
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list