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
fn
case
Standard ML allows a lambda to have multiple branches, similar to case. Thus the following are equivalent
fn [] => 0 | x ::_ => x + 1; fn list => case list of [] => 0 | x :: _ => x + 1;
but the second currently throws
Encountered " "|" "| "" at line 3, column 12. Was expecting one of: <EOF> "andalso" ...
There are more examples in https://smlhelp.github.io/book/docs/start/syntax/.
The text was updated successfully, but these errors were encountered:
3c73f2f
No branches or pull requests
Standard ML allows a lambda to have multiple branches, similar to case. Thus the following are equivalent
but the second currently throws
There are more examples in https://smlhelp.github.io/book/docs/start/syntax/.
The text was updated successfully, but these errors were encountered: