on master help sign in
Give curry and uncurry the correct implementations. They were swapped.
7afe464evancz
libraries/Native/Prelude.js+4−4
@@ -27,8 +27,8 @@ Elm.Native.Prelude = function(elm) {
27
27
28 function id(n) { return n }
28 function id(n) { return n }
29 function flip(f,a,b) { return A2(f,b,a) }
29 function flip(f,a,b) { return A2(f,b,a) }
30+ function curry(f,a,b) { return f(Utils.Tuple2(a,b)) }
30− function curry(f,v) { return A2(f,v._0,v._1) }
31+ function uncurry(f,v) { return A2(f,v._0,v._1) }
31− function uncurry(f,a,b) { return f(Utils.Tuple2(a,b)) }
32 function fst(t) { return t._0 }
32 function fst(t) { return t._0 }
33 function snd(t) { return t._1 }
33 function snd(t) { return t._1 }
34
34
@@ -106,8 +106,8 @@ Elm.Native.Prelude = function(elm) {
106
106
107 id:id,
107 id:id,
108 flip:F3(flip),
108 flip:F3(flip),
109− curry:F2(curry),
109+ curry:F3(curry),
110− uncurry:F3(uncurry),
110+ uncurry:F2(uncurry),
111 fst:fst,
111 fst:fst,
112 snd:snd
112 snd:snd
113 };
113 };