xii
05/29/2020, 4:37 PMList<Test?>
and I want it to be just a List<Test>. how do I prevent the type of the elements in the list to be nullable? I want it to be an empty list worst case scenarioShawn
05/29/2020, 4:39 PMxii
05/29/2020, 4:39 PMxii
05/29/2020, 4:41 PMfoo.map { (a, b) -> b.find( it.bar == condition)}Shawn
05/29/2020, 4:43 PMxii
05/29/2020, 4:44 PMShawn
05/29/2020, 4:45 PMTest instances inside of it that match a certain condition, right?xii
05/29/2020, 4:45 PMxii
05/29/2020, 4:47 PMShawn
05/29/2020, 4:48 PMfoo.values.flatten().filter { it.var == condition }Shawn
05/29/2020, 4:48 PMSequence<T> as neededShawn
05/29/2020, 4:49 PM.flatten().filter() myself but there is no flatFilter() so 😅xii
05/29/2020, 4:49 PMxii
05/29/2020, 4:49 PMxii
05/29/2020, 4:49 PM