Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanjosolutions/luafunction
A library for functional programming.
https://github.com/sanjosolutions/luafunction
wow wow-addon wow-addon-lib
Last synced: 4 days ago
JSON representation
A library for functional programming.
- Host: GitHub
- URL: https://github.com/sanjosolutions/luafunction
- Owner: SanjoSolutions
- License: unlicense
- Created: 2020-12-27T22:58:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T07:05:06.000Z (12 months ago)
- Last Synced: 2024-05-01T19:25:53.357Z (8 months ago)
- Topics: wow, wow-addon, wow-addon-lib
- Language: Lua
- Homepage: https://www.patreon.com/addons_by_sanjo
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lua Function
This work is devoted to God.
A library for functional programming. This can help other add-on creators to save some work.
**Functions included:**
* **Function.partial**: a function for partial application.
* **Function.curry**: a function for currying a function.
* **Function.noOperation**: a function that "does nothing".
* **Function.identity**: a function which returns the value passed to it.
* **Function.alwaysTrue**: a function which returns true.
* **Function.isTrue**: a function that checks if a value is "truthy".
* **Function.returnValue**: a function that returns a function which returns the given value.
* **Function.once**: a function which creates a new function which runs the given function only on the first call (once).
* **Function.alwaysFalse**: a function which returns false.## How to use
Please see "[How to use Library](https://github.com/SanjoSolutions/LuaLibrary#how-to-use)" for how to use this library.
## Support
You can support me on [Patreon](https://www.patreon.com/addons_by_sanjo).