Mod
Lambda
Atomic lambda string-parser for Lua.
lua-lambda
Takes a string, returns a function for quick function definition.
Usage
The lambda format is as follows:
l"(args) expr"
Example:
local add_one = l"(x) x+1"
print(add_one(5)) --> 6
Why?
Because Lua needs more atomic modules which add functionality without creating a huge library. This module is supposed to be dead-simple to grab and start using in your project without adding anything extra. One of Lua's strengths is minimalism, and I think that it's ecosystem would do well to mirror that.
Links
- Source: https://gitlab.com/benrob0329/lua-lambda.git
- Original ContentDB page: content.luanti.org/packages/benrob0329/lambda/
License
CC0-1.0
| Version | Date | Min engine | Size | Download |
|---|---|---|---|---|
| v1.1 | 2021-06-16 01:10:18 | 4.7 KB | Download |