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)());
—from C++26 Standard Draft N4964 - Lambdas in C++ Constant Expressions, a software by C++ Committee
Active since December 6, 2023.
179 total characters in this text.
View Pit Stop page for this text
Universe | Races | Average WPM | First Race |
---|---|---|---|
Coder Edition | 2,283 | 37.05 | December 6, 2023 |