--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
untested and could surely be done more efficiently, but should worktoList.map(e => List(e._2, e._1).mkString)
2014-03-18 21:18 GMT+01:00 Cecil Westerhof <cldwes...@gmail.com>:
--I have the following Map:
Map('4' -> 1, 'A' -> 1, '5' -> 1, '2' -> 1, '3' -> 1)
I want to convert it to the following List:List("14", "1A", "15", "12", "13")
How would I do that?
--
Cecil Westerhof
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
i got that idea too, but i try to avoid the ""+ hack at all costs :|data.toList.map(e => s"${e._2}${e._1}")
--