add element to set kotlin code example
Example 1: remove element form set in python
list1 = {1,2,3,4}
list1.remove(4)
print(list)
# {1,2,3}
Example 2: C++ remove element from set
std::set<int> s {1,2,3};
s.erase(2);
list1 = {1,2,3,4}
list1.remove(4)
print(list)
# {1,2,3}
std::set<int> s {1,2,3};
s.erase(2);