Ambiguous error message with lazy sequence.

2013-08-06 Thread Qiu Xiafei
I have a test.clj file like the following: $ cat test.clj (defn some-lazy-seq [n] (lazy-cat (concat n;; should be [n] here (some-lazy-seq (inc n) (println (take 100 (some-lazy-seq 0))) It's obviously wrong on line 3, the concat function shoud take a seq as

Re: Ambiguous error message with lazy sequence.

2013-08-06 Thread jiujiu xiang
在 2013年8月6日星期二UTC+8下午8时31分19秒,Qiu Xiafei写道: I have a test.clj file like the following: $ cat test.clj (defn some-lazy-seq [n] (lazy-cat (concat n;; should be [n] here (some-lazy-seq (inc n) (println (take 100 (some-lazy-seq 0))) It's obviously