From 37fd7bc9e1db3832942d9be07aade65e60487840 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 675ed2c..cac0c39 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;