kristofdho
07/12/2018, 3:13 PMfillAdIds
can also be rewritten as fun fillAdIds(index: Int, map: LinkedHashMap<String, Image>): List<Image> {
return map.values.mapNotNull { image ->
tempAdIds[index]?.let{image.copy(adId = it)}
}
}