Changes for clojure.core/doall

orivej on Tue, 05 Mar 2013
;; Nothing is printed because map returns a lazy-seq
user=> (def foo (map println [1 2 3]))
#'user/foo

;; doall forces the seq to be realized
user=> (def foo (doall (map println [1 2 3])))
1
2
3
#'user/foo

;; where
(doall (map println [1 2 3]))
1
2
3
(nil nil nil)
AtKaaZ on Wed, 27 Feb 2013
;; Nothing is printed because map returns a lazy-seq
user=> (def foo (map println [1 2 3]))
#'user/foo

;; doall forces the seq to be realized
user=> (def foo (doall (map println [1 2 3])))
1
2
3
#'user/foo

;; where
(doall (map println [1 2 3]))
1
2
3
(nil nil nil)
=> (doall (map println [1 2 3]) nil)
nil
=> *clojure-version*
{:major 1, :minor 5, :incremental 0, :qualifier "RC17"}
jafingerhut on Wed, 28 Mar 2012
;; Nothing is printed because map returns a lazy-seq
user=> (def foo (map println [1 2 3]))
#'user/foo

;; doall forces the seq to be realized
user=> (def foo (doall (map println [1 2 3])))
1
2
3
#'user/foo

;; where
(doall (map println [1 2 3]))
1
2
3
(nil nil nil)
philos99 on Wed, 28 Sep 2011
user=> (def foo (map println [1 2 3])) ; Nothing is printed because map returns a lazy-seq
#'user/foo

user=> (def foo (doall (map println [1 2 3]))) ; doall forces the seq to be realized
1
2
3
#'user/foo

;; where
(doall (map println [1 2 3]))
1
2
3
(nil nil nil)
dakrone on Fri, 30 Jul 2010
user=> (def foo (map println [1 2 3])) ; Nothing is printed because map returns a lazy-seq
#'user/foo

user=> (def foo (doall (map println [1 2 3]))) ; doall forces the seq to be realized
1
2
3
#'user/foo