Learn Data Structures and Algorithms with Golang
上QQ阅读APP看书,第一时间看更新

The DeleteElement method

The DeleteElement method deletes the element from integerMap using the delete method. This method removes the element from the integerMap of the set, as follows:

//deletes the element from the set
func (set *Set) DeleteElement(element int) {
delete(set.integerMap,element)
}