gestioCOF/shared/utils.py
2019-10-15 21:51:23 +02:00

5 lines
132 B
Python

from functools import reduce
def choices_length(choices):
return reduce(lambda m, choice: max(m, len(choice[0])), choices, 0)