Changes for clojure.core/line-seq

zkim on Sun, 26 Sep 2010
;; Count lines of a file (loses head):
user=> (with-open [rdr (clojure.java.io/reader "/etc/passwd")]
         (count (line-seq rdr)))

zkim on Sun, 26 Sep 2010
;; Count lines of a file (loses head):
(with-open [rdr (clojure.java.io/reader "/etc/passwd")]
  (count (line-seq rdr)))

juergenhoetzel on Fri, 23 Jul 2010
Count lines of a file (loses head):

(with-open [rdr (clojure.java.io/reader "/etc/passwd")]
  (count (line-seq rdr)))

juergenhoetzel on Fri, 23 Jul 2010
Count lines of a file (loses head):

(import [java.io FileInputStream InputStreamReader BufferedReader])
(with-open [rdr (-> "/tmp/big.log" FileInputStream. InputStreamReader. BufferedReader.)]
  (count (line-seq rdr)))