Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
