f-streams

Yet another streams library for Lua.

$ luarocks install f-streams

`f-streams` is yet another streams library for Lua.

A stream is simply a function or any value with a `__call` metamethod.

A stream produces a new value each time is called.
When a stream returns `nil`, it indicates its termination.
Then, all subsequent calls to the stream must also return `nil`.

Streams can be combined with other streams or values to create new streams.

`TODO: finalization`

Streams are compatible with the generic [for](lua-for) loop of Lua, including
proper finalization when the loop ends.

Versions

dev-1dev2 days ago0 downloads
0.2-4241 days ago(revision: 2)59 downloads
0.2-3246 days ago2 downloads
0.2-2246 days ago2 downloads
0.2-1247 days ago3 downloads
0.1-1279 days ago(revision: 3)3 downloads

Dependencies

lua ~> 5.4

Dependency for

atmos

Manifests