Use a right- instead of left-associative fold