haw*_*eye 6 reduce dictionary clojure eager-loading transducer
在这篇博客文章"JavaScript中的CSP和传感器"中,作者指出:
首先,我们必须认识到许多数组(或其他集合)操作
map,filter并且reverse可以用a来定义reduce.
那么我们在Clojure中看到一些这样的实现并不是懒惰的,他们渴望:
 user> (defn eager-map [f coll]
        (reduce (fn [acc v] (conj acc (f v)))
        []
        coll))
#'user/eager-map
user> (eager-map inc (range 10))
[1 2 3 4 5 6 7 8 9 10]
我的问题是,Clojure传感器是否渴望?