Skip to content

Commit

Permalink
fix(csp): fix #5, more example fixes (rfn calls)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 7, 2018
1 parent a10a487 commit 080c2ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/csp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const results = new Mult("results");
// tap result channel and sum word counts
const counter = results
.tap(tx.map(x => x[1]))
.reduce(tx.add);
.reduce(tx.add());

// 2nd output channel with streaming sort transducer
// (using a sliding window size of 500 items) and dropping
Expand All @@ -76,7 +76,7 @@ const sorted = results.tap(
// into the `sorted` channel
// (`freqs` is a JS Map and is iterable)
paths.pipe(proc)
.reduce(tx.frequencies)
.reduce(tx.frequencies())
.then(freqs => results.channel().into(freqs));

// start tracing sorted outputs and
Expand Down

0 comments on commit 080c2ee

Please sign in to comment.