I've known about this stackoverflow post for a while, but seemingly the code has never made it to contrib. I think that it could come in handy once in a while, so why not add it?
[x] I've considered how to best test these changes (property, unit,
manually, ...) and concluded: I tested the extended example and things seem to work nicely; no actual tests (yet‽)
Description
I've known about this stackoverflow post for a while, but seemingly the code has never made it to contrib. I think that it could come in handy once in a while, so why not add it?
Checklist
[x] I've read CONTRIBUTING.md
[x] I've considered how to best test these changes (property, unit, manually, ...) and concluded: I tested the extended example and things seem to work nicely; no actual tests (yet‽)
[ ] I updated the
CHANGES.md
fileTODO