Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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
它给了我一个错误,用 EQUALOP 替换 COMMA 。我不明白代码中的错误是什么?
您需要power在声明的参数周围加上括号z:
power
z
val z = power (2,3);