Reactive Extensions for Lua

bjorn 241c4062af Observable.elementAt; 10 anos atrás
doc 241c4062af Observable.elementAt; 10 anos atrás
examples 01b87a5577 Fix scheduler examples; 10 anos atrás
src 241c4062af Observable.elementAt; 10 anos atrás
tests 241c4062af Observable.elementAt; 10 anos atrás
tools 241c4062af Observable.elementAt; 10 anos atrás
.travis.yml c4a0b9f48a test 5.1, 5.2 and luajit 10 anos atrás
LICENSE d64834faa6 Initial commit; 10 anos atrás
README.md 0413266ca8 Update README; 10 anos atrás
rx.lua 241c4062af Observable.elementAt; 10 anos atrás

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.