Forum | Europe Travel Guide | Ecology | Facts & Trivia | Genetics | History | Linguistics |
Austria | France | Germany | Ireland | Italy | Portugal | Spain | Switzerland |
![]() |
Fibonacci sequence function returning the first n fibonacci numbers in bad Clojure code courtesy of davef
Code:(#(if (= % 1) [1] (if (= % 2) [1 1] (reduce (fn [buffer rng](cons (+ (first buffer)(second buffer))buffer))[1 1] (range (- % 2)))))
mmmmmmmmm dooouuughhhnuuuutz