Most people know that cannabis affects memory, sometimes negatively. It can also, however, restore cognitive function.