Sorting floating-point values, and NaN
Vladimir Panteleev
vladimir at thecybershadow.net
Tue Nov 12 14:17:08 PST 2013
On Tuesday, 12 November 2013 at 21:15:39 UTC, Andrei Alexandrescu
wrote:
> We can make that work if we insert the tests at the end of a
> run of equivalent values.
I've thought about this as well, but then there are cases like...
[4, 5, NaN, 3, NaN, 5, 6]
"5, NaN, 3, NaN, 5" is a run of equivalent values as long as
neighboring pairs are concerned.
> The point here is that we should work together on an innovative
> solution. Getting bogged in the "there's a problem with the
> language here" mindset prevents the forming of good ideas.
Agreed.
More information about the Digitalmars-d
mailing list