We can use `Enum.reduce` instead of `List.foldl`.