Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix examples on page to reflect current API.

  • Loading branch information...
commit 0ec517f2fae26496dcd8d3ccaed6ae9638602886 1 parent 7271046
Richard L. Hudson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 interactive/index.html
View
4 interactive/index.html
@@ -74,9 +74,9 @@
<br/>
Some more idioms to play with: <br/>
<br />
-<i>increment: </i><b>var result = first.map(function f() {return this+1;})</b><br/>
+<i>increment: </i><b>var result = first.map(function f(val) {return val+1;})</b><br/>
<i>add: </i><b>var result = first.combine(function f(idx,snd) {return this.get(idx)+snd.get(idx);}, second)</b><br/>
-<i>sum: </i><b>var result = first.reduce(function f(acc) {return this+acc;})</b><br/>
+<i>sum: </i><b>var result = first.reduce(function f(a, b) {return a + b;})</b><br/>
<br/>
Enjoy!<br/>
<br/>
Please sign in to comment.
Something went wrong with that request. Please try again.