Additive

public protocol Additive : AdditiveSemigroup, Zero

Interface for types which can be viewed as an Sum monoid.

  • sum Extension method

    Declaration

    Swift

    public var sum: Sum<Self> { get }

    Return Value

    A Sum monoidal view of self.