String - returns printable string of the set.
()
| 108 | |
| 109 | // String - returns printable string of the set. |
| 110 | func (set IntSet) String() string { |
| 111 | return fmt.Sprintf("%v", set.ToSlice()) |
| 112 | } |
| 113 | |
| 114 | // NewIntSet - creates new int set. |
| 115 | func NewIntSet() IntSet { |