Pass lazy seq of file lines to function

后端 未结 0 867
小鲜肉
小鲜肉 2020-12-05 00:35

Why does this bit of code not work?

(defn with-file [fname fn]
  (with-open [r (reader fname)]
    (fn (line-seq r))))

(with-file "data/input_d2" (         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题