SML/NJ (which this looks like an error message from) uses [int ty]
(in diagnostics) to denote the set of integral types corresponding to the overloading class Int
. You can take a look at Appendix E of the revised definition ('97) of SML for more information, but this isn't really related to your issue.
If you look carefully you can see that the domain of number_in_month
is (int * int * int) list * int
, yet you provide it a triple of int
triples---this ought to be a list of int
triples instead. Moreover you attempt to pass another argument in a curried fashion, but we can see it ought to be in a tuple with this list instead based on this error.
Correspondingly you'd likely want
number_in_month ([(1993, 2, 2), (1776, 7 4), (1994, 7, 5)], 7)
instead.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…