Skip to content

Commit 40b8525

Browse files
committed
Merge pull request bbatsov#102 from llasram/set-predicate-example
Set predicate `#{0}` -> `#{1}`
2 parents 4321b21 + 1b2f936 commit 40b8525

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
@@ -866,10 +866,10 @@ hints for the pairwise grouping with comments or empty lines.
866866

867867
```Clojure
868868
;; good
869-
(remove #{0} [0 1 2 3 4 5])
869+
(remove #{1} [0 1 2 3 4 5])
870870

871871
;; bad
872-
(remove #(= % 0) [0 1 2 3 4 5])
872+
(remove #(= % 1) [0 1 2 3 4 5])
873873

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

0 commit comments

Comments
 (0)