mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-06 09:30:06 +00:00
Update README.md
This commit is contained in:
parent
c30b5b0ee9
commit
4117e490c8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user