Add back definition for Native.List.Cons
commit44cc85e68473576af7fa59e4dd9582758aab1426
authorEvan Czaplicki <evancz@users.noreply.github.com>
dateThu 30 Mar 2017, 12:31 (10 years ago)
parentbfae985
src/Generate/JavaScript/BuiltIn.hs+5
@@ -43,6 +43,11 @@ list elements =
4343 Var.coreNative "List" "fromArray" <| JS.Array elements
4444
4545
46+cons :: JS.Expr -> JS.Expr -> JS.Expr
47+cons front back =
48+ JS.Call (Var.coreNative "List" "Cons") [front, back]
49+
50+
4651
4752-- RECORDS
4853