Well done!
I started with a much longer function and eventually whittled down to something like this. I think breaking it out into a few extra lines and adding some comments would be even better in practice, to make the code easier to read and modify.
very clever!
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
great,but I cannot think of it
hahahahaha that's unbelievable
what ?
truly a great solution: concise and small!
very sharp thinking
I truly appreciate you!!
Wow, the second line is a monument on logical indexing!!!!
Its so smart you are
Well done!
I started with a much longer function and eventually whittled down to something like this. I think breaking it out into a few extra lines and adding some comments would be even better in practice, to make the code easier to read and modify.
this is very clever
Elegant, nice!