Divisible

public protocol Divisible[Other = Self]

Raw protocol backing the / operator.

Division by zero is not modelled at the protocol level; conforming types document their own behavior (integer types panic, floats produce inf/nan).

Associated Types

type Output

Methods

consuming func divide(consuming Other) -> Output

Returns self / other.

Defined in lang/std/core/arithmetic.ks