I have a Map[String,String] and a third party function that requires a Map[String,Seq[String]]
Is there an easy way to convert this so I can pass the map to the function?
I have a Map[String,String] and a third party function that requires a Map[String,Seq[String]] Is
Share
Note that
mapValuesreturns a map view, so the function (Seq(_)) will be recomputed every time an element is accessed. To avoid this, just use normalmap:Usage: