add another lambda example

pull/7/head
wackbyte 2022-04-18 20:04:04 -04:00
parent 7e27952e10
commit b729211405
Signed by untrusted user: wackbyte
GPG Key ID: 937F2AE5CCEFBF59
1 changed files with 10 additions and 0 deletions

View File

@ -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;