(= [true false true false]
(for [x [nil true [] [true]]] (_____ x)))
请填写空白! empty?
非常接近,但(empty? true)
抛出异常。必须有比抓住更好的方法吗?
像(or (and (seq? v) (empty? v)) (and (not (seq? v)) (not (nil? v)))))
这样的东西在[]
失败,因为(seq? [])
是假的。
互联网指向exupero。
(or (nil? v) (and (coll? v) (empty? v)))