Clojure Predicates not-any?
如果集合中的值的任何Predicates在逻辑上为真,则返回false,否则为true。
语法
下面是 not-any? 的使用示例:
(not-any? p1 col)
参数 − 'p1'是需要测试的Predicates。 'col'是需要测试的值的集合。
返回值 − 如果集合中的值的任何Predicates在逻辑上为真,则返回false,否则为true。
例
下面是 not-any? 的使用示例:
(ns clojure.examples.example (:gen-class)) (defn Example [] (println (not-any? even? '(2 4 6)))) (Example)
输出
以上示例将输出以下结果:
false