for multiple conditions in the same block or for each condition individually in each
filter
call. Each
filter
would effectively be equivalent to
.filter { cond1 && cond2 && cond3 ...}
o
oday
09/03/2018, 5:32 PM
ahh so they are the same
oday
09/03/2018, 5:32 PM
thanks
s
Shawn
09/03/2018, 5:34 PM
I mean, it really depends on how you write the individual filters vs the composite predicate
Shawn
09/03/2018, 5:35 PM
also without using sequences, it’s multiple iterations of up to the entire collection, which could be problematic depending on how large your data set is
o
oday
09/03/2018, 6:27 PM
so how do I filter inside a for loop while maintaining a desirable result as if i had run
filter
in a chain?
oday
09/03/2018, 6:27 PM
because i have an array of predicates, and each can be either false or true, and according to that, I filter
oday
09/03/2018, 6:28 PM
I wish I could chain the filters in the loop, more desirable than producing unexpected combinations in