@JacobJanTuinstra Personally, though
you may well (understandably!) feel a bit cheated I'd 'cut Sathya some slack' because (i) his answer was first (if not quite complete others are encouraged to enhance answers rather than adjust and repost as their own), (ii) it is elegant (1 function v your 6), (iii) Sathya is a
very hard working moderator, (iv) how he manages to contribute as much as he does beats me and (v) he is brilliantly knowledgeable - so a 'pointer' from him will often be more valuable than a comprehensive answer from another. So even if you were 'robbed' it was in a good cause! —
pnuts 8 mins ago