How can I generate the Fibonacci sequence using Clojure?
问题 (ns src.helloworld) (defn fibonacci[a b] (println a b (fibonacci (+ b 1) a + b))) (fibonacci 0 1) I'm new to Functional Programming and decided to start learning Clojure as it's very different from C#. I'd like to broaden my horizons. Here's the error I get: Clojure 1.2.0 java.lang.IllegalArgumentException: Wrong number of args (4) passed to: helloworld$fibonacci (helloworld.clj:0) 1:1 user=> #<Namespace src.helloworld> 1:2 src.helloworld=> Math problems never were my strong suit and I never