布尔
除非是 false 或 nil,否则 Clojure 中的任何值都被认为是真实的。你可以用 (boolean value) 找到价值的真实性。你可以使用 (or) 找到值列表的真实性,如果任何参数是真值则返回 true,或者如果所有参数都是真实的则返回 true 的 (and)。
=> (or false nil)
nil ; none are truthy
=> (and '() [] {} #{} "" :x 0 1 true)
true ; all are truthy
=> (boolean "false")
true ; because naturally, all strings are truthy