add color to svg
This commit is contained in:
@@ -44,7 +44,7 @@ func (s *Set[T]) Copy() Set[T] {
|
||||
}
|
||||
|
||||
func (s *Set[T]) IsDisjoint(otherSet Set[T]) bool {
|
||||
for attr, _ := range *s {
|
||||
for attr := range *s {
|
||||
if otherSet.Contains(attr) {
|
||||
return false
|
||||
}
|
||||
@@ -54,7 +54,7 @@ func (s *Set[T]) IsDisjoint(otherSet Set[T]) bool {
|
||||
|
||||
func (s *Set[T]) Intersect(otherSet Set[T]) Set[T] {
|
||||
intersect := make(Set[T])
|
||||
for val, _ := range *s {
|
||||
for val := range *s {
|
||||
if otherSet.Contains(val) {
|
||||
intersect.Add(val)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user