8000 Whitespace; Cleanup · clojure/clojurescript@89fb927 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89fb927

Browse files
committed
Whitespace; Cleanup
1 parent 69698a3 commit 89fb927

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

src/cljs/cljs/core.cljs

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
^{:doc "bound in a repl thread to the most recent value printed"}
2525
*1)
2626

27-
(def
27+
(def
2828
^{:doc "bound in a repl thread to the second most recent value printed"}
2929
*2)
3030

@@ -830,7 +830,7 @@ reduces them without incurring seq initialization"
830830

831831
(defn /
832832
"If no denominators are supplied, returns 1/numerator,
833-
else returns numerator divided by all of the denominators."
833+
else returns numerator divided by all of the denominators."
834834
([x] (/ 1 x))
835835
([x y] (js* "(~{x} / ~{y})")) ;; FIXME: waiting on cljs.core//
836836
([x y & more] (reduce / (/ x y) more)))
@@ -1107,7 +1107,7 @@ reduces them without incurring seq initialization"
11071107
(defn- extend-object!
11081108
"Takes a JavaScript object and a map of names to functions and
11091109
attaches said functions as methods on the object. Any references to
1110-
JavaScript's implict this (via the this-as macro) will resolve to the
1110+
JavaScript's implict this (via the this-as macro) will resolve to the
11111111
object that the function is attached."
11121112
[obj fn-map]
11131113
(doseq [[key-name f] fn-map]
@@ -1232,7 +1232,7 @@ reduces them without incurring seq initialization"
12321232

12331233
ISeqable
12341234
(-seq [string] (prim-seq string 0))
1235-
1235+
12361236
ICounted
12371237
(-count [s] (.-length s))
12381238

@@ -1482,8 +1482,8 @@ reduces them without incurring seq initialization"
14821482
(defn complement
14831483
"Takes a fn f and returns a fn that takes the same arguments as f,
14841484
has the same effects, if any, and returns the opposite truth value."
1485-
[f]
1486-
(fn
1485+
[f]
1486+
(fn
14871487
([] (not (f)))
14881488
([x] (not (f x)))
14891489
([x y] (not (f x y)))
@@ -1500,15 +1500,15 @@ reduces them without incurring seq initialization"
15001500
fn (right-to-left) to the result, etc."
15011501
([] identity)
15021502
([f] f)
1503-
([f g]
1504-
(fn
1503+
([f g]
1504+
(fn
15051505
([] (f (g)))
15061506
([x] (f (g x)))
15071507
([x y] (f (g x y)))
15081508
([x y z] (f (g x y z)))
15091509
([x y z & args] (f (apply g x y z args)))))
1510-
([f g h]
1511-
(fn
1510+
([f g h]
1511+
(fn
15121512
([] (f (g (h))))
15131513
([x] (f (g (h x))))
15141514
([x y] (f (g (h x y))))
@@ -1751,8 +1751,8 @@ reduces them without incurring seq initialization"
17511751

17521752
(defn cycle
17531753
"Returns a lazy (infinite!) sequence of repetitions of the items in coll."
1754-
[coll] (lazy-seq
1755-
(when-let [s (seq coll)]
1754+
[coll] (lazy-seq
1755+
(when-let [s (seq coll)]
17561756
(concat s (cycle s)))))
17571757

17581758
(defn split-at
@@ -2004,9 +2004,9 @@ reduces them without incurring seq initialization"
20042004

20052005
IReduce
20062006
(-reduce [v f]
2007-
(ci-reduce array f))
2007+
(ci-reduce array f))
20082008
(-reduce [v f start]
2009-
(ci-reduce array f start))
2009+
(ci-reduce array f start))
20102010

20112011
IFn
20122012
(-invoke [coll k]
@@ -2306,7 +2306,7 @@ reduces them without incurring seq initialization"
23062306
(-invoke [coll k]
23072307
(-lookup coll k))
23082308
(-invoke [coll k not-found]
2309-
(-lookup coll k not-found)))
2309+
(-lookup coll k not-found)))
23102310

23112311
(set! cljs.core.ObjMap/EMPTY (ObjMap. nil (array) (js-obj)))
23122312

@@ -2643,7 +2643,6 @@ reduces them without incurring seq initialization"
26432643

26442644
ISeq
26452645
(-first [rng] start)
2646-
26472646
(-rest [rng]
26482647
(if (-seq rng)
26492648
(Range. meta (+ start step) end step)
@@ -3152,7 +3151,7 @@ reduces them without incurring seq initialization"
31523151
mind that regardless of the result or action of the watch fns the
31533152
atom's value will change. Example:
31543153
3155-
(def a (atom 0))
3154+
(def a (atom 0))
31563155
(add-watch a :inc (fn [k r o n] (assert (== 0 n))))
31573156
(swap! a inc)
31583157
;; Assertion Error

0 commit comments

Comments
 (0)
0