# type foo = Foo of int * int # let t = (1, 2) # Foo t Error: The constructor Foo expects 2 argument(s), but is applied here to 1 argument(s)
它是如何,我必须这样做Foo (1, 2),以避免错误甚至牛逼有合适的类型?
Foo (1, 2)
constructor ocaml
constructor ×1
ocaml ×1