mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 02:52:21 +00:00
Updated README.md and tests for lume.combine()
This commit is contained in:
@@ -217,8 +217,9 @@ lume.time(function(x) return x end, "hello") -- Returns 0, "hello"
|
||||
|
||||
### lume.combine(...)
|
||||
Creates a wrapper function which calls each supplied argument in the order they
|
||||
were passed to `lume.combine`. The wrapper function passes its own arguments to
|
||||
each of its wrapped functions when it is called.
|
||||
were passed to `lume.combine()`; nil arguments are ignored. The wrapper
|
||||
function passes its own arguments to each of its wrapped functions when it is
|
||||
called.
|
||||
```lua
|
||||
local f = lume.combine(function(a, b) print(a + b) end,
|
||||
function(a, b) print(a * b) end)
|
||||
|
Reference in New Issue
Block a user