nested list filtering without changing object type in kotlin
I want to filter nested lists with kotlin without changing the object type.
https://i.stack.imgur.com/dSYjq.png▾
https://i.stack.imgur.com/D5OYC.png▾
https://i.stack.imgur.com/TPtEP.png▾
For example, I want to get the list 'ExamObj' with age value 27 for the above model.
The method to return the list is as follows.
fun progress(respList: List): List{}
this method takes a list...