Potential enhancement to the dd function as well would be a graceful failure (I'm sure someone at some point would be confused as to why w is undefined in a recursive function).
Really interesting solution though, love it!
You're very right!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.