> > (defn fib-helper [a b] > (fib-helper b (+ a b))) > > (defn fib (fib-helper 0 1)) ; This doesn't work either: (defn fib (fib- > helper '(0 1)))
You're missing your argument list for fib. > (println (take 5 fib)) take creates a lazy list from a collection: (take n collection) Your fib does not produce a collection. David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---