(Dec-14-2018, 09:23 PM)Gribouillis Wrote: Yes, I wouldn't have answered this in SO, it's against the rules to give code this way. I do it here because I find it funny to solve this question. I hope it's not homework.
Thank you very much man, you are very kind and helpful!
As for SO - fair enough! Didn't know how that forum works, I thought one can just ask for such thing, but I realized in no time that my request was not welcome. :-)