Sml 用EQUALOP ML错误替换逗号

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

用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 
x * power (x,y-1)
val z = power 2,3