You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Chance type should be Comparable. It definitely should be comparable to itself, probably to Doubles, and possibly even to Ints (allowing one to say myChance > 0).
The text was updated successfully, but these errors were encountered:
It makes Chance comparable to itself, and also to integers. It doesn't make it comparable to Double (or Float, I guess) because I wasn't sure whether to compare Chance.value with the double, or Chance(approximating:) with the chance.
The
Chance
type should beComparable
. It definitely should be comparable to itself, probably toDouble
s, and possibly even toInt
s (allowing one to saymyChance > 0
).The text was updated successfully, but these errors were encountered: