How do you define a generic with a string? For example, if I wanted to write
def createMap(foo: String, bar: String) = {
Map[foo, bar]()
}
val myMap = createMap("String", "Int")
How could I transform foo and bar to the correct types? I'm not seeing much in the documentation about this.
createMapto be, then?