Ad
  • Default User Avatar

    Haha, yes, it takes some time to get used to that way of thinking which is employed in functional programming. Especially when you are coming from a mostly procedural language like C or C++. Although I must say that C++ has adopted more and more of the functional stuff in recent standard revisions (and thus has become more Pythonic): it always had the "algoritm" and "functional" library headers but with the advent of C++11 lambdas and C++20 ranges, things have become much more advanced.

  • Default User Avatar

    i love this one, definitely clever.

  • Default User Avatar

    this solution makes mine look like it was written by an actual lunatic
    im such a hack when it comes to fp