【发布时间】:2012-09-10 02:48:17
【问题描述】:
我正在尝试使用以下代码在 OCaml 中创建一组元组
let (k : (string*string) Stack.t) = Stack.create ;;
但是这样做时我在编译时遇到错误
Error: This expression has type unit -> 'a Stack.t
but an expression was expected of type (string * string) Stack.t
我对 OCaml 很陌生。有人能指出我哪里出错了吗?
【问题讨论】: