From 4117e490c8c878b281edc2758d7dc9d337c249a2 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Thu, 3 Aug 2017 12:00:41 -0700 Subject: [PATCH] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e727bd5..a85fd3b 100755 --- a/README.md +++ b/README.md @@ -1063,6 +1063,7 @@ def lambdas return &(x, y, z) x * z / y // You can even return lambdas from definitions (these x, y are different from the locally defined x, y) end ```` +There are some limitations to lambda functions. They don't have any local variables except for the parameters. They can only return an expression; there are no control flow statements allowed. Lastly, they can only be defined inside another definition. They cannot be defined in global data space or in the module main function (it gets deallocated after initialization). ### Control Flow