如何在 OCaml 的 tuareg 模式下显示缓冲区上的所有结果

How to show all result on buffer in OCaml's tuareg mode

在OCaml的tuareg模式下,如果结果很大,我看不到执行结果,如下所示。

# function ();;
- : tree_t =
Node (Node (Node (Node (Node (Node (Node
             (Node (Node (Node (Empty, 1, Empty), 2, Empty), 3,
      ...), 
    ...),
  ...))

我看不到执行结果,因为有些部分显示为“...”。 如何在 OCaml 的 tuareg 模式下查看缓冲区中的所有结果?

使用print_depthprint_length指令增加打印数据量,例如

# #print_depth 100500;;