Advertisement
Guest User

Untitled

a guest
May 15th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun number_in_month(dates: (int * int * int) list, month: int) =
  2.   if null dates
  3.   then
  4.     0
  5.   else
  6.     if month = 2
  7.     then
  8.       if (#1 hd(dates)) < 29 andalso (#1 hd(dates)) > 0
  9.       then
  10.         1 + number_in_month(tl dates, month)
  11.       else
  12.         number_in_month(tl dates, month)
  13.     else
  14.       if month < 8 andalso month mod 2 <> 0
  15.       then
  16.         1
  17.       else
  18.         0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement