What has become clear is that sleep plays a role in cognition. For example, sleep can facilitate problem solving. This is the realm of “sleeping on a problem,” and then suddenly discovering a solution the next morning while you’re cleaning crud out of the corners of your eyes.