为什么以下功能不会结束?
(* funct1 is a different function that does end *)
fun funct(a,b::bs)=let val c=a in funct1(c,a,b::bs);
= ;
= ;
= ;
= ;
stdIn:15.54-17.2 Error: syntax error: deleting SEMICOLON SEMICOLON SEMICOLON
答案 0 :(得分:1)
在这种情况下,错误消息非常有用。该功能未结束,因为您需要end
关键字而不是;
。这是SML中let...in...end
块的语法。
fun funct (a, b::bs) = let val c = a in funct1 (c, a, b::bs) end