I ate a *lot* of raw carrots as a kid because they are supposedly good for eyesight and I'm very nearsighted. Now yellow corn is always cooked otherwise it is inedible. A lot of fruit cooking is done to preserve the fruit, which is usually seasonal. Now we get fresh fruit from South America flown in, but that wasn't always the case.
Artemis