Hi!
I noticed that the very useful ContainsAll
function returns false
when I check if a list contains an empty list.
This is demonstrable with simple formulas:
-
list('a', 'b', 'c').containsall(list('a', 'b'))
returnstrue
. -
list('a', 'b', 'c').containsall(list('a'))
returnstrue
. -
list('a', 'b', 'c').containsall(list())
returnsfalse
.
I feel like the last item should return true
as well, since the empty set is a subset of any set.
I realize that this behavior is bypassable if I include a check for emptiness in my formulas, like this:
or(list().isblank(), list('a', 'b', 'c').containsall(list()))
But I think that eventually this will have to be rectified.
I tried to search the forums here before writing the topic, but please let me know if I missed something
Thanks!