【发布时间】:2018-10-04 19:51:34
【问题描述】:
我想知道关键字 output 在 OCaml 中的含义。
我查看了文档,上面写着:
val output : out_channel -> bytes -> int -> int -> unit
output oc buf pos len writes len characters from byte sequence buf, starting at offset pos, to the given output channel oc. Raise Invalid_argument "output" if pos and len do not designate a valid range of buf.
问题是我完全不明白这意味着什么。
如果您能提供一个使用关键字输出的简单代码示例,那就太好了。
谢谢!
【问题讨论】:
标签: ocaml