mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 11:02:20 +00:00
Fixed lume.call() section of README.md
This commit is contained in:
@@ -255,13 +255,12 @@ f(3, 4) -- Prints "7" then "12" on a new line
|
|||||||
```
|
```
|
||||||
|
|
||||||
### lume.call(fn, ...)
|
### lume.call(fn, ...)
|
||||||
Calls the given function with the provided arguments and returns its value. If
|
Calls the given function with the provided arguments and returns its values. If
|
||||||
`fn` is nil then no action is performed and the function returns nil.
|
`fn` is `nil` then no action is performed and the function returns `nil`.
|
||||||
```lua
|
```lua
|
||||||
_.call(print, "Hello world") -- Prints "Hello world"
|
lume.call(print, "Hello world") -- Prints "Hello world"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### lume.time(fn, ...)
|
### lume.time(fn, ...)
|
||||||
Inserts the arguments into function `fn` and calls it. Returns the time in
|
Inserts the arguments into function `fn` and calls it. Returns the time in
|
||||||
seconds the function `fn` took to execute followed by `fn`'s returned values.
|
seconds the function `fn` took to execute followed by `fn`'s returned values.
|
||||||
|
Reference in New Issue
Block a user