I have a list which is a list of list (of list ...)
[ [], [ [] ] ]
Can I make a lambda function that returns the sum of the length of the lists at the bottom of this tree?
The one up here will return 0 because contains only empty lists. but this one:
[ ['foo'], [ [ [], [] ] ] ]
will return 3 which is the length of 'foo'. This one:
[ 'aa', [], [ ['ab'], [] ] ]
will return 4.
Thanks!