Since the given type is List you can use a list comprehension or recursion to do this more efficiently with less code than using Enum.reduce