title: How to use java.util.stream.Stream in Clojure?
body: <pre><code>(import java.nio.file.Files)
  (import java.nio.file.Paths)
  (import java.util.stream.Stream)
  
  (def path 
    (Paths/get "." 
      (into-array ["data" "10000000.test.log"])))
  
  (def stream 
    (Files/lines path))
  </code></pre>
  
  <p>This way I have:</p>
  
  <pre><code>stream
  #object[java.util.stream.ReferencePipeline$Head 0x50129b8f
  "java.util.stream.ReferencePipeline$Head@50129b8f"]
  </code></pre>
  
  <p>Is there a way to iterate over this without running out of memory? The suggestion on SO are not really helpful. The files is ~1G.</p>