Hi, I'm trying to learn lisp and Clojure and so I'm trying some excercises suggested here on the group a while ago.
I'm not doing too well, I had to cheat on excercise one (make a series of integers) by looking at the source code to the range function, and I'm now having to ask for help with excercise two! I know I could just find a different implementation online, but I would prefer to understand why my method doesn't work. If anyone can point to my mistake(s), I'd be very grateful.. (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))) (println (take 5 fib)) Thanks in advance, Craig --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
