Skip to content

Commit 7f15272

Browse files
committed
Fix typo in all-different
1 parent c857a68 commit 7f15272

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

screamer.lisp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6714,10 +6714,12 @@ X2."
67146714
(if (null (cdr li))
67156715
t
67166716
(let ((l nil))
6717-
(loop for i in li
6718-
when (member i l :test test)
6719-
return t
6720-
do (push i l)))))
6717+
(not
6718+
;; Return t if there *is* a duplicate
6719+
(loop for i in li
6720+
when (member i l :test test)
6721+
return t
6722+
do (push i l))))))
67216723

67226724
(defun all-differentv (inp)
67236725
"Functionally the same as (apply #'/=v inp), but faster.

0 commit comments

Comments
 (0)