Make sure func only receives two arguments in foldLeft