编辑:因为 clojure.contrib.seq 消失了,所以我用一个简单的实现示例更新了答案: (defn positions [pred coll] (keep-indexed (fn [idx x] (when (pred x) idx)) ...
確定! 回上一頁