Reputation: 44051
In the following I can clone the Hashtable but not the actual value
val myHash = new HashMap[String, Int]
myHash.put("A", 4)
println(myHash("A").clone()) // fail
myHash.clone() // works
I get the error cannot resolve symbol clone
Upvotes: 1
Views: 184