- Learn Data Structures and Algorithms with Golang
- Bhagvan Kommadi
- 45字
- 2021-06-24 15:37:48
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)
}