Open Samasaur1 opened 2 years ago
30c71fc5f9884cddbccc9166349e846f35e21dc5 starts to address this
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
).