mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Added explanation of calling lume() to the README
This commit is contained in:
parent
8f1267f967
commit
bcad07fc5f
@ -350,6 +350,11 @@ lume.chain({1, 2, 3, 4})
|
|||||||
:map(function(x) return -x end)
|
:map(function(x) return -x end)
|
||||||
:result() -- Returns { -2, -4 }
|
:result() -- Returns { -2, -4 }
|
||||||
```
|
```
|
||||||
|
The table returned by the `lume` module, when called, acts in the same manner
|
||||||
|
as calling `lume.chain()`.
|
||||||
|
```lua
|
||||||
|
lume({1, 2, 3}):each(print) -- Prints 1, 2 then 3 on separate lines
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
Loading…
Reference in New Issue
Block a user