Version française
Home     About     Download     Resources     Contact us    
Browse thread
Variants & structural ordering
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] Variants & structural ordering
On 2008-02-05, at 09:21, Damien Guichard wrote:

> The relation you wish is:
>
> Card(2) < ...< Card(10) < Jack < Queen < King < Ace

That's funny, depending on the suit I would wish one of the following:

   Card(7) < ... < Card(9) < Jack < Queen < King < Card(10) < Ace
   Card(7) < Card(8) < Queen < King < Card(10) < Ace < Card(9) < Jack

... And no fixed comparison function will ever be able to guess
whether you're comparing trumps.

-- the other Damien