|
50 | 50 |
|
51 | 51 | (defonce
|
52 | 52 | ^{:doc "Each runtime environment provides a different way to print error output.
|
53 |
| - Whatever function *print-fn* is bound to will be passed any |
| 53 | + Whatever function *print-err-fn* is bound to will be passed any |
54 | 54 | Strings which should be printed." :dynamic true}
|
55 | 55 | *print-err-fn*
|
56 | 56 | (fn [_]
|
@@ -2595,7 +2595,7 @@ reduces them without incurring seq initialization"
|
2595 | 2595 | (reduce bit-or (cljs.core/bit-or x y) more)))
|
2596 | 2596 |
|
2597 | 2597 | (defn bit-and-not
|
2598 |
| - "Bitwise and" |
| 2598 | + "Bitwise and with complement" |
2599 | 2599 | ([x y] (cljs.core/bit-and-not x y))
|
2600 | 2600 | ([x y & more]
|
2601 | 2601 | (reduce bit-and-not (cljs.core/bit-and-not x y) more)))
|
@@ -2662,12 +2662,12 @@ reduces them without incurring seq initialization"
|
2662 | 2662 |
|
2663 | 2663 | (defn ^boolean pos?
|
2664 | 2664 | "Returns true if num is greater than zero, else false"
|
2665 |
| - [n] (cljs.core/pos? n)) |
| 2665 | + [x] (cljs.core/pos? x)) |
2666 | 2666 |
|
2667 | 2667 | (defn ^boolean zero?
|
2668 | 2668 | "Returns true if num is zero, else false"
|
2669 |
| - [n] |
2670 |
| - (cljs.core/zero? n)) |
| 2669 | + [x] |
| 2670 | + (cljs.core/zero? x)) |
2671 | 2671 |
|
2672 | 2672 | (defn ^boolean neg?
|
2673 | 2673 | "Returns true if num is less than zero, else false"
|
@@ -3000,7 +3000,7 @@ reduces them without incurring seq initialization"
|
3000 | 3000 | (es6-iterable Cons)
|
3001 | 3001 |
|
3002 | 3002 | (defn cons
|
3003 |
| - "Returns a new seq where x is the first element and seq is the rest." |
| 3003 | + "Returns a new seq where x is the first element and coll is the rest." |
3004 | 3004 | [x coll]
|
3005 | 3005 | (if (or (nil? coll)
|
3006 | 3006 | (implements? ISeq coll))
|
@@ -3065,7 +3065,7 @@ reduces them without incurring seq initialization"
|
3065 | 3065 | false)))
|
3066 | 3066 |
|
3067 | 3067 | (defn ^boolean symbol-identical?
|
3068 |
| - "Efficient test to determine that two symbol are identical." |
| 3068 | + "Efficient test to determine that two symbols are identical." |
3069 | 3069 | [x y]
|
3070 | 3070 | (if (identical? x y)
|
3071 | 3071 | true
|
@@ -3118,7 +3118,7 @@ reduces them without incurring seq initialization"
|
3118 | 3118 | (-lastIndexOf coll x start))
|
3119 | 3119 |
|
3120 | 3120 | IPending
|
3121 |
| - (-realized? [x] |
| 3121 | + (-realized? [coll] |
3122 | 3122 | (not fn))
|
3123 | 3123 |
|
3124 | 3124 | IWithMeta
|
@@ -3496,10 +3496,10 @@ reduces them without incurring seq initialization"
|
3496 | 3496 | (-persistent! tcoll))
|
3497 | 3497 |
|
3498 | 3498 | (defn conj!
|
3499 |
| - "Adds x to the transient collection, and return coll. The 'addition' |
| 3499 | + "Adds val to the transient collection, and return tcoll. The 'addition' |
3500 | 3500 | may happen at different 'places' depending on the concrete type."
|
3501 | 3501 | ([] (transient []))
|
3502 |
| - ([coll] coll) |
| 3502 | + ([tcoll] tcoll) |
3503 | 3503 | ([tcoll val]
|
3504 | 3504 | (-conj! tcoll val))
|
3505 | 3505 | ([tcoll val & vals]
|
@@ -3532,7 +3532,7 @@ reduces them without incurring seq initialization"
|
3532 | 3532 |
|
3533 | 3533 | (defn pop!
|
3534 | 3534 | "Removes the last item from a transient vector. If
|
3535 |
| - the collection is empty, throws an exception. Returns coll" |
| 3535 | + the collection is empty, throws an exception. Returns tcoll" |
3536 | 3536 | [tcoll]
|
3537 | 3537 | (-pop! tcoll))
|
3538 | 3538 |
|
@@ -4122,7 +4122,7 @@ reduces them without incurring seq initialization"
|
4122 | 4122 |
|
4123 | 4123 | (defn reset!
|
4124 | 4124 | "Sets the value of atom to newval without regard for the
|
4125 |
| - current value. Returns newval." |
| 4125 | + current value. Returns new-value." |
4126 | 4126 | [a new-value]
|
4127 | 4127 | (if (instance? Atom a)
|
4128 | 4128 | (let [validate (.-validator a)]
|
@@ -4472,7 +4472,8 @@ reduces them without incurring seq initialization"
|
4472 | 4472 | ([n x] (take n (repeat x))))
|
4473 | 4473 |
|
4474 | 4474 | (defn replicate
|
4475 |
| - "Returns a lazy seq of n xs." |
| 4475 | + "DEPRECATED: Use 'repeat' instead. |
| 4476 | + Returns a lazy seq of n xs." |
4476 | 4477 | [n x] (take n (repeat x)))
|
4477 | 4478 |
|
4478 | 4479 | (defn repeatedly
|
@@ -4586,10 +4587,10 @@ reduces them without incurring seq initialization"
|
4586 | 4587 |
|
4587 | 4588 | (defn tree-seq
|
4588 | 4589 | "Returns a lazy sequence of the nodes in a tree, via a depth-first walk.
|
4589 |
| - branch? must be a fn of one arg that returns true if passed a node |
4590 |
| - that can have children (but may not). children must be a fn of one |
4591 |
| - arg that returns a sequence of the children. Will only be called on |
4592 |
| - nodes for which branch? returns true. Root is the root node of the |
| 4590 | + branch? must be a fn of one arg that returns true if passed a node |
| 4591 | + that can have children (but may not). children must be a fn of one |
| 4592 | + arg that returns a sequence of the children. Will only be called on |
| 4593 | + nodes for which branch? returns true. Root is the root node of the |
4593 | 4594 | tree."
|
4594 | 4595 | [branch? children root]
|
4595 | 4596 | (let [walk (fn walk [node]
|
@@ -9559,9 +9560,9 @@ reduces them without incurring seq initialization"
|
9559 | 9560 | (pr-str k))))
|
9560 | 9561 |
|
9561 | 9562 | (defn clj->js
|
9562 |
| - "Recursively transforms ClojureScript values to JavaScript. |
9563 |
| -sets/vectors/lists become Arrays, Keywords and Symbol become Strings, |
9564 |
| -Maps become Objects. Arbitrary keys are encoded to by key->js." |
| 9563 | + "Recursively transforms ClojureScript values to JavaScript. |
| 9564 | + sets/vectors/lists become Arrays, Keywords and Symbol become Strings, |
| 9565 | + Maps become Objects. Arbitrary keys are encoded to by key->js." |
9565 | 9566 | [x]
|
9566 | 9567 | (when-not (nil? x)
|
9567 | 9568 | (if (satisfies? IEncodeJS x)
|
|
0 commit comments