Monotonic

protocol Monotonic : Equatable, Sendable

A type whose instances can be updated without loss of information.

  • Assigns self to other, asserting that the resulting value contains at least as much information as self.

    Declaration

    Swift

    mutating func updateMonotonically(_ other: Self)

Available where Self: Equatable