There was an error while loading. Please reload this page.
1 parent cc0f617 commit 34ddcbaCopy full SHA for 34ddcba
README.md
@@ -433,6 +433,17 @@ pairwise constructs as found in e.g. `let` and `cond`.
433
(not (= foo bar))
434
```
435
436
+* When doing comparisons keep in mind that Clojure's functions `<`,
437
+ `>`, etc accept variable number of arguments.
438
+
439
+ ```Clojure
440
+ ;; good
441
+ (< 5 x 10)
442
443
+ ;; bad
444
+ (and (> x 5) (< x 10))
445
+ ```
446
447
* Prefer `%` over `%1` in function literals with only one parameter.
448
449
```Clojure
@@ -494,7 +505,7 @@ pairwise constructs as found in e.g. `let` and `cond`.
494
505
495
506
496
507
;; Assuming `(:require [clojure.string :as str])`...
497
-
508
498
509
;; good
499
510
(map #(str/capitalize (str/trim %)) ["top " " test "])
500
511
0 commit comments