Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve list syntax sugar #7

Open
dagit opened this issue Dec 5, 2018 · 0 comments
Open

improve list syntax sugar #7

dagit opened this issue Dec 5, 2018 · 0 comments

Comments

@dagit
Copy link
Owner

dagit commented Dec 5, 2018

Currently [H|T] is sugar for cons(H,T), but this syntax should be more general and allow this form:

[H1, H2, ..., Hn | T]

Which translates to:

cons(H1, cons(H2, ..., cons(Hn, T)...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant