Bump generics dependency

This commit is contained in:
Brandon 2025-04-06 22:08:51 -07:00
parent facc73a88b
commit c488e22abc
4 changed files with 8 additions and 4 deletions

View file

@ -39,6 +39,10 @@ func (s *Set[T]) Includes(value T) bool {
return s.hashMap[value]
}
func (s *Set[T]) Len() int {
return len(s.hashMap)
}
// output slice is not necessarily in the same order that items were added
func (s *Set[T]) ToSlice() []T {
return maps.Keys(s.hashMap)