有没有一种方法可以直接从utop检索html 这里中显示的文档。
我可以通过使用
utop # open Core;;
─( 10:41:50 )─< command 4 >─────────────────────────────────────────────────────────────────────────{ counter: 0 }─
utop # #typeof "In_channel.input_char";;
val Core.In_channel.input_char : Core.In_channel.t -> Base.char Base.option
─( 10:41:54 )─< command 5 >─────────────────────────────────────────────────────────────────────────{ counter: 0 }─或
utop # #show In_channel.input_char;;
val input_char : in_channel -> char option
─( 10:43:00 )─< command 7 >────────────────────────────────────────────────────────────{ counter: 0 }─
utop #但医生更富有
val input_char : t ‑> Stdio__.Import.char Stdio__.Import.option
Read one character from the given input channel.
Return None if there are no more characters to read.发布于 2018-11-02 13:29:44
如果您想直接从utop安装文档,可以从opam:https://github.com/reynir/ocp-index-top安装这个包。
然后,#doc指令将可用,并向您展示您想要的内容。
另一种选择是使用ocp浏览器。它可以显示所有类型和文档。
https://stackoverflow.com/questions/53116160
复制相似问题