mg6maciej
04/07/2017, 7:15 PMmapOf("string" to 1).mapValues { (str, int) -> func(str, int) }
where:
fun func(str: String, int: Int) = int.toString()
Is it possible to make this func be passed like: mapValues(::func) instead?
Or only when the func has Map.Entry<String, Int> single argument?