Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Indicate ALL syntax errors of each SML statement and try to correct. Eg . 3 , 1 = 2 answer 1 = > type mismatch
Indicate ALL syntax errors of each SML
statement and try to correct.
Eg
answer type mismatch for a list,
has to be boolean.
answer type mismatch for a list,
has to be int such as
answer different type of values, can
not be list, tuple instead
valx if hd false then tI ;
val ;
val string real, hd tl ;
val if hd then tl else
nil;
val hd tl ord tl
explodeab;
val hd tl tl ;
val div if true then else ;
tl hd floor ceil;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started