Added explanation of calling lume() to the README

This commit is contained in:
rxi 2014-12-13 01:00:47 +00:00
parent 8f1267f967
commit bcad07fc5f

View File

@ -350,6 +350,11 @@ lume.chain({1, 2, 3, 4})
:map(function(x) return -x end)
: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