Changes for clojure.core/->>

uvtc on Mon, 10 Sep 2012
;; An example of using the "thread-last" macro to get
;; the sum of the first 10 even squares.
user=> (->> (range)
            (map #(* % %))
            (filter even?)
            (take 10)
            (reduce +))
1140

;; This expands to:
user=> (reduce +
               (take 10
                     (filter even?
                             (map #(* % %)
                                  (range)))))
1140
tomoj on Mon, 03 Jan 2011
;; get the sum of the first 10 even squares
user=> (->> (range)
            (map #(* % %))
            (filter even?)
            (take 10)
            (reduce +))
1140

;; this expands to:
user=> (reduce + (take 10 (filter even? (map #(* % %) (range)))))
1140
tomoj on Mon, 03 Jan 2011
;; get the first 10 even squares
user=> (->> 0
            (iterate inc)
            (map #(* % %))
            (filter even?)
            (take 10))
(0 4 16 36 64 100 144 196 256 324)

;; this expands to:
user=> (take 10 (filter even? (map #(* % %) (iterate inc 0))))
(0 4 16 36 64 100 144 196 256 324)
zkim on Sun, 26 Sep 2010
;; get the first 10 even squares
user=> (->> (iterate inc 0) 
            (map #(* % %)) 
            (filter even?) 
            (take 10))
(0 4 16 36 64 100 144 196 256 324)

;; this expands to:
user=> (take 10 (filter even? (map #(* % %) (iterate inc 0))))
(0 4 16 36 64 100 144 196 256 324)
zkim on Sat, 24 Jul 2010
;; get the first 10 even squares
user=> (->> (iterate inc 0) 
            (map #(* % %)) 
            (filter even?) 
            (take 10))
(0 4 16 36 64 100 144 196 256 324)

;; this expands to:
user> (take 10 (filter even? (map #(* % %) (iterate inc 0))))
(0 4 16 36 64 100 144 196 256 324)
tomoj on Fri, 23 Jul 2010
;; get the first 10 even squares
user> (->> (iterate inc 0) (map #(* % %)) (filter even?) (take 10))
(0 4 16 36 64 100 144 196 256 324)

;; this expands to:
user> (take 10 (filter even? (map #(* % %) (iterate inc 0))))
(0 4 16 36 64 100 144 196 256 324)