on master help sign in
Add back definition for Native.List.Cons
44cc85eEvan Czaplicki
src/Generate/JavaScript/BuiltIn.hs+5
@@ -43,6 +43,11 @@ list elements =
43 Var.coreNative "List" "fromArray" <| JS.Array elements
43 Var.coreNative "List" "fromArray" <| JS.Array elements
44
44
45
45
46+cons :: JS.Expr -> JS.Expr -> JS.Expr
47+cons front back =
48+ JS.Call (Var.coreNative "List" "Cons") [front, back]
49+
50+
46
51
47-- RECORDS
52-- RECORDS
48
53