https://kotlinlang.org logo
Title
a

arekolek

02/19/2018, 3:26 PM
those two code snippets are doing different things
m

mp

02/20/2018, 10:43 AM
Those 3 also can give 3diff results I think collections .filter { it.conditionA } .filter { it.conditionB } .filter { it.conditionC } collections .filter { it.conditionB } .filter { it.conditionA } .filter { it.conditionC } collections .filter { it.conditionC } .filter { it.conditionB } .filter { it.conditionA }
a

arekolek

02/20/2018, 11:38 AM
I don't think so 😛 Can you give an example where they do?
m

mp

02/20/2018, 12:21 PM
yes... probably my miss... I have tried to create this case but have failed
n

nkiesel

02/21/2018, 3:18 AM
the "trick Q" refers to the point that it should use
&&
and not
||
👍 1