setSafeCommutativeSemiring
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeCommutativeSemiring()(source)
fun Long.Companion.setSafeCommutativeSemiring()(source)
Registers the safe CommutativeSemiring 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.setSafeCommutativeSemiring()(source)
fun Double.Companion.setSafeCommutativeSemiring()(source)
Registers the safe CommutativeSemiring context for Double (with NaN/Infinity validation) in the given registry.
Context Parameters
registry
The mutable owned provider registry to register the context into.