Reactive Extensions for Lua

bjorn f45197c969 Add tests to README; %!s(int64=10) %!d(string=hai) anos
doc 151bf6f8ca Update documentation; %!s(int64=10) %!d(string=hai) anos
examples ec090ab76a Remove sum example; %!s(int64=10) %!d(string=hai) anos
tests b9ca5df1bf Test Observable.tap; %!s(int64=10) %!d(string=hai) anos
tools 28429ab7f8 Improve documentation; %!s(int64=10) %!d(string=hai) anos
.travis.yml 122b683bec Travis; %!s(int64=10) %!d(string=hai) anos
LICENSE d64834faa6 Initial commit; %!s(int64=10) %!d(string=hai) anos
README.md 85402b1e24 Add tests to README; %!s(int64=10) %!d(string=hai) anos
rx.lua b1b5bba230 Allow custom formatting for Observable.dump; %!s(int64=10) %!d(string=hai) anos

README.md

RxLua Build Status

Reactive Extensions for Lua.

Examples

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.

Documentation

See here.

Tests

Uses lust. Run with:

lua tests/runner.lua

or, to run a specific test:

lua tests/runner.lua skipUntil

Related

License

MIT, see LICENSE for details.