在ocaml中使用以下类型定义:
type yearday = YMD of int * int * int
你将如何访问该类型的不同的int?就像我只想要第一个int的值一样.
ocaml
ocaml ×1