Commit 2022-07-19 18:28 101555b1
View on Github →refactor(data/real/ennreal): redefine ennreal.to_nnreal
in terms of with_top.untop'
(#15247)
- redefine
ennreal.to_nnreal
aswith_top.untop' 0
; - use lambda function instead of
id
for identity coercions ofnat
andint
; - move
with_top.add_monoid_with_one
andwith_bot.add_monoid_with_one
toalgebra.order.monoid
, add commutative version; - generalize
ennreal.to_nnreal_mul
towith_top
.