📅 2009-Oct-22 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ empty, lists, python ⬩ 📚 Archive
# Note: all([]) returns True
def isListEmpty(inList):
if isinstance(inList, list): # Is a list
return all( map(isListEmpty, inList) )
return False # Not a list