recent study by Australian nutrition researcher Georgina Crichton and team analysed data generated by the huge Maine-Syracuse Longitudinal Study, which has tracked lifestyle factors and health outcomes of nearly 1,000 people for decades.

Between 2001 and 2006 that included gathering detailed information about the subjects' diets.

What did Crichton's team find when they crunched the numbers?

The happiest health science news you'll read all day.

After careful analysis that controlled for other lifestyle factors, the team discovered that one utterly surprising food appeared to significantly improve mental function -- chocolate.

Yup, you heard that right. Not worthy but unexciting fiber or kale, but yummy, delicious chocolate. These scientists are actually recommending you eat more of one of the tastiest foods around.

Exactly what effects might more consumption of chocolate have? The team saw a connection between at least weekly chocolate munching and improved "visual-spatial memory and organisation, working memory, scanning and tracking, abstract reasoning, and the mini-mental state examination." In short, chocolate appears to make your brain work better.

And no, it's not just that clever people eat more chocolate. A follow-up study confirmed that more consumption of the sweet stuff led to improved cognitive function, not the other way around.

Why the brain loves chocolate

Why exactly does eating chocolate have such positive effects on our brains? No one is 100 percent sure and more research is planned, but the researchers offered some hypotheses to the Washington Post.

"Nutrients called cocoa flavanols, which are found naturally in cocoa, and thus chocolate, seem to have a positive effect on people's brains," notes the paper, citing several previous studies. "Chocolate, like both coffee and tea, also has methylxanthines, plant produced compounds that enhance various bodily functions," it adds.