Using contains on a empty list

2
When I have a list I can check if this list contains a certain object or list. The result will be a boolean. When the list is empty and I have an object the result of this action is false. But now the other way around. I have a list, but the object is empty. Then the result of the contain action is true. Would it not be more logical that the result of this check is the same ie. false instead of true? I am still not sure if this is a bug or just something you need to be aware of when doing the check and check first if both lists/object is not empty. What is your opinion? Regards, Ronald
asked
0 answers