mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
Start work on porting hints kitten to Go
This commit is contained in:
@@ -55,6 +55,10 @@ func (self *Set[T]) Iterable() map[T]struct{} {
|
||||
return self.items
|
||||
}
|
||||
|
||||
func (self *Set[T]) AsSlice() []T {
|
||||
return maps.Keys(self.items)
|
||||
}
|
||||
|
||||
func (self *Set[T]) Intersect(other *Set[T]) (ans *Set[T]) {
|
||||
if self.Len() < other.Len() {
|
||||
ans = NewSet[T](self.Len())
|
||||
|
||||
Reference in New Issue
Block a user