1. 5
  1.  

  2. 1

    (No general “functional programming” tag, so I used “haskell” which seemed like the next closest thing. If that’s an abuse of the tag, sorry!)

    1. 1

      What in the world is with the bracket notation?

      x.matchE(
          [](int& x){ ++x; },
          [](const std::string& x){ std::cout << x; }
      );
      
      1. 1

        That’s C++11 lambda syntax.