Skip to content

Commit

Permalink
Made scan description more accurate and linked to ref docs (#3904)
Browse files Browse the repository at this point in the history
* Made scan description more accurate and linked to ref docs

* Changed URLs to be relative to root
  • Loading branch information
jonahbron authored and benlesh committed Jul 26, 2018
1 parent 93127f2 commit 9c12ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fromEvent(button, 'click')
.subscribe(count => console.log(`Clicked ${count} times`));
```

The **scan** operator works just like **reduce** for arrays. It takes a value which is exposed to a callback. The returned value of the callback will then become the next value exposed the next time the callback runs.
The [**scan**](/api/operators/scan) operator works similarly to [**reduce**](/api/operators/reduce) for arrays, except it emits every accumulated value instead of only the final one. It takes a value which is exposed to a callback. The returned value of the callback will then become the next value exposed the next time the callback runs.

### Flow

Expand Down

0 comments on commit 9c12ec0

Please sign in to comment.