1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-06-26 06:29:28 +00:00

Update README.md

This commit is contained in:
David Schmenk 2017-08-03 12:00:41 -07:00 committed by GitHub
parent c30b5b0ee9
commit 4117e490c8

View File

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