3
我想與SML中的大整數在這個環節上進行計算,通過像戰俘功能:如何在SML中使用IntInf或LargeInt?
http://www.standardml.org/Basis/int-inf.html#IntInf:STR:SPEC
可是我怎麼去用這個「圖書館」?
UPDATE:
感謝您的回答。我知道了。我還與
Control.Print.intinfDepth := 10000;
我做我自己的戰俘功能IntInfs(和它的作品)這樣的改變限制打印:
fun power 0 = IntInf.toLarge 1
| power n = IntInf.toLarge 2 * power(n-1);