I'm trying to find a suitable forum in which to ask my question. It's been rejected as off-topic in two places so far, and I wonder if this might be a good place for it.
Would this question be welcome here?
No. Coding questions are off-topic here.
Not all questions have a home somewhere on Stack Exchange. Some are simply not suitable for the Stack Exchange format, or don't fall within the scope of any existing Stack Exchange site.
Also, it's currently posted on Stack Overflow (https://stackoverflow.com/q/59756073/781723) and has an answer there. We don't allow cross-posting the same question on multiple sites; that has the potential to waste answerer's time.