add another lambda example

This commit is contained in:
wackbyte 2022-04-18 20:04:04 -04:00
parent bbed2d7ab4
commit b523965820

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;