March 2019
Intermediate to advanced
336 pages
9h 9m
English
The ContainsElement method of the Set class checks whether or not the element exists in integerMap. The integerMap element is looked up with a key integer element, as shown in the following code example:
//checks if element is in the setfunc (set *Set) ContainsElement(element int) bool{ var exists bool _, exists = set.integerMap[element] return exists}
Read now
Unlock full access