如果我有一个类型t
type t = C of string;;
并且想要明确定义变量的类型为t:
let b : t = C 'MyString';;
我可以在OCaml中做到吗?
ocaml
ocaml ×1