Bool

struct Bool
  • Toggles the value of self, instead of having to reassign

    Declaration

    Swift

    public mutating func toggle()