Skip to content

Commit cd47fff

Browse files
committed
Added String() to MapSet
Signed-off-by: Tim Henderson <[email protected]>
1 parent a58df8f commit cd47fff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: set/mapset.go

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package set
22

3+
import (
4+
"fmt"
5+
)
6+
37
import (
48
"github.com/timtadh/data-structures/errors"
59
"github.com/timtadh/data-structures/types"
@@ -162,3 +166,7 @@ func (m *MapSet) ProperSuperset(b types.Set) bool {
162166
return ProperSuperset(m, b)
163167
}
164168

169+
func (m *MapSet) String() string {
170+
return fmt.Sprintf("%v", m.Set)
171+
}
172+

0 commit comments

Comments
 (0)