我正在尝试创建一个处理非常大的数字的gcd函数.因此,到目前为止我尝试的任何事情都会导致错误.例如 :
fun gcd(a : Int.toLarge, b : Int.toLarge): Int.toLarge =
if b = 0
then a
else gcd(b, a mod b)`
Run Code Online (Sandbox Code Playgroud)
给我以下错误:
Error:unbound type constructor : toLarge in path Int.toLarge
Run Code Online (Sandbox Code Playgroud)
有人可以给我一些建议,我的程序的其余部分似乎工作正常.先感谢您 !