those two code snippets are doing different things
# announcements
a
those two code snippets are doing different things
m
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
I don't think so 😛 Can you give an example where they do?
m
yes... probably my miss... I have tried to create this case but have failed
n
the "trick Q" refers to the point that it should use
&&
and not
||
👍 1