frellan
07/31/2018, 8:12 PMMap<Int, List<Stuff>> -> List<NewStuff>
where new stuff is yielded from each list of stuffAndreas Sinz
07/31/2018, 8:19 PMmap.entries.map { /*convert it.value into List<NewStuff> */ }.flatMap { it }
frellan
07/31/2018, 8:28 PMentry
every key for a map? In that case can’t you just do map.flatMap { /*convert it into NewStuff */ }
Andreas Sinz
07/31/2018, 9:20 PMMap
actual has a .flatMap
that does what you want