A useful way to verify is a set is empty. Instead of using mySet.Cardinality() == 0, we can use mySet.IsEmpty(). Is simplest, but improve readability. Another way that I think to do that was with a helper function, like empty(mySet), but I tried to follow the current object-oriented approach.
Hi @Jibaru - thanks for the contribution! At first glance this looks good to me. Let me give it a closer look and if I don't see any issues I'll merge away.
A useful way to verify is a set is empty. Instead of using
mySet.Cardinality() == 0
, we can usemySet.IsEmpty()
. Is simplest, but improve readability. Another way that I think to do that was with a helper function, likeempty(mySet)
, but I tried to follow the current object-oriented approach.This PR should close the issue #132