Sml 用EQUALOP ML错误替换逗号
用EQUALOP替换逗号时出现了一个错误。我不明白代码中的错误是什么 在Sml 用EQUALOP ML错误替换逗号,sml,ml,Sml,Ml,用EQUALOP替换逗号时出现了一个错误。我不明白代码中的错误是什么 在z的声明中,power的参数周围需要括号: val x =10; fun power (x:int, y:int) = if y=1 then x else x * power (x,y-1) val z = power 2,3 在z的声明中,power的参数周围需要括号: val x =10; fun power (x:int, y:int) = if y=1 then x else
z
的声明中,power
的参数周围需要括号:
val x =10;
fun power (x:int, y:int) =
if y=1
then x
else
x * power (x,y-1)
val z = power 2,3
在
z
的声明中,power
的参数周围需要括号:
val x =10;
fun power (x:int, y:int) =
if y=1
then x
else
x * power (x,y-1)
val z = power 2,3