fun oldest (dates: (int*int*int) list) = if null dates then NONE else let val ans = oldest(tl dates) in if isSome ans andalso is_older(valOf ans, hd dates) then ans else SOME (hd dates) end
a function compares all dates(like 2018,2,28) in the list, and get the oldest date
1.4m articles
1.4m replys
5 comments
57.0k users