setSafeCommutativeMonoid
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeCommutativeMonoid()(source)
fun Long.Companion.setSafeCommutativeMonoid()(source)
Registers the safe CommutativeMonoid context for Long (with overflow checking) in the given registry.
Context Parameters
registry
The mutable owned provider registry to register the context into.
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeCommutativeMonoid()(source)
fun Double.Companion.setSafeCommutativeMonoid()(source)
Registers the safe CommutativeMonoid context for Double (with NaN/Infinity validation) in the given registry.
Context Parameters
registry
The mutable owned provider registry to register the context into.