commit
7fbd5a791e
@ -61,8 +61,8 @@ Layout & Indentation
|
|||||||
;; Good (and preferred)
|
;; Good (and preferred)
|
||||||
(defn fib [n]
|
(defn fib [n]
|
||||||
(if (<= n 2)
|
(if (<= n 2)
|
||||||
n
|
n
|
||||||
(+ (fib (- n 1)) (fib (- n 2)))))
|
(+ (fib (- n 1)) (fib (- n 2)))))
|
||||||
|
|
||||||
;; Still okay
|
;; Still okay
|
||||||
(defn fib [n]
|
(defn fib [n]
|
||||||
@ -89,8 +89,8 @@ Layout & Indentation
|
|||||||
;; Good (and preferred)
|
;; Good (and preferred)
|
||||||
(defn fib [n]
|
(defn fib [n]
|
||||||
(if (<= n 2)
|
(if (<= n 2)
|
||||||
n
|
n
|
||||||
(+ (fib (- n 1)) (fib (- n 2)))))
|
(+ (fib (- n 1)) (fib (- n 2)))))
|
||||||
|
|
||||||
;; Hysterically ridiculous
|
;; Hysterically ridiculous
|
||||||
(defn fib [n]
|
(defn fib [n]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user