I want to create a Stringmap, add some values inside, and pass it some function. I've tried this :
import stdlib.core.map
mymap = StringMap_empty
mymap["rabbit"] = 12
function addmap(map)
{
map["rabbit"] = 24
}
But nothing compile. I can only use stringmap througt database ! (-> database stringmap(int) /myMap )
What's wrong with my code ?
Opa is a functional programming language. You should read this thread for more information: Opa: Iterating through stringmap and forming a new string based on it