Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- npowell@malaise:~$ cat test.txt
- hai
- hai
- hai
- hai
- hai
- hai
- hai
- hai
- hai
- hai
- hai
- ==
- (ns test
- (:use [clojure.contrib.duck-streams :only [reader]]))
- (def foo (line-seq (reader "test.txt")))
- (println (map #(str %1 " werld!") foo))
- ==
- npowell@malaise:~$ clojure test.clj
- (hai werld! hai werld! hai werld! hai werld! hai werld! hai werld! hai werld! hai werld! hai werld! hai werld! hai werld!)
Add Comment
Please, Sign In to add comment