我正在尝试使用以下代码将整数列表写入字节文件:
let out_channel = open_out_bin "G:\\JVM\\OcamlTest2.class";;
let writeBytes out_channel finalBytes =
match finalBytes with
| [] -> close_out out_channel
| hd::tl -> output_byte out_channel hd; writeBytes out_channel tl;;
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
错误:未绑定的值writeBytes
我怎样才能解决这个问题?
| 归档时间: |
|
| 查看次数: |
380 次 |
| 最近记录: |