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

6 lines
132 B
Python

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