BinaryInteger

protocol BinaryInteger : Hashable, Numeric, CustomStringConvertible, Strideable
  • Mechanica

    Determine if self is even (equivalent to self % 2 == 0).

    Declaration

    Swift

    public var isEven: Bool
  • Mechanica

    Determine if self is odd (equivalent to self % 2 != 0).

    Declaration

    Swift

    public var isOdd: Bool