- foldleft is more readable than recursive functions