SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun number_in_month_tailrec(lod0: (int * int * int), month: int) =
  2.   let
  3.     fun fn_for_lod(lod: (int * int * int), acc: int) =
  4.       if null lod
  5.       then acc
  6.       else
  7.         if #2 (hd lod) = month
  8.         then fn_for_lod(tl lod, acc + 1)
  9.         else fn_for_lod(tl lod, acc)
  10.   in
  11.     fn_for_lod(lod0, 0)
  12.   end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top