Appearance
var a = true var b: Bool = false
toggle 方法取反布尔值
toggle
var c = true c.toggle() print(c) // false
random 获取随机布尔值
random
print(Bool.random())
var d = true print(d.description) print(d.hashValue)