user signup sessions

This commit is contained in:
2024-08-19 19:13:17 -05:00
parent 8673eb9869
commit 603936b50c
8 changed files with 381 additions and 30 deletions

View File

@@ -51,3 +51,13 @@ func (s *Set[T]) IsDisjoint(otherSet Set[T]) bool {
}
return true
}
func (s *Set[T]) Intersect(otherSet Set[T]) Set[T] {
intersect := make(Set[T])
for val, _ := range *s {
if otherSet.Contains(val) {
intersect.Add(val)
}
}
return intersect
}