PDA

View Full Version : Fibonacci Sequence in Nature



Tomenable
08-03-17, 13:27
https://www.youtube.com/watch?v=aB_KstBiou4

Tomenable
08-03-17, 13:30
https://www.youtube.com/watch?v=nt2OlMAJj6o

Tomenable
08-03-17, 13:40
https://www.youtube.com/watch?v=uv7rpcU29Nk

davef
02-07-17, 05:28
Fibonacci sequence function returning the first n fibonacci numbers in bad Clojure code courtesy of davef

(#(if (= % 1) [1] (if (= % 2) [1 1] (reduce (fn [buffer rng](cons (+ (first buffer)(second buffer))buffer))[1 1] (range (- % 2)))))