Guest User

Untitled

a guest
Feb 25th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.12 KB | None | 0 0
  1. let rec trues l =
  2.   match l with
  3.   [] -> 0
  4.   | h::t -> match h with
  5.     false -> 0 + trues t
  6.     | true -> 1 + trues t;;
Add Comment
Please, Sign In to add comment