rx 0.0.1

Reactive Extensions for D Programming Language.


To use this package, run the following command in your project's root directory:

Reactive Extensions for D Programming Language

Build Status

Example

import rx;
import std.algorithm : equal;
import std.array : appender;
import std.conv : to;

void main()
{
    auto subject = new SubjectObject!int;
    auto pub = subject
        .filter!(n => n % 2 == 0)
        .map!(o => to!string(o));

    auto buf = appender!(string[]);
    auto disposable = pub.subscribe(buf);

    foreach (i; 0 .. 10)
    {
        subject.put(i);
    }

    auto result = buf.data;
    assert(equal(result, ["0", "2", "4", "6", "8"]));
}

Future work

  • more algorithms
  • reduce(aggregate)
  • zip
  • takeUntil
  • skipUntil
  • more utilities
  • generators
  • more test
  • more documents

License

This library is under the MIT License.

Some code is borrowed from Rx.NET.

Authors:
  • lempiji
Dependencies:
none
Versions:
0.13.0 2019-Jun-16
0.12.1 2019-May-25
0.12.0 2019-May-25
0.11.0 2019-May-03
0.10.1 2019-Feb-09
Show all 30 versions
Download Stats:
  • 0 downloads today

  • 2 downloads this week

  • 18 downloads this month

  • 5269 downloads total

Score:
1.9
Short URL:
rx.dub.pm