API Reference

An API reference is provided with the RxJs download package, in CHM (Windows help file) format. Here's the same content converted into HTML format.

Select :: Observable a -> (a -> b) -> Observable b

Haskell list analogy : map
Maps values using given mapping function. Useful for transforming events to other events. For instance, transforming mouse clicks into values as in the Counter example in examples.

Merge :: Observable a -> Observable a -> Observable a

Haskell list analogy : ++
Merges two streams into one. Useful for combining data from multiple streams.

Scan :: Observable a -> b -> (b -> a -> b) -> Observable b

Haskell list analogy : scanl
Applies given transformation to stream, with an accumulator/state value. Useful for maintaining a cumulative sum or such. See the Counter in examples.