|
9 years ago | |
---|---|---|
doc | 9 years ago | |
examples | 9 years ago | |
src | 9 years ago | |
tests | 9 years ago | |
tools | 9 years ago | |
.travis.yml | 9 years ago | |
LICENSE | 10 years ago | |
README.md | 9 years ago | |
rx.lua | 9 years ago |
Reactive Extensions for Lua.
Cheer someone on using functional reactive programming:
local Rx = require 'rx'
Rx.Observable.fromRange(1, 4)
:map(function(x) return x * 2 end)
:concat(Rx.Observable.fromValue('who do we appreciate'))
:map(function(value) return value .. '!' end)
:subscribe(print)
See examples for more.
See here.
See here.
Uses lust. Run with:
lua tests/runner.lua
or, to run a specific test:
lua tests/runner.lua skipUntil
MIT, see LICENSE
for details.