Skip to content

Instantly share code, notes, and snippets.

@xonev

xonev/bolt.clj Secret

Created July 31, 2013 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xonev/df517e2dc6716cf0f339 to your computer and use it in GitHub Desktop.
Save xonev/df517e2dc6716cf0f339 to your computer and use it in GitHub Desktop.
Attempt to return a lazy sequence from a read of a file
(ns storm-spike.bolt
(:use [backtype.storm clojure config])
(:import (java.io BufferedReader FileReader))
(:gen-class))
(defn process-file [file-name line-func]
(with-open [rdr (clojure.java.io/reader file-name)]
(map line-func (line-seq rdr))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment