WithNaN.hookOpCmp

double hookOpCmp(Lhs, Rhs)(Lhs lhs, Rhs rhs)

If lhs == WithNaN.defaultValue!Lhs, returns double.init. Otherwise, has the same semantics as the default comparison.

Parameters

lhsThe left-hand side of the comparison (Lhs is the first argument to Checked)
rhsThe right-hand side of the comparison

Returns

double.init if lhs == WitnNaN.defaultValue!Lhs, -1.0 if lhs < rhs, 0.0 if lhs == rhs, 1.0 if lhs > rhs.