摘要: take 从列表中获取子列表into a b 把b conj 到a中(defn count-a-seq [lat] (reduce (fn [x y] (+ x 1)) 0 lat))reduce 将list通过fn一个个合并成一个,当然也可以只是对每个进行+1(defn [x & xs]reduc... 阅读全文
posted @ 2014-11-27 22:59 wangchao719 阅读(233) 评论(0) 推荐(0) 编辑