on-internet
← Community

Why isn't this true/false implication function working in SML?

Stack Overflow ·

val implies = fn x y = case x of false andalso case y of false => true | fn x y = case x of false andalso case y of true => true | fn x y = case x of true andalso case y of false => false | fn x y = case x of true andalso case y of true => true; I can't get this to compile. I'm relatively new to SML so not quite getting the general language and syntax. What have I done wrong?

Comments

Sign in or sign up to comment and upvote.

No comments yet.