Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Completely Empty by tokyoamado
def completely_empty(val):
return isIter(val) and all(completely_empty(i) for i in iter(val))
def isIter(i):
return (hasattr(i, '__iter__') and i.__iter__
or hasattr(i, '__getitem__') and i.__getitem__)
Oct. 25, 2017