Naps improve your working memory. This type of memory is involved in working on complex tasks where you have to pay attention to one thing while holding a bunch of other things in your memory. Napping also improves your memory retention; during sleep, recent memories are transferred to the neocortex, where long-term memories are solidified and stored.
More reason to work a nap into your daily routine. It will help you learn!