Unfortunately, nan is defined to not be less than or greater than any number and sorting works only when you supply a transitive predicate and it seems difficult to change either of these things.
Robby On Sat, Nov 21, 2015 at 3:10 AM, 'John Clements' via dev-redirect <[email protected]> wrote: > Currently, a +nan.0 does an interesting thing to sorting: > > #lang racket > > (sort '(1 3 5 +nan.0 2 4 6) >) > > yields > > '(5 3 1 +nan.0 6 4 2) > > Is this the answer we want? > > -- > You received this message because you are subscribed to the Google Groups > "Racket Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-dev/675231ca-96b0-4039-94e4-7a744278c586%40mtasv.net. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-dev/CAL3TdOM3%3D%2BTJGkAZFKAagfN5OiekC8c%2BtNpmt%3DrQZJS8ovtWHA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
