SML and functional coding style
问题 I'm start to learn Standard ML with Programming languages course. In the first homework, I try to write a function is_older that takes two dates and evaluates to true or false . It evaluates to true if the first argument is a date that comes before the second argument (If the two dates are the same, the result is false .). So I write the following code: fun is_older(first: int * int * int, second: int * int * int) = if(#1 first = #1 second andalso #2 first = #2 second andalso #3 first = #3