prakhar1989 / JSJS

A strongly typed language for the web!
http://jsjs-lang.org
MIT License
40 stars 5 forks source link

Add a cons operator #36

Closed prakhar1989 closed 8 years ago

prakhar1989 commented 8 years ago

OCaml style syntax -

val new_list = 4 :: [1, 2, 3]
bahuljain commented 8 years ago

I was thinking of the same thing!! :-P It will be quite easy to do that as well.

prakhar1989 commented 8 years ago

@bahuljain Yo! Just sent in a new commit. Adding it now in codegen and semantic.