【发布时间】:2017-03-10 09:06:13
【问题描述】:
我想打印 int * int 类型的方法的结果。
我试过这样:
printf "%d %d\n" (find (99, 10));;
但是,我得到:
Error: This expression has type int * int
but an expression was expected of type int
我在这里查看http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printf.html,但没有提到元组。
那么打印元组的正确方法是什么?
【问题讨论】:
标签: ocaml