Skip to content

Commit 1b2f936

Browse files
committed
Set predicate #{0} -> #{1}
The set `#{0}` is a suboptimal example because the core predicate `zero?` would be even more appropriate.
1 parent 2ff2ec4 commit 1b2f936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,10 @@ hints for the pairwise grouping with comments or empty lines.
857857

858858
```Clojure
859859
;; good
860-
(remove #{0} [0 1 2 3 4 5])
860+
(remove #{1} [0 1 2 3 4 5])
861861

862862
;; bad
863-
(remove #(= % 0) [0 1 2 3 4 5])
863+
(remove #(= % 1) [0 1 2 3 4 5])
864864

865865
;; good
866866
(count (filter #{\a \e \i \o \u} "mary had a little lamb"))

0 commit comments

Comments
 (0)