From b52396582005a385596f1651543b7e1aac72c6c8 Mon Sep 17 00:00:00 2001 From: wackbyte Date: Mon, 18 Apr 2022 20:04:04 -0400 Subject: [PATCH] add another lambda example --- examples/lambda.able | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/lambda.able b/examples/lambda.able index 675ed2c7..cac0c395 100644 --- a/examples/lambda.able +++ b/examples/lambda.able @@ -5,3 +5,13 @@ dim with_world λ (var) { dim foo /*Hello, */; with_world(foo); foo print; + + + +functio add1(var) { + 1 + var =: var; +} + +dim bar 0; +(add1 * λ () { /*Goodbye, world!*/ print; })(bar); +bar print;