wakingrufus
12/12/2018, 2:56 PMis
predicate and then doing operations on the subclass further down the chain?spand
12/12/2018, 2:57 PMfilterIsInstance()
?wakingrufus
12/12/2018, 2:59 PMwakingrufus
12/12/2018, 2:59 PMwakingrufus
12/12/2018, 2:59 PMwakingrufus
12/12/2018, 2:59 PMwakingrufus
12/12/2018, 2:59 PMmarstran
12/12/2018, 3:00 PMspand
12/12/2018, 3:00 PMPair
then do a mapNotNull
to get it converted to the right typespand
12/12/2018, 3:02 PMmapNotNull { p -> (p.first as? Class)?.let { it to p.second} }
wakingrufus
12/12/2018, 3:03 PMwakingrufus
12/12/2018, 3:03 PM