Ad
  • Custom User Avatar

    Actually, for this particular requirement this would be efficient in certain cases where multiple matches are created and removed on each swipe. I have to say, this is a very elegant solution.

    However, I would like to also to point out that this solution could not be applied to a more common scenario where braces have content. Your code would not be as "cute" in that case. But this was not the requirement of this Kata, so, well done!