diff --git a/Contributors.md b/Contributors.md index 30191bc..e497b73 100644 --- a/Contributors.md +++ b/Contributors.md @@ -14,3 +14,4 @@ shravan20 Avatar bettman-latin MrJithi +rlperez diff --git a/Languages.md b/Languages.md index 2ba66bf..0d3a294 100644 --- a/Languages.md +++ b/Languages.md @@ -8,11 +8,14 @@ Hello there!! ## Code already developed in this programming language. +- BASIC - Bash - C - C# - C++ +- Clojure - Dart +- Fortran - Go - Haskell - Java @@ -21,6 +24,7 @@ Hello there!! - Lua - Matlab - Miranda +- Octave - PHP - Powershell Script - Python diff --git a/fibonacci_series/Clojure/clojure_fibonacci.clj b/fibonacci_series/Clojure/clojure_fibonacci.clj new file mode 100644 index 0000000..446de6c --- /dev/null +++ b/fibonacci_series/Clojure/clojure_fibonacci.clj @@ -0,0 +1,13 @@ +(defn fib + "Prints the first `n` fibonacci numbers. + Example: + user> (fib 8) + 0N 1N 1N 2N 3N 5N 8N 13N ;; => nil" + [n] + (loop [i 0 + f1 0N + f2 1N] + (when (< i n) + (print f1 " ") + (recur (inc i) f2 (+ f1 f2))))) +