mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-15 07:04:31 +03:00
Fix #6615
This commit is contained in:
parent
5889311688
commit
2d7bbf60cc
@ -60,6 +60,9 @@ func (self *Set[T]) AsSlice() []T {
|
||||
}
|
||||
|
||||
func (self *Set[T]) Intersect(other *Set[T]) (ans *Set[T]) {
|
||||
if other == nil {
|
||||
return NewSet[T]()
|
||||
}
|
||||
if self.Len() < other.Len() {
|
||||
ans = NewSet[T](self.Len())
|
||||
for x := range self.items {
|
||||
|
Loading…
Reference in New Issue
Block a user