It helped me learn C 10 years ago when I was a student. Sadly, I doubt it's still relevant nowadays.
It is also just a little bit tricky to do this if you are working with an LLM that is able to add additional code or do some other kind of refactoring.
I've always liked the idea that familiarity doesn't breed repetition, rather repetition breeds familiarity (I think this is a quote but can't find the source now) and it's always made me wonder how much is gained from some of the repetitive parts of re-typing, such as does this help embed concepts?
So I think it depends on how much the person is thinking through what they are typing?
⸻
1. This has its roots in my high school writing practice where I wrote using a manual typewriter (sitting on the floor of my bedroom in my parents’ basement) and the only way to revise my copy was to retype a clean version of it.
The obvious theory is it is better because you are going slower and are more focused.
Less obvious theory: I also think that the activation of the muscles stimulate the brain (that's why we have muscle memory)