fold on empty list should return empty list.