(defn list-replicate [num list] (mapcat (partial repeat num) list)). (doseq [x (list-replicate 2 [1 2 3])] (println x)) ;; output: 1 1 2 2 3 ...
確定! 回上一頁