gestioCOF/shared/utils.py

6 lines
132 B
Python
Raw Normal View History

2019-06-26 18:57:16 +02:00
from functools import reduce
def choices_length(choices):
return reduce(lambda m, choice: max(m, len(choice[0])), choices, 0)