0

I keep getting a java.lang.IllegalArgumentException: Don't know how to create ISeq from: four_cloj.core$my_fib

(defn my-fib []                                                                                                                                                                 
    (let [a 0 b 1]                                                                                                                                                                 
      (lazy-seq (cons a (my-fib b (+ a b)))))) 

Anyone got any ideas?

4

1 回答 1

1

当前的问题是您my-fib使用两个参数递归调用。

(my-fib b (+ a b))

但是,函数参数列表my-fib不包含参数

(defn my-fib []
于 2013-10-27T01:01:15.587 回答