我正在定义一个类如下
class dataframe (csv_filepath:string) =
object
(* Load the csv, make it square and print the first line *)
initializer
let print_first_line csv_filepath =
let f = Csv.square (Csv.load csv_filepath) in
let top_line = Csv.sub 0 0 1 (Csv.columns f) f in
Csv.print_readable top_line;
Printf.printf "\n";
end;;
并收到错误消息
end;;
^^^
Error: Syntax error
我看不出有什么问题,我完全迷路了,有人知道发生了什么吗?