I wrote a Stackoverflow for this (same solution as Eric Traut) and also created an Issue to include this in stdlib.
Currently working on PR.
I wrote a Stackoverflow for this (same solution as Eric Traut) and also created an Issue to include this in stdlib.
Currently working on PR.