Pablo
fun getAllBusStops(): Flow<List<BusStopEntity>>
fun BusStopEntity.asBusStop() = BusStop(id = id,name = name,lat = lat,lon = lon)
George Z
map
fun getAllBusStops(): Flow<List<BusStop>> { return getAllBusStops() .map { entityList -> entityList.map { it.asBusStop() } } }
A modern programming language that makes developers happier.