You can use postwalk : (defn maybe-square [x] (if (number? x) (* x x) x)) (clojure.walk/postwalk maybe-square [1 [2 [3]]]) => [1 [4 [9]]].
確定! 回上一頁