I asked a question and provided two solutions which do not work (hoping that someone would have another solution).
When comments "it works for me" started to come in, I tried again the code in the question and ... it works. I do not know why, when building the question I quadrupled-checked. Anyway.
What do do with such a question?
- it is reasonably useful (I believe) and covers a reasonable use case. It could be left as it so that other, when searching, find it.
- there will probably be no answer as the answer is in the question.
Should I leave it as it?
Or completely reorganize it? (in the form of a minimalistic one-liner question and move my code to an answer)
Or delete it as it may seem useful only to me?