Hexa
Map<String, List<Items>
Map<String, List<Product>>
val someMap: Map<String, List<Items>> = x val newMap: Map<String, List<Product>> = someMap.map { it. } ??? what to do here?
kingsley
someMap.mapValues { (k, v) -> v.map { item -> product } }
someMap.mapValues { (k, v) -> v.map { item -> Product(it.)} }
data class Product(val brand: String, val type: String)
A modern programming language that makes developers happier.