I asked how to do this for curiosity's sake more so than trying to solve a specific problem (the specific problem i was working with when this came to mind probably wouldn't have been a good use case for this anyways).