Yakk - Adam Nevraumont

235,777
reputation
25
285
465
template<class R, class...Args>
auto Y = [] (auto f) {
  auto action = [=] (auto action) -> std::function<R(Args...)> {
    return [=] (Args&&... args)->R {
      return f( action(action), std::forward<Args>(args)... );
    };
  };
  return action(action);
};

Some fun C++ stuff I've done round here:

Here is a neat question I didn't ask:

the answer seems to be "actually, nope, but nobody noticed".

An amusing link:

which will show your reputation history on stack overflow, if you like that kind of thing.

ey eir em