Given a set where each element is a string, how can I reduce the set into an integer that is the sum of the length of these strings?
setA = ("hi", "hello", "bye")
reduce(lambda .... for word in setA)
Calling reduce with some lambda function should return 10 (2 + 5 + 3).
I can do it with a couple lambdas, I think, but there must be a cleaner way.