oday
03/01/2018, 8:03 AMvar carMakesMap = HashMap<Char, List<CarMakesResponse>>()
carMakesMap = result.filter { it.active }.groupBy { it.name.first() }
.toMap(carMakesMap)
view.populateCarMakes(carMakesMap)
but now I want to remove the view method from there, just have the call do the filter inside the repository Implementation and get that ready for consumption from a presenter