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