我对num
数字有疑问。我想归因
let one = num_of_int 1
let zero = num_of_int 0
所以我打开num
图书馆
open Num
当我想实现它时出错。
# open Num
# let one = num_of_int 1
# let zero = num_of_int 0;;
File "", line 2, characters 21-22:
Error: This expression has type Num.num
but an expression was expected of type int
如果可以的话,请更正它,并给我一些链接,我可以在哪里学习如何在未来解决这类问题。
感谢您的帮助。