aboutsummaryrefslogtreecommitdiff
path: root/languages/c
diff options
context:
space:
mode:
Diffstat (limited to 'languages/c')
-rw-r--r--languages/c/c++/lambda-core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/languages/c/c++/lambda-core.cpp b/languages/c/c++/lambda-core.cpp
index a6ce614..c9e73b9 100644
--- a/languages/c/c++/lambda-core.cpp
+++ b/languages/c/c++/lambda-core.cpp
@@ -39,7 +39,7 @@ constexpr auto succ = [](const auto &n) {
constexpr auto one = succ(zero);
-constexpr auto pred(const auto &n) {
+constexpr auto pred = [](const auto &n) {
return [&n](const auto &f) {
return [&n, &f](auto x) {
return n([&f](const auto &g) {
@@ -47,7 +47,7 @@ constexpr auto pred(const auto &n) {
})([x](const auto &u) { return x; })([](const auto &a) { return a; });
};
};
-}
+};
namespace test {
constexpr unsigned int convert(const auto &n) {