Bool

public extension Bool
extension Bool: ScopeFunctions

Public Functions

  • Returns the inverse of the receiver.

    let retval = true.not()
    
    // do something with retval which is false
    

    Declaration

    Swift

    func not() -> Bool

    Return Value

    The inverse value