原文 标签 clojure sequences. 为了用一些值填充一个序列,这就是我想出的: (defn pad [n coll val] (take n (concat coll (repeat val)))) (pad 10 [1 2 3] nil) ...
確定! 回上一頁