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
Example implementation file
fun max1(xs : int list) = if null xs then NONE else let val tl_ans = max1(tl xs) in if isSome tl_ans andalso valOf tl_ans > hd xs then tl_ans else SOME (hd xs) end
... test file
val test3 = valOf(max1 []);
... result
uncaught exception Option raised at: smlnj/init/pre-perv.sml:25.28-25.34
sml-test reports nothing.
sml-test
The text was updated successfully, but these errors were encountered:
3f0c107
lancelote
No branches or pull requests
Example implementation file
... test file
val test3 = valOf(max1 []);
... result
sml-test
reports nothing.The text was updated successfully, but these errors were encountered: