Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 5a1704f

Browse files
Fixing Issue #535
1 parent 3356965 commit 5a1704f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doc/gettingstarted/transducers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Transducers with Observable Sequences #
22

3-
Much like Language Integrated Query (LINQ), Transducers are composable algorithmic transformations. They, like LINQ, are independent from the context of their input and output sources and specify only the essence of the transformation in terms of an individual element. Because transducers are decoupled from input or output sources, they can be used in many different processes - collections, streams, observables, etc. Transducers compose directly, without awareness of input or creation of intermediate aggregates. There are two major libraries currently out there, Cognitect's [`transduce.js`](https://github.com/cognitect-labs/transducers-js) and James Long's [`transduce-js`](https://github.com/jlongster/transducers.js) which are both great for getting high performance over large amounts of data. Because it is collection type neutral, it is a perfect fit for RxJS to do transformations over large collections.
3+
Much like Language Integrated Query (LINQ), Transducers are composable algorithmic transformations. They, like LINQ, are independent from the context of their input and output sources and specify only the essence of the transformation in terms of an individual element. Because transducers are decoupled from input or output sources, they can be used in many different processes - collections, streams, observables, etc. Transducers compose directly, without awareness of input or creation of intermediate aggregates. There are two major libraries currently out there, Cognitect's [`transducer-js`](https://github.com/cognitect-labs/transducers-js) and James Long's [`transducers.js`](https://github.com/jlongster/transducers.js) which are both great for getting high performance over large amounts of data. Because it is collection type neutral, it is a perfect fit for RxJS to do transformations over large collections.
44

55
The word `transduce` is just a combination of `transform` and `reduce`. The reduce function is the base transformation; any other transformation can be expressed in terms of it (`map`, `filter`, etc).
66
```js
@@ -25,7 +25,7 @@ transduce(map(increment), concatItem, [], arr);
2525
// => [ 2, 3, 4, 5 ]
2626
```
2727

28-
Using Cognitect's [`transduce.js`](https://github.com/cognitect-labs/transducers-js) library, we can easily accomplish what we had above.
28+
Using Cognitect's [`transducers-js`](https://github.com/cognitect-labs/transducers-js) library, we can easily accomplish what we had above.
2929

3030
```js
3131
var t = transducers;
@@ -96,4 +96,4 @@ transduced.subscribe(
9696
// => Completed
9797
```
9898

99-
This opens up a wide new set of possibilities making RxJS even faster over large collections with no intermediate Observable sequences.
99+
This opens up a wide new set of possibilities making RxJS even faster over large collections with no intermediate Observable sequences.

0 commit comments

Comments
 (0)