如果集合中值的任何谓词在逻辑上为true,则返回false,否则返回true。
(not-any? p1 col)
参数 - 'p1'是需要测试的pattern。 " col"是需要测试的值的集合。
返回值 - 如果集合中值的任何断言在逻辑上为true,则返回false,否则返回true。
(ns clojure.examples.example (:gen-class)) (defn Example [] (println (not-any? even? '(2 4 6)))) (Example)
上面的程序产生以下输出。
链接:https://www.learnfk.comhttps://www.learnfk.com/clojure/clojure-predicates-notany.html
来源:LearnFk无涯教程网
false
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)