on master help sign in
Fix a syntax error in the Native.List module.
commit965162e529bc561fcd80f486315930b5f3a2086f authorevancz <info@elm-lang.org> dateSun 3 Mar 2013, 07:54 (14 years ago) parent8800fa3
1 file changed+3−3
core/Native/List.js+3−3
core/Native/List.js+3−3
@@ -54,8 +54,8 @@ import Native.Function
5454 return root;
5555 }
5656
57− function head(v) { v.ctor === "Nil" ? throwError('head') : return v._0; }
58− function tail(v) { v.ctor === "Nil" ? throwError('tail') : return v._1; }
57+ function head(v) { return v.ctor === "Nil" ? throwError('head') : v._0; }
58+ function tail(v) { return v.ctor === "Nil" ? throwError('tail') : v._1; }
5959
6060 function last(xs) {
6161 if (xs.ctor === "Nil") { throwError('last'); }
@@ -95,7 +95,7 @@ import Native.Function
9595 }
9696
9797 function foldl1(f, xs) {
98− xs.ctor === "Nil" ? throwError('foldl1') : return foldl(f, xs._0, xs._1);
98+ return xs.ctor === "Nil" ? throwError('foldl1') : foldl(f, xs._0, xs._1);
9999 }
100100
101101 function foldr1(f, xs) {