I define a mutable property for my object
object myobject{
val myMap = mutable.Map[String,mutable.Set[String]]
def clear {// I don't know what code I must write here for remove all key Values on myMap}
def add(keyValue:(String,String)){//some code for add a keyValue to mymap}
}
Have a look in the api docs!
myMap.clear()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With