number_in_month exercise

前端 未结 4 1984
悲哀的现实
悲哀的现实 2021-01-17 04:17

I am fresh on SML and doing a homework by that. \"Write a function number_in_month that takes a list of dates and a month (i.e., an int) and returns how many dates in the li

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-17 04:55

    The error message from REPL is confusing, but Jesper is right that you should use let-in-end expression, if you need assignment statement in functions. That will surely get you that error resolved.

提交回复
热议问题