Bool

extension Bool
  • Creates a new Boolean value from the given Integer.

    Precondition

    value is equal to 0 or 1.

    Declaration

    Swift

    public init<T>(_ value: T) where T : BinaryInteger

    Parameters

    value

    An Int used to initialise the Bool.