We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Type assertions work, but more general patterns would be nice. This is a decent way to allow extending definitions.
The text was updated successfully, but these errors were encountered:
destructor functions can take a nested structure and return a list of values in order
structures are
struct(type partsList) var lit(value)
the structure for f x::[a [b c] | d] would be: struct('cons' [var struct('cons' [struct('cons' [var struct('cons' var lit(nil))]) var])]
the structure for f x::(person name addr) would be struct('person' [var var])
structures could be type[ ... ] or (type ...), with [] standing for just a cons
Patterns could work in lets, as well
Sorry, something went wrong.
No branches or pull requests
Type assertions work, but more general patterns would be nice. This is a decent way to allow extending definitions.
The text was updated successfully, but these errors were encountered: