这是我的代码的前三行:
let day_of_week (year: int) (month: int) (day: int): int =
if year < 2010 || year > 2019 then failwith "year out of range"
if month < 1 || month > 12 then failwith "invalid month"
对于第二个 if,我得到“意外的令牌”;错误:语法错误“。怎么来的?
这是我的代码的前三行:
let day_of_week (year: int) (month: int) (day: int): int =
if year < 2010 || year > 2019 then failwith "year out of range"
if month < 1 || month > 12 then failwith "invalid month"
对于第二个 if,我得到“意外的令牌”;错误:语法错误“。怎么来的?