Record your races with a typeracer account:
Create Your Account- Save your race history and scores.
- Customize your profile and racecar.
- It’s free, why not?
Text Details
|
auto monad = [](auto v) { return [=] { return v; }; }; auto bind = [](auto m) { return [=](auto fvm) { return fvm(m()); }; }; static_assert(bind(monad(2))(monad)() == monad(2)());
— C++26 Standard Draft N4964 - Lambdas in C++ Constant Expressions
|
Language: | English |
Submitted by: | muchinchai |
This text has been typed
more than
1000 times:
Avg. speed: | 36 WPM |
---|---|
Avg. accuracy: | 94.0% |