Mental life is a series of experiments in adaptation.