Skip to content

improve list syntax sugar #7

Description

@dagit

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)...)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions