Skip to content

Commit

Permalink
Add Eq class to EqCollection now that it's fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Walker authored and Jason94 committed Jan 4, 2025
1 parent 7e9c25c commit 0e58929
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/collections/classes.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ collection typeclasses."
the front or back, depending on which is natural for the underlying data structure."
(:a -> :m -> :m)))

;; Instances should wrap each method in Eq :a
(define-class (Collection :m :a => EqCollection :m :a (:m -> :a))
(define-class ((Eq :a) (Collection :m :a) => EqCollection :m :a (:m -> :a))
(remove-duplicates
"Create a new collection with all distinct elements."
(:m -> :m))
Expand Down

0 comments on commit 0e58929

Please sign in to comment.