diesieben07
07/28/2017, 10:40 PMMap implementation would have to implement filter.artem_zin
07/28/2017, 10:58 PMinline fun T.filter<reified T : Map<X>>() {
when (this) {
is HashMap -> HashMap(result)
}
}
Wouldn’t work for custom types yeahdiesieben07
07/28/2017, 10:59 PMmap.filterTo(HashMap()) { }.artem_zin
07/28/2017, 11:00 PMMap tbhartem_zin
07/28/2017, 11:00 PMdiesieben07
07/28/2017, 11:01 PM