There was an error while loading. Please reload this page.
2 parents 7f74742 + 7b2c93d commit 5cd99e6Copy full SHA for 5cd99e6
README.md
@@ -490,11 +490,13 @@ pairwise constructs as found in e.g. `let` and `cond`.
490
* Leverage `comp` when it would yield simpler code.
491
492
```Clojure
493
+ ;; Assuming `(:require [clojure.string :as str])`...
494
+
495
;; good
- (map #(capitalize (trim %)) ["top " " test "])
496
+ (map #(str/capitalize (str/trim %)) ["top " " test "])
497
498
;; better
- (map (comp capitalize trim) ["top " " test "])
499
+ (map (comp str/capitalize str/trim) ["top " " test "])
500
```
501
502
* Leverage `partial` when it would yield simpler code.
0 commit comments